Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Jonathan_S47 on July 19, 2005, 06:49:08 pm

Title: A question about the texture system.
Post by: Jonathan_S47 on July 19, 2005, 06:49:08 pm
I am working on ways to cut down on the number of textures my models use and have started trying to put the turret models on the same texture. The question I have is will the texture be loaded into memory only once and the turrets use that one or will it be loaded in multiple times for every turret model?



Edited for understanding.
Title: A question about the texture system.
Post by: Bobboau on July 19, 2005, 06:55:39 pm
the "UV map" won't, because that phrase doesn't make sence.

but the texture will be loaded only once, only once for everything that uses it, multable ships, multable models, doesn't matter, once a texture gets loaded it will never be loaded again.
Title: A question about the texture system.
Post by: Jonathan_S47 on July 19, 2005, 07:15:10 pm
I sometimes have trouble trying to communicate what I want to say. Anyway, thanks that really helps.
Title: A question about the texture system.
Post by: WMCoolmon on July 20, 2005, 02:52:18 am
Still, remember that:
- Fewer textures are better (Two different small textures will take longer to draw than one big texture)
- Powers of 2 for texture sizes are your friend
Title: A question about the texture system.
Post by: redsniper on July 20, 2005, 10:00:26 am
[stupid]What we should do is take every texture in the game and combine them all into one enormous image file, like 1,000,000 x 1,000,000 pixels. Then adjust the UV mapping on every ship so that it matches the appropriate part of our uber-texture. That way there will only be one texture to load for the whole game.[/stupid]


;)
Title: A question about the texture system.
Post by: WMCoolmon on July 20, 2005, 03:41:03 pm
To a certain point that might speed things up. Like until the file got large enough that half of it was being paged from VM. :p