Hello,
i am trying to use IR cameras to move around graphical objects(just a cube) on the screen.
But im not able to get the real world effect, meaning, the cube becomes very small when moved by a certain distance.
Eg: Our hand appear to become small by a certain factor when we move our hands farther(in the real world).
How can i produce the same effect in the virtual world?
Viewing volume:
glFrustum(-500, 500, -500, 500, 100, 2000);
also camera location,
gluLookAt (0, 0, 200.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0);
Now, i translate the graphic object by a factor of 100 along -Z when the IR source moves 12cm away from the IR camera.
as:
glTranslatef(/* some value */, /*some value */, -z);
But, the object(cube) becomes very small when i do that.
So, how can i adjust the translating factor so that i get the “real world effect” ?
Can anyone please help?
Thanks in advance.