Skip to content

[EN] LOD (Level Of Detail)

Valdir da Costa Júnior edited this page Mar 27, 2020 · 16 revisions

How to use

Use < and then some value to make the part render only if the camera is LESS than that distance. Use > for the inverse.

For example, interior<1 will only make the interior node render when it is too close to the camera, if it is a little far away it will disappear.

interior<5 will be rendered from a good distance.
So you can use >5 on the low definition model, for example interiorLOD>5, so that when the car is a little far away, the normal interior (interior<5) disappears and the low definition model (interiorLOD>5) is rendered instead.

But what you'll probably use most is >9. Using 9 is not a distance, it is a bonus that will make it follow the original _vlo of the game.
That is, >9 will make the part appear only if _vlo appears, and <9 will make the part appear only if _vlo is not appearing.
With this we can make the Picador extra appear correctly in LOD (_vlo). Just add it with the extras, and you will finally have varying LODs in GTA SA.

The menu draw distance changes the result.

It is not possible yet to use < and > at same time in same node.

To give you a sense of the distance of each value (based on the maximum draw distance set in the graphics menu):

Good practices tips for hiding details (if you are lazy to create new models for different levels of detail):
0 = If you use >0, the part will simply always be visible as long as the vehicle is visible.

  1. Minor details: dashboard icons and buttons; very small interior props as cigarette or a pen; hidden engine wires etc.
  2. Minor details: speedometer needle; other minor engine details; small interior props and details such as car key etc.
  3. Small details: pedals; gearshift; some small interior props such as soda can; other small engine details etc.
  4. Small details: other interior details, such as props as magazines, fast food boxes; some minor external details, such as car logo and name, suspension etc.
  5. Medium details: all interior details such as steering wheel; some other external details such as exhaust, antennas, headlight deep details etc.
  6. Medium details: almost all interior and engine details can be hidden, and other medium external details such as small spoilers.
  7. High details: Maybe you can fully hide all car interior and engine (but don't keep a hole there).
  8. High details: You only need the car body with wheels, lights and glasses. No details.
  9. Bonus: Using 9 is not a distance, but rather an indication to follow the game's original _vlo. That is, >9 will make the part appear only if _vlo appears, and <9 will make the part appear only if _vlo is not appearing.

But keep in mind: It makes no sense to separate too many lightweight and very small things, sometimes rendering it is lighter than separating it to calculate whether it will render or not. It's good to separate well, but don't overdo it.
The above examples are didactic, you may only want to use 1, 2 or 3 levels, don't use it like a rule, feel free.

Clone this wiki locally