Page 1 of 1

FOV

Posted: Wed Apr 16, 2008 12:33 pm
by Kjell
Hi Ville,

Can you share the "Field of View" or "Focal Length" that ZGE is set to, so I can calculate the ScaleFactor for pixel-perfect GUI elements?

Thanks!
K

Posted: Wed Apr 16, 2008 2:43 pm
by VilleK
Hi Kjell,

The FOV is 45 degrees.

Code: Select all

  gluPerspective(45.0, ScreenWidth/ScreenHeight, 0.1, 100.0);

Posted: Wed Jun 04, 2008 1:37 pm
by Kjell
:arrow:

Basic example of this technique. Press Space to scale the sprite to Pixel Perfect proportions.

Kjell