Jump to content

BSL:Frustum and fog: Difference between revisions

m
m (duh)
 
Line 12: Line 12:
;Notes
;Notes
:The far clip plane and FOV are only reset when Oni starts, ''not'' when you load a level, so mind their default values and the side effect of other scripts.
:The far clip plane and FOV are only reset when Oni starts, ''not'' when you load a level, so mind their default values and the side effect of other scripts.
:There is no control over Oni's ''near'' clipping plane: its distance is always 4 units (16 inches).
:There is no control over Oni's ''near'' clipping plane: its distance is always 4 units (40 cm, or about 16 inches).
:The fixed vertical FOV is why some of Oni's cutscenes were broken when 16:10 and 16:9 screens appeared.
:The fixed vertical FOV is why some of Oni's cutscenes were broken when 16:10 and 16:9 screens appeared.
::To fix in on a 16:9 screen, use <code>[[gs_fov_set]](34.515877)</code> (because '''2 * arctan((4/3)/(16/9) * tan(45° / 2)) = 34.515877°''' ).
::To fix in on a 16:9 screen, use <code>[[gs_fov_set]](34.515877)</code> (because '''2 * arctan((4/3)/(16/9) * tan(45° / 2)) = 34.515877°''' ).