Question about textures

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Question about textures

Post 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.
ZoomV
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 308
Joined: Thu Aug 15, 2013 11:27 am
Projects :: Old Republic Map pack
Games I'm Playing :: BF2 SWTOR and GW2
xbox live or psn: No gamertag set
Location: Belsavis, Maximum Security Ward

Re: Question about textures

Post by ZoomV »

I'm pretty sure the textures just won't appear and you will have flat white on whatever model uses them.
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Question about textures

Post 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.
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Question about textures

Post 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!").
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Question about textures

Post 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.
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Question about textures

Post by Kingpin »

I'll loook at it. Thanks.
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Question about textures

Post 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.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Question about textures

Post 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.
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Question about textures

Post 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).
Post Reply