Rotate Primitive by Color

   3983   4   1
User Avatar
Member
23 posts
Joined: June 2012
Offline
hello all,

need help for this effect,

i want to the primitive per face on the object, and rotate folowing the color attribute, and i think i got, but got trouble with banking rotate of the face…

i have created template point with match with direction of $PR attribute, and connected onto second input of “ Primitive ” attribute, but seems im still not get the effect

is there any help for me with this, to rotate the face with respect normal direction of the $PR attribute , and effected by color

thanks

Attachments:
capture1_PrimitiveSphere.JPG (126.1 KB)

User Avatar
Member
23 posts
Joined: June 2012
Offline
here's the files

Attachments:
rotatePerPrimitiveSphere.hipnc (367.0 KB)

User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
one of the simple way is using Transform Axis SOP , you can rotate each primitives based on specify direction (in this case it is N) with this node , So you should just append a For Each SOP for doing this operation for each primitive .
Also to achieve better result you can use T (tangent) instead of N , you can compute T vector simply with PolyFrame SOP .

Attachments:
JK_Pic.jpg (173.1 KB)

https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
And this is a simple project about this method , Of course using For Each SOP for complex geometries is so slow , So I think you should use same method in the VEX :idea:

Attachments:
JK_Rotate_with_N.hipnc (359.4 KB)

https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
User Avatar
Member
23 posts
Joined: June 2012
Offline
thanks Joker386, ok ill try figure it out with vex method…and thanks with for each sop.

regards
anto187.wordpress.com
  • Quick Links