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.

Author
Message
Gamefreak
19
Years of Service
User Offline
Joined: 20th Jun 2004
Location: Cyberspace
Posted: 21st Dec 2004 05:12
What is the default FOV for DBPro? I need both horizontal and vertical measurements, or are they the same?
Clueless
20
Years of Service
User Offline
Joined: 16th Feb 2004
Location: Corbin, KY, USA
Posted: 21st Dec 2004 05:43
90 degrees, I'm pretty sure. Without a property that can be read to get the value, I always like to:

intFOV = 90

then use that variable in response to "f" and "F" keys to alter the view, plus
set cursor 0,0
print "other debug stuff"; blah
print "FOV: "; intFOV
David T
Retired Moderator
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 21st Dec 2004 06:00
91.962139129638672 is the one I use, can't remember where I got it from (might have been a code snippet that used vectors).

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
Dmitry K
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Russia
Posted: 21st Dec 2004 13:38
61.9621391296



Specs: P4 2.4GHz, DIMM 256 266Mhz, 60GB HD 7200rpm ATA-133, GeForce 4 MX440, CD-RW+DVD, WinXP
Gamefreak
19
Years of Service
User Offline
Joined: 20th Jun 2004
Location: Cyberspace
Posted: 21st Dec 2004 19:59
Is that both directions?
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 21st Dec 2004 20:21 Edited at: 21st Dec 2004 20:22
It most definitly isn't 90 degrees, Dmitry's looks spot on. Simple visual test...



And gamefreak, I don't know when you last looked at the fov command, but it only takes one value.

Isn't it? Wasn't it? Marvellous!
David T
Retired Moderator
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 21st Dec 2004 21:29
Ah Dmitry - our numbers are the same apart from yours is 61 instead of 91 - I must have misread your code when copying the fov

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
Chris K
20
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 21st Dec 2004 22:38
That's the vertical angle.

The horizontal angle is worked out with the aspect ratio.

I think the command is set camera aspect
Gamefreak
19
Years of Service
User Offline
Joined: 20th Jun 2004
Location: Cyberspace
Posted: 22nd Dec 2004 03:55 Edited at: 22nd Dec 2004 03:57
So 61.9621391296 is the angle up and down? (from a side view = < )
Then according to the help file, the horizontal angle would be less?
(It says the default ratio is 0.75 and is found by dividing screen width by screen height).
So 3 units could be width and 4 could be height for example, giving 0.75 as the ratio?


[EDIT] (Spelling)
Gamefreak
19
Years of Service
User Offline
Joined: 20th Jun 2004
Location: Cyberspace
Posted: 22nd Dec 2004 04:24 Edited at: 22nd Dec 2004 04:24
With my superior math skills , I was able to calculate the width and height of the screen at a certain distance from the camera. I also found a typo in the help. Aspect ratio is not width/height = 0.75, it is height/width = 0.75.

Here is the code. The "- 0.1" is to show that it really match the relative size off the screen. It uses the dimensions I calculated for distance = 3.

Login to post a reply

Server time is: 2024-03-29 12:20:21
Your offset time is: 2024-03-29 12:20:21