I seem to run into this issue a lot.
I create a line of points, and then use the sort $TX-$TX2 .. trick to get all the normals pointing down the line (which is never a straight line down an axis . The heading and pitch are fine, but the “bank” is very often not what I want. Which is obvious when I begin to copy geo to those points and things are rolling some arbitrary amount.
I have tried using things like polyframe, and even blending normals from two sources with a vop sop without much success.
Is there some sort of “up vector” trick I don't know of. I seem to always be able to only get 2 of the 3 orientations of the normal how I want.
Thanks for any suggestions.
Orienting normals
3099 5 2- Kfinla
- Member
- 100 posts
- Joined: 8月 2014
- Offline
- circusmonkey
- Member
- 2624 posts
- Joined: 8月 2006
- Offline
Hi
Check out some of my notes http://www.circusmonkey.com.au/circusmonkey/Sops.html [circusmonkey.com.au]
Rob
Check out some of my notes http://www.circusmonkey.com.au/circusmonkey/Sops.html [circusmonkey.com.au]
Rob
Gone fishing
- Kfinla
- Member
- 100 posts
- Joined: 8月 2014
- Offline
Thanks, lots of good info there.
I'm still not really getting what I want thought.
Basically what I want to do is have the normals flow down the mesh. I know of a trick using a vop sop and two cross-products, but again.. some work some don't.
Maybe its a stamping issue. I'm just doing a vanilla copy.. so perhaps I need to find a way to have each copy orient itself since a one size fits all transform on the mesh I am copying can only ever have some of the geo oriented properly.. ie. the chest is good, the arms are not in this example.
Any ideas?
I'm still not really getting what I want thought.
Basically what I want to do is have the normals flow down the mesh. I know of a trick using a vop sop and two cross-products, but again.. some work some don't.
Maybe its a stamping issue. I'm just doing a vanilla copy.. so perhaps I need to find a way to have each copy orient itself since a one size fits all transform on the mesh I am copying can only ever have some of the geo oriented properly.. ie. the chest is good, the arms are not in this example.
Any ideas?
- dan.baciu
- Member
- 30 posts
- Joined: 9月 2010
- Offline
You are aware that to have a complete description of orientation you need at least a normal and an up vector. The normal should point along the curve and the up vector defines the direction perpendicular to the curve in this case.
Looky here: http://www.sidefx.com/docs/houdini14.0/copy/instanceattrs [sidefx.com]
Looky here: http://www.sidefx.com/docs/houdini14.0/copy/instanceattrs [sidefx.com]
- koen
- Member
- 793 posts
- Joined: 4月 2020
- Offline
The easy way is to abuse a sweep sop, I attached an example. It also is not hard to implement a moving frame in a python sop, but that takes a bit more figuring out. Here is some nice information:
http://research.microsoft.com/en-us/um/people/yangliu/publication/computation%20of%20rotation%20minimizing%20frames.pdf
[research.microsoft.com]
Hope that helps,
koen
http://research.microsoft.com/en-us/um/people/yangliu/publication/computation%20of%20rotation%20minimizing%20frames.pdf
[research.microsoft.com]
Hope that helps,
koen
- Kfinla
- Member
- 100 posts
- Joined: 8月 2014
- Offline
-
- Quick Links