Posted: 4th May 2007 0:15
Whats the default FOV?

"This command will set field of view for the camera given an Angle value. The default angle is the result of the calculation 360 degrees divided by four."

Surly 360 / 4 = 90? but if i reset the FOV back to 90 it don't look the same as it started.
Posted: 4th May 2007 1:02
For some reason I seem to remember it having to do with the aspect ratio of your monitor also. So for a 1024x768 display you would have to multiply or divide the 90 by 0.75? If I'm wrong then thats the last time I'll shoot from the hip answering questions
Posted: 4th May 2007 1:07
Yeah I'm on a widescreen 1280 x 800 :/

but it looks fine before any changes so im assuming its running on 90 then when you don't set it?
Posted: 4th May 2007 1:11
Try setting it to 56.25 then? (I'm thinking that would be the vertical fov)
Posted: 4th May 2007 1:17
<nevermind>
Posted: 4th May 2007 1:32
It's 62 (Not exactly, but extremely close)
Posted: 4th May 2007 7:56
61.962139129638672

Credit doesn't go to me though, I found that on the forums some time ago.
Posted: 1st Aug 2007 21:03
how'd you get 61.96... ???

i divided his height by width (800 / 1280 = 0.625) and multiplied the result by 90 degrees and got 56.25 like Crit
Posted: 2nd Aug 2007 1:10
Thanks - you've all told me how to get DBP screen images looking OK on my laptop. Just need to get the aspect ratio right - whatever that happens to be.
Posted: 2nd Aug 2007 1:38
^just divide width by height

eg

1440 / 900 = my aspect ratio = 1.6

1024 / 768 = 1.3[repeat]
Posted: 2nd Aug 2007 4:44
You get the 61.96... by measuring it. Here is Dimitry's program for measuring it:
+ Code Snippet
Randomize Timer()
`FOV#=RND(3600)/10.0
`Set Camera Fov FOV#
Backdrop On

Sync Rate 0
Sync On

Do
   Text 10, 10, "Function GetCurrentFOV() by Dmitry Kuschev"
   Text 10, 50, "FOV# = "+Str$(FOV#)
   Text 10, 70, "GetCurrentFOV() = "+Str$(GetCurrentFOV())
   Sync
Loop

Function GetCurrentFOV()
   r=Make Matrix4(100)
   r=Make Vector4(101)
   Projection Matrix4 100
   Set Vector4 101, 1.0, 0.0, 0.0, 0.0
   Transform Vector4 101, 101, 100
   GetFOVResult#=Atan(1.0/(X Vector4(101)*((Screen Width()*1.0)/(Screen Height()*1.0))))*2.0
   If GetFOVResult# &lt;= 0.0 Then Inc GetFOVResult#, 360.0
   r=Delete Matrix4(100)
   r=Delete Vector4(101)
EndFunction GetFOVResult#


If you run this is prints the value. Some folks tested it by displaying an object and then setting the FOV to this value midstream, and noticing no change. Incidentally, I don't claim to understand HOW this program works.

Regarding getting images to look right with various screen configurations, I front load each program to Get Display Width, Get Display Height, and then Set Display Mode to the values I got. It seems easier than having to know what kind of screen I am using, let alone what kind of default aspect ratio DB is assuming, and then setting aspect ratio.