FOV

All topics about ZGameEditor goes here.

Moderator: Moderators

Post Reply
User avatar
Kjell
Posts: 1881
Joined: Sat Feb 23, 2008 11:15 pm

FOV

Post 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
Last edited by Kjell on Fri Apr 18, 2008 3:24 pm, edited 1 time in total.
User avatar
VilleK
Site Admin
Posts: 2277
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post by VilleK »

Hi Kjell,

The FOV is 45 degrees.

Code: Select all

  gluPerspective(45.0, ScreenWidth/ScreenHeight, 0.1, 100.0);
User avatar
Kjell
Posts: 1881
Joined: Sat Feb 23, 2008 11:15 pm

Post by Kjell »

:arrow:

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
Post Reply