Recommended Posts

First of all, greetings!
I ran into a problem in MTA. I have no idea how to solve this problem.
After I've done the map in MTA, I upload it to the server and upload it to the map. Then the other side of the map when I move to one side of the disappearance of the other side, I see the other side disappear when I pass. How can I solve this problem?
I don't have the picture I took actively, if you understand the problem, thank you already.

Share this post


Link to post

As said via PM - this is not a problem, not a problem with MTA itself, it is a feature of GTA and any other good video game.

https://en.wikipedia.org/wiki/Level_of_detail#Video_games

To save some resources - game will remove far-away objects from rendering. If an object has LOD-model (a model with simplified shapes, no collisions, simplified textures) it will switch to that model if you're too far away.

In MTA scripting you have access to some LOD-related functions, like: https://wiki.multitheftauto.com/wiki/EngineSetModelLODDistance

There is another thing to keep in mind: IIRC and nothing has changed during the years - MTA has implemented an objects streamer (someone closer to MTA development may correct me here about naming and how it works internally) which in general works like that: if there are too many additional objects near the player - it will remove those that are far away from player.

When I was playing MTA years ago - I've never cared about LODs anyway and seems like it didn't work "out of the box" for internal GTA objects (IIRC GTA had multiple LODs and these wasn't always tied to a single object but to multiple objects). If anyone has some tips/tutorials on that - it'd be nice.

You can read more about LODs on the internet - you aren't the first to discover disappearing objects :)

Examples:

https://www.techopedia.com/definition/11791/level-of-detail-lod - generic article

https://computergraphics.stackexchange.com/questions/1438/what-is-the-state-of-art-in-geometric-lod-in-games - more detailed explaination

https://www.google.com/search?q=lod objects in games - everything Internet knows on this topic

Share this post


Link to post
Posted (edited)

Firstly, MTA does not have it's own streamer; there is physically no difference between how SA handles elements and how MTA handles elements. However, separate LOD models are broken in MTA, luckly they are not really required as a typical SA object is lower poly then a far - lod element from modern games thus performance in't really hit much on decent computers (Even sub decent) unless you're going for custom maps.

 

For important objects (AND ONLY IMPORTANT OBJECTS) create the object again with a lod boolen set to true. After that use https://wiki.multitheftauto.com/wiki/SetLowLODElement

to assign it. And set the LOD distance to between 170 and 300 depending on how big the object is. https://wiki.multitheftauto.com/wiki/EngineSetModelLODDistance

 

Typically I'd recommend people use my streamer, but apparently it's the worlds most difficult thing to figure out (Other then my girl friend) and the above does the job just as well for smaller maps. For bigger maps though  https://github.com/CodyJL/JStreamer

The github readme explains it.

Edited by CodyJ(L)

Share this post


Link to post

Look, you didn't understand exactly what I wanted to tell you.

I'm looking at the front side after loading this map, or when I go to the front side, the map on the back side disappears.

Share this post


Link to post

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.