Jump to content

BSL:Frustum and fog: Difference between revisions

Don't know where I got the 83ft from. Must have been high on something
(moving most technical parts to Graphics to slim this down (lots more commands will be going here once this becomes BSL:Graphics))
(Don't know where I got the 83ft from. Must have been high on something)
Line 3: Line 3:


;void gs_farclipplane_set(float plane)
;void gs_farclipplane_set(float plane)
:This sets the distance of the far clipping plane in world units. If you call '''gs_farclipplane_set(1000)''', then all polygons whose closest point is more than 1,000 world units (83 ft) away from the camera will be culled. The default distance of the far clipping distance is 10,000 world units (833 ft).
:This sets the distance of the far clipping plane in world units. If you call '''gs_farclipplane_set(1000)''', then all polygons whose closest point is more than 1,000 world units (328.084 ft, or 100 m) away from the camera will be culled. The default distance of the far clipping distance is 10,000 world units (3280.84 ft, or 1km).
:(The maximum size of the visible world is 819.2 x 819.2 x 819.2 m, see [[OBD:OTLF|HERE]]. Therefore the default far clip distance imposes no restriction at all, unless the camera is taken far away from the center of the world.)


;void gs_fov_set(float fov_degrees)
;void gs_fov_set(float fov_degrees)