z axis position having no effect over picture

Mauro Trotta's icon

Hi!

I am sending a pic through fpic to a jit.gl.videoplane and trying to control the pic position in the jit.world. There is no problem when I change the x and y axis, but z axis have no effect at all. It seems very straightforward, but it doesn´t do anything. Maybe someone can help me to understand what is going on?

Pedro Santos's icon

How are you visualizing the fpic in jit.word? I would use jit.gl.videoplane and control the XYZ position through the position attribute.

If you post the patch, helping should be easier.

Mauro Trotta's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I am using the position attribute to control de position, but only x and y axis are reacting, and z have no effect.

Matteo Marson's icon

You should disable @preserve_aspect and manually compute the scaling factors:

Max Patch
Copy patch and select New From Clipboard in Max.

@preserve_aspect keeps the videoplane’s on-screen size constant. Since moving the videoplane forward or backward would change its apparent size when using a non-orthographic camera, any Z-axis displacement has no visible effect.