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 / Reseting the FOV?

Author
Message
Zeus
19
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 25th Nov 2007 22:04
Alright I have myself faced with one problem after setting the FOV to 0.3500018 and tried setting it to the default FOV and it doesn't work. Is there a command that resets the FOV that I can't find in the help files? Or is there a way to do it?

Thanks,

Jordan

Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 25th Nov 2007 22:42 Edited at: 25th Nov 2007 22:44
The answer can be found in the DB Help file
Quote: "
SET CAMERA FOV
This command will set field of view for the camera given an Angle value. The default angle is the result of the calculation 3.14/2.905.

SYNTAX
SET CAMERA FOV Angle "


I don't quite understand how this is an angle
The answer is around 1.08! that's a REALLY small angle

Play around with FOV, you can get some awesome effects like the distorted underwater view I did for the DB Challenges

"You must be someone's friend to make comments about them." - MySpace lied.
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 26th Nov 2007 00:01
The field of view is in radians.

Here's the conversion to degrees:



Enjoy your day.
Zeus
19
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 26th Nov 2007 13:42
Thanks.

Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 26th Nov 2007 23:46 Edited at: 27th Nov 2007 00:31
Thanks latch
I'll add that to my FOV demo


ping!

"You must be someone's friend to make comments about them." - MySpace lied.

Login to post a reply

Server time is: 2026-07-05 17:56:48
Your offset time is: 2026-07-05 17:56:48