SOLVED: Simulation of a magnifying glass in TouchDesigner

Hello!

I am new to TouchDesigner and would like to simulate a magnifying glass that zooms in on a section of an image depending on the position of the mouse pointer. Unfortunately, the objects in the image are currently shifted due to the zoom. I would like the magnifying glass to zoom in only on the part of the image over which it is positioned, leaving the rest of the image as it is.

Can anyone help me with this? Thank you!!

ZoomMatte.toe (4.6 KB)

Hi @claraeckhardt,

The Transform TOP has a Pivot parameter which controls the center of the transformation you are applying. For example if you set the Pivot to 0 for both axis and now apply a rotation, the texture in the operator will rotate around the bottom-left corner while with the default 0.5 it will rotate around its center.
Now you can apply the same idea to scaling which will get you to the point that when you set the Pivot of the Transform TOP which scales the image to the coordinates used to also offset the circle, the scaling will always happen around the same coordinates your circle is at, mimicking a magnifying glass.

Hope this helps
cheers
Markus

@snaut Thank you very much, that worked!