Good Evening everyone, i try a lot of things but i’cant make the zoom effect like this in the gif, and i dont have idea how to make a zoom effect fallowing my face, someone can help me please, thankss
yes i am very noob
Good Evening everyone, i try a lot of things but i’cant make the zoom effect like this in the gif, and i dont have idea how to make a zoom effect fallowing my face, someone can help me please, thankss
yes i am very noob
Hi @mateus,
You are trying to solve for 2 things:
my assumption is that you are using a VideoDeviceIn TOP to get your camera image? Attach a Transform TOP after and now you have control of Scale. To zoom onto your face, you would have to know where your face is in the incoming image - in case you are on Windows using a RTX card, TouchDesigner has a CHOP called FaceTrack CHOP which can output the position of the detected Face bounding box. These u/v values can be used in turn to control the Pivot of the Transform TOP when scaling.
The attached tox is illustrating this.
Without an RTX, options to solve for the facetracking would be to use a Kinect or RealSense (both are supported in TouchDesigner via their respective TOPs and CHOPs) or find a openCV implementation.
Hope this helps
Cheers
Markus
zoom.tox (1.8 KB)
thanks <3 <3
the face track works! realy help me a lot thankss
but i have a question yet…
how i do a bind to make de zoom in and the zoom out
i try to use buton it works but i do not know how to remove de zoom out
i try using animationCOMP but i know to do the zoom IN but zoom out i dont have idea, can you help me please sz
Hi @mateus,
could you describe what you are trying to do in a bit more detail? Not quite sure about it.
Even a functional explanation would be great. Something like:
cheers
Markus
yes like that, i try this thing using animationComp but i can’t, i dont know what a do wrong
When i ButtonA: the scale 1 comes to 1.6 and when i press the ButtonB the scale 1.6 to 1.0
i try to make buton as a parameter inside a container using BIND but i can’t do too
Hey @mateus,
you could do this with a single Button with the Button Type
parameter set to “Toggle”.
To control the zoom behavior I’ve also added a S Curve CHOP where you can adjust the curve easily to get to the look you like. The Filter CHOP is used to control the length of the zoom animation. You can adjust this by changing the Filter Width
parameter currently set to 0.6 seconds.
Alternatively you could also try to make use of the Trigger CHOP to get a similar behavior.
Hope this helps
cheers
Markus
zoom.tox (2.5 KB)
WOW !! omg thanks you help me a lot <3 <3