Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / camera fov

Author
Message
Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 7th Aug 2008 12:24 Edited at: 7th Aug 2008 12:31
has anyone here decided on what would be a good starting setting for this command ?

Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 7th Aug 2008 16:54
The default of ~62 degrees (3.14/2.905 radians) seems to work fine. The max it can be is pi or 180 degrees or else the camera flips. I rarely change it unless I want something like a zoom effect like a rifle scope (decrease fov).

quick conversion from degrees:

fov#=(3.14/180)* degrees#

Enjoy your day.
Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 9th Aug 2008 17:01
the manual reads
Quote: "SET CAMERA FOV
This command will set the field of view for the camera using an Angle value. The default angle is the result of the calculation 3.14/2.905.

SYNTAX:
SET CAMERA FOV Angle"


its not very well explained how to accurately change it, nor was it written (as you can see ) where they used radians. so my next question is if I put :

then basically nothing will change is that correct latch ?

Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 9th Aug 2008 19:43
Hi Bluestar4,

Not actually. The SET CAMERA FOV is looking for a value expressed in radians. That is why I put the degrees to radians formula in the previous post:

fov#=(3.14/180)* degrees#

If you substitute degrees# with 62 in this equation, you'll end up with a value of about 1.08 which is 62 represented in radians. So use any degrees < 180 in the formula and use the return value in the SET CAMERA FOV call. If you go above 180, the camera will flip. Experiment to find what works best with whatever you are trying to do.

Here's a scope example that shows how reducing the FOV can produce a zoom in effect, and by increasing the FOV you can make a zoom out effect. Use the mouse to look around, use up arrow and down arrow to move, and click the left mouse button to toggel the scope:



Enjoy your day.
Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 9th Aug 2008 23:14
thanks so much latch ! I really appreciate you explaining that to me - I'm updating my personal reference manual to include this info

Login to post a reply

Server time is: 2025-06-07 06:57:10
Your offset time is: 2025-06-07 06:57:10