How to change rotation of objects in array

   4290   6   0
User Avatar
Member
21 posts
Joined: Oct. 2014
Offline
Hi there,

I try to replicate some effect and need to rotate simple objects in array according to luminance in the image. I have some example how to change the Y-position but can't figure it out how to rotate them. Any ideas?

Attachments:
test_03.png (966.8 KB)
test_02.png (43.1 KB)
test_01.png (26.3 KB)

thank you and best regards
dalibor
User Avatar
Member
8081 posts
Joined: July 2005
Offline
To rotate them, you need to set some attribute on the right input of the Copy SOP (ie. your grid) that controls orientation like “v” (3d velocity) or “orient” (quaternion).
User Avatar
Member
21 posts
Joined: Oct. 2014
Offline
hi edward,

thank you for your response. I have changed my network, so I do “Attribute from Map” (Cd as Float) and then I feed that to “Copy” node. The question is what should I write to Rotate-Y field in “Copy” node?

Attachments:
test_03.png (39.9 KB)
test_02.png (96.0 KB)
test_01.png (102.7 KB)

thank you and best regards
dalibor
User Avatar
Member
8081 posts
Joined: July 2005
Offline
You don't have to change the Copy SOP because you already have rotate to template point attributes enabled. You just need to set it the point attributes on the grid to the thing that you want. Here's a simple example that just directly maps the color to “v” and the Copy SOP will pick that up automatically.

Attachments:
texCopyRotate.hip (103.0 KB)

User Avatar
Member
21 posts
Joined: Oct. 2014
Offline
hi edward, you are great help for me and we are getting somewhere…

now it seems all my cubes are either straight or fully rotated, there is no smooth transition, like in image. I tried to play in VOP SOP using multiply node and with Remaping in “Attribute from Map”, setting contrast and scale, and contrast falloff, but nothing helped me. eventually I'd like to rotate the cubes from straight to what is in image, but I do not know what attribute shall I animate.

Attachments:
test_01.png (305.8 KB)
test_02.png (17.1 KB)
test_03.png (18.9 KB)

thank you and best regards
dalibor
User Avatar
Member
8081 posts
Joined: July 2005
Offline
Then first do the greyscale mapping that you like, and then in a separate attrib vop sop, set “v” to what you want according to “Cd”.
User Avatar
Member
21 posts
Joined: Oct. 2014
Offline
great, thank you very much!
thank you and best regards
dalibor
  • Quick Links