vops pinch effect

   11618   10   1
User Avatar
Member
243 posts
Joined: Oct. 2007
Offline
Hi,
I have a quick question. I want to be able to add a pinch effect (like the pinch effect in in photoshop) to an image or procedural texture in vops. Is there a node that does that already, or any other quick way? I would do it directly in photoshop, but it needs to be animated. Please help me!!



cheers!
JR Gauthier
Character Animation & Design
www.turboatomic.com
http://www.vimeo.com/user2847970 [vimeo.com]
User Avatar
Member
460 posts
Joined: July 2005
Offline
If I get it right

You could use an edit sop with soft radius and scale it down to pinch
if you want to affect an image just apply it to the geometry first, a grid with lots of points

that might work
varomix - Founder | Educator @ Mix Training
Technical Artist @ Meta Reality Labs
User Avatar
Member
243 posts
Joined: Oct. 2007
Offline
Yes you get it right! Unfortunetly, I think it needs to be done in the vops network. It's for an iris texture map; I want to dilate or contract. And it's actually done using a technique you suggested me in another thread, with an animated texture projection….

this thread:
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=13964&highlight=eye [sidefx.com]
JR Gauthier
Character Animation & Design
www.turboatomic.com
http://www.vimeo.com/user2847970 [vimeo.com]
User Avatar
Member
511 posts
Joined:
Offline
you can plug uv and a constant set to 0.5 into a distance node, this should give you a centered circular falloff. Then plug this into fit range so you can easily control the start/end of the falloff (min/max source) and intensity (max dest).
Now plug this into the scale input of a uvtransform node, and the uv into the uv input.
I've used this type of thing before to make pinches and twirls.

hope this helps.

s
User Avatar
Member
243 posts
Joined: Oct. 2007
Offline
Thanks for the answer Serg, I've been playing with a similar setup all night yesterterday; almost gone crazy. Right now, I don't seem to get that pinch effect right from the middle of the image, there's something I'm missing for sure…I just tryed your suggestion, but still get the same problem…Here's an image of the result I get, also included the scene.

Thanks again for you help!

Attachments:
pinch_shader2.hipnc (50.9 KB)
pinch_shader2.jpg (99.2 KB)

JR Gauthier
Character Animation & Design
www.turboatomic.com
http://www.vimeo.com/user2847970 [vimeo.com]
User Avatar
Member
8772 posts
Joined: July 2007
Offline
you should set pivot in uvxform1 to .5 .5 to scale to center
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
243 posts
Joined: Oct. 2007
Offline
YESSSS! Thanks very much!! It works!!! it makes total sense!!
JR Gauthier
Character Animation & Design
www.turboatomic.com
http://www.vimeo.com/user2847970 [vimeo.com]
User Avatar
Member
243 posts
Joined: Oct. 2007
Offline
Hi!
Just out of curiosity, would it be possible to have this setup done in vop sops.I think it could be really usefull to create some deformers. I've tryed, but there no “uv transform” node, is there an equivalent for vop sops?

thanks!
JR Gauthier
Character Animation & Design
www.turboatomic.com
http://www.vimeo.com/user2847970 [vimeo.com]
User Avatar
Member
8772 posts
Joined: July 2007
Offline
sure, see the example

Attachments:
uv_pinch_sop.hipnc (139.8 KB)

Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
243 posts
Joined: Oct. 2007
Offline
Thanks tamte, this is really interesting, even thought I'm wondering how you figured that out.
What is the use of the Set Vector Component exactly?

thanks again!
JR Gauthier
Character Animation & Design
www.turboatomic.com
http://www.vimeo.com/user2847970 [vimeo.com]
User Avatar
Member
8772 posts
Joined: July 2007
Offline
it just sets the Z to 0 because you are interested only in XY(UV) 2d vector
so any value in Z will cause incorrect values in distance from center
the rest is just vector math
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links