Quantcast

Jump to content

» «
Photo

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

3 replies to this topic
nyolc8
  • nyolc8

    -

  • Members
  • Joined: 12 Oct 2009
  • None

#1

Posted 31 July 2014 - 02:47 PM

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)


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union

#2

Posted 31 July 2014 - 04:34 PM Edited by ZAZ, 31 July 2014 - 04:48 PM.

(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

nyolc8
  • nyolc8

    -

  • Members
  • Joined: 12 Oct 2009
  • None

#3

Posted 31 July 2014 - 10:20 PM

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?


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union

#4

Posted 02 August 2014 - 03:03 AM

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




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users