Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: Azrael on May 20, 2009, 06:52:16 PM

Title: How is the FOV calculated?
Post by: Azrael on May 20, 2009, 06:52:16 PM
I mean the FOV in *.scene files.

I have a scene with FOV 30.07 but in the .scene file it's:

Code: WME Script
  1. FOV_OVERRIDE=0.524995

There is a way to calculate the "FOV_OVERRIDE" from a number like "30.07"? I need it to improve my model viewer ;)
Title: Re: How is the FOV calculated?
Post by: Mnemonic on May 20, 2009, 07:05:36 PM
It's stored in radians. 30.07 degrees = 0.527995 radians (30.07 * PI/180)
Title: Re: How is the FOV calculated?
Post by: Azrael on May 21, 2009, 10:21:36 AM
Tnx a lot Mnemonic :)