Caspa
08-28-2005, 08:04 PM
Hi all,
I have a square printed on screen (for example, positioned with: glTranslatef(-10.0, 10.5, -40.0) and I want to animate it as it is brought forward from -40 to -10. However, as I have tried this, the x and y coordinates change scale (and results in the image changing its location on screen which I don't want). Is there a simple way to convert the x and y so that i am able to bring this square forward with it staying in its initial x and y position (while leaving all objects on the screen untouched). In other words, I am making this object appear bigger without moving it left or right. Quite new to this so please bear with me!
thanks
I have a square printed on screen (for example, positioned with: glTranslatef(-10.0, 10.5, -40.0) and I want to animate it as it is brought forward from -40 to -10. However, as I have tried this, the x and y coordinates change scale (and results in the image changing its location on screen which I don't want). Is there a simple way to convert the x and y so that i am able to bring this square forward with it staying in its initial x and y position (while leaving all objects on the screen untouched). In other words, I am making this object appear bigger without moving it left or right. Quite new to this so please bear with me!
thanks