limitation discovered with regard to textures [message #214802] |
Wed, 23 August 2006 22:44 |
|
Basicly, when the game starts up for the first time (or if they have been deleted), it creates .thu files for each mix file (including always.dat and always2.dat). Each file contains information about textures including the width and height.
When the game loads a texture, if its in the thu file, it uses the width and height from there instead of from the texture file itself.
What this means is that if you have a texture in your renegade data folder with the same name as a texture in a mix file and the texture has a different size to the one in the mix file, you get texture errors/issues. The same may also happen if there is a change to the mix file where a texture inside changes size but the .thu file is not deleted so it can be regenrated with the new size.
Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
|
|
|
|
|
|
Re: limitation discovered with regard to textures [message #215228 is a reply to message #214802] |
Fri, 25 August 2006 20:11 |
Blazea58
Messages: 408 Registered: May 2003
Karma: 0
|
Commander |
|
|
The textures itself based on width and hight isen't the main problem, its when you have two very different textures but named the same where it can cause graphical errors ingame. My Rp2 map has hit nearly 900 textures, and i am sure some renegade maps may have the same named textures as other maps do which could result in one texture being replaced for another.
I personally dont think that the texture "size" has any role in this as i have replaced hundreds although of course the .Thu was deleted and regenerated each time.
I have noticed with these errors all it does is replaces the old texture with the one that its conflicting with. Other then that i don't think it can make a map itself corrupt.
|
|
|
|
|
|
|