Adding Blender hair bug #38928

Closed
opened 2014-03-03 06:14:02 +01:00 by johan tri handoyo · 12 comments

System Information
Ubuntu 12.04 64bit, NVIDIA GTX 650 Ti

Blender Version
Broken: Blender 2.69.11
Worked: (optional)

I was trying to add hair in particle edit mode. But the hair was not added on the assigned surface. It's just a mess and the hair scattered all over the place. I try a combination of modifier arrangement and the "use modifier stack" button. But the result was not satisfactory.

Please see the attachment for screen capture and .blend file example.
biru.blend
hair_error.jpg

Thank you

**System Information** Ubuntu 12.04 64bit, NVIDIA GTX 650 Ti **Blender Version** Broken: Blender 2.69.11 Worked: (optional) I was trying to add hair in particle edit mode. But the hair was not added on the assigned surface. It's just a mess and the hair scattered all over the place. I try a combination of modifier arrangement and the "use modifier stack" button. But the result was not satisfactory. Please see the attachment for screen capture and .blend file example. [biru.blend](https://archive.blender.org/developer/F79758/biru.blend) ![hair_error.jpg](https://archive.blender.org/developer/F79756/hair_error.jpg) Thank you

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @JohanTriHandoyo

Added subscriber: @JohanTriHandoyo

Added subscriber: @Psy-Fi

Added subscriber: @Psy-Fi

Added subscriber: @TerryWallwork-1

Added subscriber: @TerryWallwork-1

Confirmed here as well, changing the order of the sub-surf modifer seems to affect it also.

Confirmed here as well, changing the order of the sub-surf modifer seems to affect it also.
Antonis Ryakiotakis self-assigned this 2014-03-04 19:41:32 +01:00

Some notes here:

Not sure if generative modifiers are currently properly supported for hair (comments in code seem to suggest they are not).

Apart from that there are some things that shout 'wrong' in the code such as line 3400 in particle_edit.c which will return the derived mesh face index in add_pars- [x].num while it's clear that the next function, psys_particle_dm_face_lookup, expects an argument in original mesh index range. I tried changing those but there is still a problem.

What did work was always taking the cached derivedmesh in 3370 but it worked for the wrong reasons and crashed om the particle mirroring functions.

Some notes here: Not sure if generative modifiers are currently properly supported for hair (comments in code seem to suggest they are not). Apart from that there are some things that shout 'wrong' in the code such as line 3400 in particle_edit.c which will return the derived mesh face index in add_pars- [x].num while it's clear that the next function, psys_particle_dm_face_lookup, expects an argument in original mesh index range. I tried changing those but there is still a problem. What did work was always taking the cached derivedmesh in 3370 but it worked for the wrong reasons and crashed om the particle mirroring functions.

OK, looks like indeed the "use modifier stack" option is the reason this breaks. If that is active, the final mesh is used as an emitter while the deformed mesh has been used to plant the hair. This leads to problems naturally. I will check the mirrored code since it misbehaves in the expected correct combination (minor fix + use modifier stack = off).

OK, looks like indeed the "use modifier stack" option is the reason this breaks. If that is active, the final mesh is used as an emitter while the deformed mesh has been used to plant the hair. This leads to problems naturally. I will check the mirrored code since it misbehaves in the expected correct combination (minor fix + use modifier stack = off).

Mirroring does not work on the same derivedmesh as the add brush does. This likely causes the misalignment between the particles This will be trickier to solve since the mirror code is common to all tools.

Sorry for the spam, just adding information here in case someone wants to take a look too.

Mirroring does not work on the same derivedmesh as the add brush does. This likely causes the misalignment between the particles This will be trickier to solve since the mirror code is common to all tools. Sorry for the spam, just adding information here in case someone wants to take a look too.

This issue was referenced by blender/blender-addons-contrib@eca6264ab0

This issue was referenced by blender/blender-addons-contrib@eca6264ab07d63b0875c019d83a2feb48df34fd8

This issue was referenced by eca6264ab0

This issue was referenced by eca6264ab07d63b0875c019d83a2feb48df34fd8

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Closed by commit eca6264ab0.

Closed by commit eca6264ab0.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#38928
No description provided.