Difference between revisions of "Draw distance"

From GTAMods Wiki
Jump to navigation Jump to search
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
The '''draw distance''' is the radius (in [[unit]]s) from the camera in which the engine draws world objects. The usual distance of a map object is 150 to 300. The '''maximum draw distance''' of a (high detail) map object is 300. With values higher than 300 the object is still drawn, but is not [[collision file|solid]] anymore. Such values are mainly used for [[LOD]] objects, which have a much higher draw distance.
+
An object's '''draw distance''' is declared in the [[Item Definition|IDE]] files.  
  
The draw distance value is defined in the [[IDE]].
+
The draw distance value tells the engine how far away any given object should be rendered relative to the player's position (Line of Sight) or viewpoint. Close range normal objects are rendered for a distance no greater then 299 [[unit]]s however [[LOD]] objects are rendered from 300 to 3000 [[unit]]s.
 +
 
 +
In [[GTA 3]] and [[Vice City]], [[collision file|collision data]] for an LOD object (draw distance is greater than 300) is ignored by the engine.
 +
 
 +
In [[San Andreas]]' LOD models can share the same collision with no mesh or collision spare but the same rule applies where every LOD model or Normal model much have a collision.
 +
 
 +
Same models can have the collision data stored within where you can link the LOD object to another object. As long as the object has an LOD flag which is -1 in the [[IPL]] file the game searches for a collision.
  
 
[[Category:Mapping]][[Category:Documentation]]
 
[[Category:Mapping]][[Category:Documentation]]

Latest revision as of 03:54, 16 December 2011

An object's draw distance is declared in the IDE files.

The draw distance value tells the engine how far away any given object should be rendered relative to the player's position (Line of Sight) or viewpoint. Close range normal objects are rendered for a distance no greater then 299 units however LOD objects are rendered from 300 to 3000 units.

In GTA 3 and Vice City, collision data for an LOD object (draw distance is greater than 300) is ignored by the engine.

In San Andreas' LOD models can share the same collision with no mesh or collision spare but the same rule applies where every LOD model or Normal model much have a collision.

Same models can have the collision data stored within where you can link the LOD object to another object. As long as the object has an LOD flag which is -1 in the IPL file the game searches for a collision.