limit point transformation to 2 axis only.

   2277   1   0
User Avatar
Member
512 posts
Joined: July 2009
Offline
Hi there,

so I got a problem and don't know how to solve it in VOPs.
I got Box A (black) and use the face center points to calculate the local coordinate system.
Now Box A gets transformed (red box) and I want to limit the transformation of each point to only 2 Axis of the local coordinate system created by Box A.
In this case (see attached picture) I want to affect only the green and blue direction vectors.

Thanks,

Manuel

Attachments:
limit_transformation.png (215.7 KB)

http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
512 posts
Joined: July 2009
Offline
my friend Alessandro Nardini suggested that I could solve the problem in local camera space, so I figured a way on how to do it:

create a orthographic camera that's parallel to the boxes top face.
Take the boxes rest position and the animated position, plug them into an extract transform node on Obj level in order to parent the camera to the box.
In VOPs, toNDC will help you to extract both u,v of the camera's coordinates so you can compare those attributes of the undeformed / deformed geometry, calculate a difference and move the points back into place.

I learned something really cool today

cheers!
http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
  • Quick Links