I am trying to track an object in the image. I need to place a 3d object at the image coordinates (x,y), and it must cover a certain pixel size (eg 50 pixels in width). The pixel size can vary during execution time.
But i realise that the opengl command is: glutSolidCube(radius). How do i relate the number of pixels to radius, and place the cube at row x and column y of the image?
[The image is displayed via orthogonal projection while the cube is using perspective projection]
Please help! Thank you...Ü