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
FOV
Moderator: Moderators
Hi Kjell,
The FOV is 45 degrees.
The FOV is 45 degrees.
Code: Select all
gluPerspective(45.0, ScreenWidth/ScreenHeight, 0.1, 100.0);
Basic example of this technique. Press Space to scale the sprite to Pixel Perfect proportions.
Kjell
- Attachments
-
- Pixel Perfect.zip
- (37.94 KiB) Downloaded 463 times