Page 1 of 1
Question about textures
Posted: Sat Mar 07, 2015 6:11 pm
by Kingpin
Just curious, if I had a model that was using textures that were not two dimensional, then would the model not show up at all or just be missing those textures? Just wanted to know since I know I messed up some textures on my model and was wondering if i messes up something else too.
Re: Question about textures
Posted: Sat Mar 07, 2015 8:12 pm
by ZoomV
I'm pretty sure the textures just won't appear and you will have flat white on whatever model uses them.
Re: Question about textures
Posted: Sat Mar 07, 2015 8:14 pm
by Kingpin
ZoomV wrote:I'm pretty sure the textures just won't appear and you will have flat white on whatever model uses them.
Diet Dr. Pepper. I guess i'll have to find out why my model isnt showing up ingame then.
Re: Question about textures
Posted: Sun Mar 08, 2015 1:52 am
by jedimoose32
If I understand the question correctly, you're wondering what happens if the texture's dimensions aren't powers of two (i.e. 256x256, 512x512, etc) right?
I haven't accidentally done that in a long time, but I believe it can cause the model not to show up in-game, or possibly even crash it. Why don't you try running the game in the BF2_Modtools.exe and then check your error log - it will definitely tell you (something along the lines of "texture abcdefg.tga is not a power of two!").
Re: Question about textures
Posted: Sun Mar 08, 2015 5:42 am
by Anakin
You are right. it will cause an error entry while munging and the model won't shown. Had the same problem when i started moddeling.
Re: Question about textures
Posted: Mon Mar 09, 2015 7:48 pm
by Kingpin
I'll loook at it. Thanks.
Re: Question about textures
Posted: Tue Mar 10, 2015 5:43 am
by thelegend
jedimoose32 wrote:If I understand the question correctly, you're wondering what happens if the texture's dimensions aren't powers of two (i.e. 256x256, 512x512, etc) right?
I haven't accidentally done that in a long time, but I believe it can cause the model not to show up in-game, or possibly even crash it. Why don't you try running the game in the BF2_Modtools.exe and then check your error log - it will definitely tell you (something along the lines of "texture abcdefg.tga is not a power of two!").
On my currently maps I was using textures in the size of (for example) 1024*512 or 512*128. All worked. But all above 2048*2048 are probably above the limit. I wouldn't recommend these. But 2048*1024 still works 8e.g. for skies or..anything else). The only important thing is that the .tga file is not larger than 16Mb.
Re: Question about textures
Posted: Tue Mar 10, 2015 1:00 pm
by THEWULFMAN
thelegend wrote:On my currently maps I was using textures in the size of (for example) 1024*512 or 512*128. All worked. But all above 2048*2048 are probably above the limit. I wouldn't recommend these. But 2048*1024 still works 8e.g. for skies or..anything else). The only important thing is that the .tga file is not larger than 16Mb.
The stock game uses textures that aren't squares either, but their resolutions (and yours) are still in powers of 2 (which is not about the shape of the texture, but about its resolutions). This game along with most others, simply put, can't understand a resolution that isn't a power of 2.
The actual resolution limit the game has is 4096, but you should never go that high for a lot of reasons. It's better to use multiple smaller textures at that point. Zero Editor also can't handle large textures either, another good reason not to go too high.
Re: Question about textures
Posted: Tue Mar 10, 2015 4:02 pm
by jedimoose32
Yes, sorry if I wasn't clear in my comment. Ratio doesn't matter. Your texture can be really long and thin, as long as your sides' lengths are a power of two (2, ... 256, 512, 1024, 2048, 4096).