Difference between revisions of "Draw distance"

From GTAMods Wiki
Jump to navigation Jump to search
 
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
The Draw Distance is the distance that the '''engine draws'''. The usual distance of a map object is 250-300. The '''maximum draw distance''' of a map object is 300. Over 300 the object is draw but '''it loses his [[Collision file]]'''. Values over 300 are used for [[LOD]] objects, usually [[LOD]] objects use a value of 2500.
+
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.