Difference between revisions of "041D"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Icon|t}} '''SET_NEAR_CLIP''' <hr /> '''Description''' : Sets the near clip '''Syntax''' : 041D: set_camera_near_clip [''flt''] '''Parameter''' : [''flt''] :: Near clip value...")
 
 
Line 9: Line 9:
 
:: Near clip value, default 0.9
 
:: Near clip value, default 0.9
  
This opcode sets the near clip of the camera during cutscenes. Anything closer to the camera than the specified value will be clipped by the game as seen in the image below. This opcode only affects the next or current cutscene and has no effect elsewhere. When the cutscene ends and if the next cutscene is played without setting a near clip, the next cutscene uses the default value of ''0.9''. Values close to ''0.0'' is not recommended as it will cause weird graphical glitches.
+
This opcode sets the near clip of the camera. Anything closer to the camera than the specified value will be clipped by the game as seen in the image below. The effect of this opcode resets to its default value of ''0.9'' anytime a [[cutscene]] clears. Small values close to or at ''0.0'' will cause weird graphical glitches and negative values will clip everything that can be clipped so those value are not recommended. The opcode is generally used during cutscenes but it can be used anytime.
  
 
{| class="wikitable"
 
{| class="wikitable"

Latest revision as of 04:24, 27 August 2015

GTA III Vice City San Andreas SET_NEAR_CLIP


Description

Sets the near clip

Syntax

041D: set_camera_near_clip [flt]

Parameter

[flt]
Near clip value, default 0.9

This opcode sets the near clip of the camera. Anything closer to the camera than the specified value will be clipped by the game as seen in the image below. The effect of this opcode resets to its default value of 0.9 anytime a cutscene clears. Small values close to or at 0.0 will cause weird graphical glitches and negative values will clip everything that can be clipped so those value are not recommended. The opcode is generally used during cutscenes but it can be used anytime.

0.9 (default) 0.1 (used in cutscene)
0.9 0.1

Keywords

set, camera, near, clip