Wrong orientation for hair particles in Object or Group render mode #42397

Closed
opened 2014-10-26 00:15:23 +02:00 by Quentin Wenger · 13 comments

System Information
Any

Blender Version
Blender 2.72b - but it has been there for many releases, I f.E. found the same behaviour in Blender 2.66 and did not search further.

Short description of error
When creating a particle system in hair mode and "Object" render option, duplis show out with wrong orientation.
It is like if there was following transformation applied:

x --> z
y --> -y
z --> x 

Thus, applying the inverse transformation (which is actually the same) would solve the problem. But it turns out that it is actually x and z vectors (in the code: vec and nor) that should simply be swapped.

N.B.: results are the same in Group render mode, all instances get this wrong orientation.

Exact steps for others to reproduce the error
Open Blender
Edit the cube to have it dyssymetric (or add a Monkey instead, this is just for visualisation)
Add a plane, scale it in edit mode (just to have it easier to work on)
Add a particle system to it, choose the render option Object and set the Cube as the dupli object
Toggle the Rotation option to get the "cube" (or Monkey) in the same orientation as the original instance.

Now, switch the particle system to Hair mode
Again toggle the Rotation option in the render section
Both orientations (w/ or w/o Rotation) give bad orientation compared to those in Emitter mode.

Diff
Here is the .diff showing this swap:
blender_bke_hairpartori.diff

**System Information** Any **Blender Version** Blender 2.72b - but it has been there for many releases, I f.E. found the same behaviour in Blender 2.66 and did not search further. **Short description of error** When creating a particle system in hair mode and "Object" render option, duplis show out with wrong orientation. It is like if there was following transformation applied: ``` x --> z y --> -y z --> x ``` Thus, applying the inverse transformation (which is actually the same) would solve the problem. But it turns out that it is actually x and z vectors (in the code: vec and nor) that should simply be swapped. N.B.: results are the same in Group render mode, all instances get this wrong orientation. **Exact steps for others to reproduce the error** Open Blender Edit the cube to have it dyssymetric (or add a Monkey instead, this is just for visualisation) Add a plane, scale it in edit mode (just to have it easier to work on) Add a particle system to it, choose the render option Object and set the Cube as the dupli object Toggle the Rotation option to get the "cube" (or Monkey) in the same orientation as the original instance. Now, switch the particle system to Hair mode Again toggle the Rotation option in the render section Both orientations (w/ or w/o Rotation) give bad orientation compared to those in Emitter mode. **Diff** Here is the .diff showing this swap: [blender_bke_hairpartori.diff](https://archive.blender.org/developer/F119689/blender_bke_hairpartori.diff)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @QuentinWenger

Added subscriber: @QuentinWenger
Author

Oops, small error in the .diff, here is a new version:

blender_bke_hairpartori.diff

(By the way: I cannot edit my own tasks !?)

locked_task.png

Oops, small error in the .diff, here is a new version: [blender_bke_hairpartori.diff](https://archive.blender.org/developer/F119691/blender_bke_hairpartori.diff) (By the way: I cannot edit my own tasks !?) ![locked_task.png](https://archive.blender.org/developer/F119692/locked_task.png)
Lukas Tönne was assigned by Bastien Montagne 2014-10-26 09:31:39 +01:00

Added subscriber: @mont29

Added subscriber: @mont29

(only devs can edit tasks themselves, iirc).

Lukas, this one sounds for you! ;)

(only devs can edit tasks themselves, iirc). Lukas, this one sounds for you! ;)
Author

Well, that's kind of strange... Am I not the owner of this task, as its author?

access_denied.png

Well, that's kind of strange... Am I not the owner of this task, as its author? ![access_denied.png](https://archive.blender.org/developer/F119721/access_denied.png)

Added subscriber: @kevindietrich

Added subscriber: @kevindietrich

Only the owner of a task can edit it, and by owner it is meant the one to whom the task is assigned (or the one who claims it), in this ticket it would Lukas. The author is just the one who creates it. This is some kind of Phabricator security thing. Changing this behavior is being talked upstream [here ]] and https:*secure.phabricator.com/D10012 . Then, everyone listed [ https://developer.blender.org/project/view/1/ | here can edit tasks without being the owner, not necessarily developers.

Only the owner of a task can edit it, and by owner it is meant the one to whom the task is assigned (or the one who claims it), in this ticket it would Lukas. The author is just the one who creates it. This is some kind of Phabricator security thing. Changing this behavior is being talked upstream [here ]] and [[ https:*secure.phabricator.com/D10012 | here ]]. Then, everyone listed [[ https://developer.blender.org/project/view/1/ | here ](https:*secure.phabricator.com/T5681) can edit tasks without being the owner, not necessarily developers.
Author

Ok, thanks for clarifying! ;-)

Ok, thanks for clarifying! ;-)
Member

Please make a test file, otherwise i can't say if this is a bug or not.

Generally i think that hair and object instancing should not be combined and are incompatible features (big problem with particles), but that's just my personal opinion.

Please make a test file, otherwise i can't say if this is a bug or not. Generally i think that hair and object instancing should not be combined and are incompatible features (big problem with particles), but that's just my personal opinion.
Author

Ok, there you go:

272b_test_suzanne_particlesorientation.blend

In that file, there are Suzanne at the center and two planes on the left and the right; all three objects have the default orientations.

Each planes has a particle system, that is configured the same way, except:

  1. the particle system of the left plane is of type emitter, the one on the right is of type hair;
  2. duplis size is not the same (but it doesn't matter, it is just to have a uniform aspect).

What you can see is that particles on the right plane (hair mode) have an orientation that doesn't correspond to anything (you can find the relations in my first post). Even if you uncheck options "Rotation" in the dupli context, you don't get equal result; and obviously, emitter particles are correct, the others wrong.

Here is an example of videotutorial where the author complains about it... and he is not the only one.
https://www.youtube.com/watch?v=TJ_OcBh7F5I#t=1974

Ok, there you go: [272b_test_suzanne_particlesorientation.blend](https://archive.blender.org/developer/F120191/272b_test_suzanne_particlesorientation.blend) In that file, there are Suzanne at the center and two planes on the left and the right; all three objects have the default orientations. Each planes has a particle system, that is configured the same way, except: 1) the particle system of the left plane is of type emitter, the one on the right is of type hair; 2) duplis size is not the same (but it doesn't matter, it is just to have a uniform aspect). What you can see is that particles on the right plane (hair mode) have an orientation that doesn't correspond to anything (you can find the relations in my first post). Even if you uncheck options "Rotation" in the dupli context, you don't get equal result; and obviously, emitter particles are correct, the others wrong. Here is an example of videotutorial where the author complains about it... and he is not the only one. https://www.youtube.com/watch?v=TJ_OcBh7F5I#t=1974
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Member

Particle rotation is utterly broken, no way this can be fixed properly without causing more issues. Has to be considered a todo, in the meantime i suggest not to try and match hair and emitter stuff, it's just not compatible anyway.

Particle rotation is utterly broken, no way this can be fixed properly without causing more issues. Has to be considered a todo, in the meantime i suggest not to try and match hair and emitter stuff, it's just not compatible anyway.
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#42397
No description provided.