Define the Z coordinate of your viewpoint as VZ as negative value (e.g. -64). Like you've already known, distance to an object from your viewpoint and apparent size of an object are in inverse proportion to each other. Therefore, you can define magnification ratio of an object with its Z coordinate as follows. M=-VZ/(Z-VZ)