Jump to content

Adding custom LODs for specific coordinates (without any model there)?


nyolc8

Recommended Posts

Is it possible to spawn just LOD to specific coordinates and remove them when I get close to them?

 

The reason why would I like this:

I play samp only on one server, and I would like to make it's custom maps appear from far distance by just adding LODs to specific coordinates.

 

(I posted this in other section because I think this wouldn't just mapping)

Link to comment
Share on other sites

On 7/31/2014 at 4:47 PM, nyolc8 said:

(I posted this in other section because I think this wouldn't just mapping)

LOD is mapping, moved to mapping --->

 

 

 

LOD models can be installed by 2 methods: with collisions model or without collisions model

if the LOD have a coll model, then can you place it like any other objects..

..but it doesn't discharge such performance like intended, the most LOD's in the original game are without collisions model

 

in both ways can you link the stock building to the LOD building to let the LOD blink out if you come to the stock building

LOD's without collisions model must be done in this way and must be done in IPL files

 

Objects which should link to a corresponding LOD object must have the line number of the corresponding LOD object at line end

 

LOD objects must have -1 at the end

only objects which should link to a corresponding LOD object must not have -1 at the end

the others must have -1 at the end

 

example, 3 objects which links to their corresponding LOD object

Line number 0 = "5001, mynice_home,"

mynice_home links to LODice_home at line 3,

mynice_garage to LODice_garage at line 4

and so on

 

 

inst
5001, mynice_home, 0, 190.6, -1425.8, 19.4, 0, 0, 0, 1, 3
5002, mynice_garage, 0, 190.6, -1425.8, 19.4, 0, 0, 0, 1, 4
5003, mynice_shop, 0, 190.6, -1425.8, 19.4, 0, 0, 0, 1, 5
5004, LODice_home, 0, 190.6, -1425.8, 19.4, 0, 0, 0, 1, -1
5005, LODice_garage, 0, 190.6, -1425.8, 19.4, 0, 0, 0, 1, -1
5006, LODice_shop, 0, 190.6, -1425.8, 19.4, 0, 0, 0, 1, -1
end

LOD placement can't be done in stream.ipl's but must be done in the ipl files of map folder

The stream.ipl files contain a lot of object placements with link numbers to corresponding LOD objects of ipl files of map folder

Edited by ZAZ
Link to comment
Share on other sites

So this means if I want to make a LODmodel somewhere, then I need to place a regular model for it too, and then link the LOD to that, right?

 

What happens if I just make it like this:

inst5004, LODice_home, 0, 190.6, -1425.8, 19.4, 0, 0, 0, 1, -15005, LODice_garage, 0, 190.6, -1425.8, 19.4, 0, 0, 0, 1, -15006, LODice_shop, 0, 190.6, -1425.8, 19.4, 0, 0, 0, 1, -1end

?

It will crash?

Link to comment
Share on other sites

On 8/1/2014 at 12:20 AM, nyolc8 said:

So this means if I want to make a LODmodel somewhere, then I need to place a regular model for it too, and then link the LOD to that, right?

 

What happens if I just make it like this:

inst
5004, LODice_home, 0, 190.6, -1425.8, 19.4, 0, 0, 0, 1, -1
5005, LODice_garage, 0, 190.6, -1425.8, 19.4, 0, 0, 0, 1, -1
5006, LODice_shop, 0, 190.6, -1425.8, 19.4, 0, 0, 0, 1, -1
end
?

It will crash?

 

It works, if there exist colllisions models for these objects

It crashes, if there doesn't exist colllisions models for these objects

 

objects need to be installed by *.dff, *.txd, *.col

 

collisions models are packed inside of a coll archiv, that have another name

so you can't find a <object>.col in gta3.img but a multiobj.col for example

multiobj.col contains the coll models of the objects which are defined in multiobj.ide

 

the most LOD objects of originally game don't have a coll model, to discharge the game memory

Edited by ZAZ
Link to comment
Share on other sites

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
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.