Jump to content

[Question] Do LOD models work fine on MTA?


Tut

Recommended Posts

  • Moderators
Posted

Question 1:
Say, I would replace the following model with a volcano.

 9753_w.jpg

Would I then be able to replace its LOD model with an optimized version of my volcano model? So that my volcano would have a high poly and low poly variant for performance reasons.

Question 2:

On this page https://wiki.multitheftauto.com/wiki/SetLowLODElement in one of the examples it mentions that the maximum distance for the low-LOD would be 300, as seen below:

    -- Set the draw distance for the model we are using for low LOD to maximum
    triggerClientEvent("onClientChangeModelLODDistance", resourceRoot, 5154, 300 )

Isn't the maximum distance around 700 or so? As far as I'm aware it's 300 for regular models and a lot higher for LOD models. Can I achieve a higher distance somehow?

 

PS. the above are mere examples; I'm not trying to script anything as we speak, it would just be good to know. Thanks!

Posted

1.  Yes:

setLowLODElement

2.

EngineSetModelLODDistance

Quote

For low LOD elements, engineSetModelLODDistance still has a limit of 300 units, but the actual draw distance used is 5 times the setting value. Also, low LOD elements ignore the 'Video' tab draw distance slider. So a setting of 200 will mean a low LOD element will always have a draw distance of 1000 units.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...