Development > Newbie Coding

extracting surface parameters from .map files

<< < (2/4) > >>

Duke:
Can your script already count the number of occurrences for each texture ?
That would be a start...

ShipIt:
I started simple by counting the number of faces each texture is used on.
But I found this to be misleading often, because a texture used on a single big plane needs a material entry more than a texture used on lots of very small surfaces.

Sandro:
Please clarify what exactly you want to accomplish? Remove textures which are almost always not seen by player? Or, optimize memory usage? Second one would not work -- texture is always loaded in it's entiriety.

Duke:
Sandro,
he is talking about material entries for textures, not the textures themselves.

ShipIt,
how many percent of your list currently lack a material entry ?
Is there a limit for material entries ?

ShipIt:

--- Quote from: Sandro on March 10, 2014, 02:11:54 pm ---Please clarify what exactly you want to accomplish? Remove textures which are almost always not seen by player? Or, optimize memory usage? Second one would not work -- texture is always loaded in it's entiriety.

--- End quote ---

I check out what textures are used within a map to update its material file.

RMAs use more than 100 different textures. Now I seek a way to figure out which textures are worth a material definition. For this I thought it would be nice to know how many square units each texture uses within the map.

So basically, I want to compute the surface size of each face in a .map file.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version