Draw distance

From GTAMods Wiki
Revision as of 16:35, 24 February 2009 by Aschratt (talk | contribs)
Jump to navigation Jump to search

An object's draw distance is declared in the IDE files. It tells the engine how far away any given object should render with relevancy to the player's position. Close range objects are rendered for a distance up to 300 units. LOD objects are rendered from 301 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. San Andreas' LOD models do not require collision at all. However it is recommend to create one, because the game may crash, if you forget to link the LOD object to another object. As long as the object has an LOD flag which is -1 the game searches for a collision.