Jump to content

"flipping" rotation problem


MrGAG

Recommended Posts

Hi, thank you for answering.

it seems to be a little better, but can still see some strange rotations on severals circles. And I must admit I don't fully understand what you did with these vops. I never played with quaternions. They scare me a little !

But I really would like to find a solution to this recuring problem I have. and quaternions might be the right answer, as scary as they may be ^^

thank again

Link to comment
Share on other sites

if you want non flipping rotations quaternions are a good way, they might be complex in theory, but in cg they are most of the times quite easy to use

i just get the orient quaternion attribute from the wiresim, ( you even get the twist) and transfer it to the leaves with a id, so every leave knows where it came from. now You convert You original orientation represented by up and N to a quaternion and multiply them

quaternion multiplication means adding rotations and write it back. the copy picks up the orient attribute

EDIT: try the new file, the normal got updated by the deform and made the rotation going wrong, by storing the orientation as quaternion in the beginning it works better now

lsystem_test_03.hipnc

Edited by sanostol
Link to comment
Share on other sites

Hi,

Yes indeed, it works better now :D . I am still a little confused by quaternions, but I guess I'll have to play around with them to get more confortable with their use.

Anyway, thanks a LOT for your help

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...