Jump to content

point coordinate?


Recommended Posts

either by "N" and "up" vector attributes

or "v" and "up" vector attributes

or "orient" quaternion attribute

or "rot" quaternion attribute (it ads to any of above mentioned)

it depends on your needs, all mentioned methods are automatically recognised as rotations by Copy SOP and Instancing and at some other places in houdini

apart from that you can define point coordinate by any means you want, since you are the one who will be using it later

so any custom quaternion or matrix3 attribute will do

Link to comment
Share on other sites

either by "N" and "up" vector attributes

or "v" and "up" vector attributes

or "orient" quaternion attribute

or "rot" quaternion attribute (it ads to any of above mentioned)

it depends on your needs, all mentioned methods are automatically recognised as rotations by Copy SOP and Instancing and at some other places in houdini

apart from that you can define point coordinate by any means you want, since you are the one who will be using it later

so any custom quaternion or matrix3 attribute will do

Thanks Tomas,

Is UP 90 degrees from N?

I'm trying to define it in vopsop.

How does orient quaternion work? is there any kind of documentation on that?

Edited by ehsan parizi
Link to comment
Share on other sites

"up" should be perpendicular to N but is not strictly required. However, it must NOT be in the same direction as N.

The "orient" attribute works as any (unit) quaternion value defining a rotation. Without going into the math, you can think of it as an "axis-angle" encoding into 4 floats. The formulas for converting between unit quaternions and axis angle representation can be found on wikipedia. Note that in Houdini the quaternion is defined by (x,y,z,w) which is differently ordered from the wikipedia page which I think is (w,x,y,z).

For reference, http://www.sidefx.co...y/instanceattrs

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

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...