Anyone figured out the perfect camzoom for skyboxi

Blitz3D Forums/Blitz3D Programming/Anyone figured out the perfect camzoom for skyboxi

D4NM4N(Posted 2008) [#1]
Im trying to add skybox creation output to ted and want to know if anyone has a camerazoom ratio for a perfect -45' to 45' (LR&UD) view when using a square camera ratio?

I could do it with mucho trial and error but was wondering if anyone had the maths to figure it out.


GfK(Posted 2008) [#2]
1?

(Haven't used Blitz3D for years but the wide angle is what causes the warping people complain of sometimes).

I'm sure I've seen a bit of code in the code archives for calculating what CameraZoom to use given X FOV - so you should probably have a look around for that.


Ross C(Posted 2008) [#3]
Yep, camerazoom of 1 is the way to go :o)

Check out the cubemapping exmaple in the docs, for setcubeface. It simply creates a camera, and uses it as it is.


Damien Sturdy(Posted 2008) [#4]
[edit] I agree. <what I said didnt make much sense.>


Zethrax(Posted 2008) [#5]
Yes, CameraZoom camera, 1.0 gives you a 90 degree field of view which should be perfect for rendering skyboxes.