Game Development Community

Missing textures.

by Braveheart · in Artist Corner · 12/04/2007 (11:57 am) · 9 replies

I have exported a building which has been UV mapped and I have all the right textures in the directory, but it seems like only the JPEG textures show up and none of the other textures which are not JPEG, does this mean I can only use .jpg textures files?

What am I doing wrong, how can I get .png, .tga, .gif etc to all work as well?

#1
12/04/2007 (12:09 pm)
Jpg, png, bmp.

a quick search for "tga" turns up a resource for loading tga's.
#2
12/04/2007 (12:49 pm)
Thanks. Well, I have a simple road model, it's one model with two different texture files mapped to different faces. When I export it and spawn it in game, only one of the texutres load the other one doesn't... Why is this? Both texture files are in the correct place.
#3
12/04/2007 (1:23 pm)
Dunno.
did you check the console.log for errors / warnings ?
#4
12/04/2007 (2:10 pm)
Okay, it seems like textures which are 256x265 and below seems to work, anything larger than that do not work... Is this right? What is the liit to texture size? Or how can I change the limit in TGE so i can use the bigger textures that I have already mapped to my models? (It will be a pain to re texture everything will lower res textures...)
#5
12/04/2007 (2:43 pm)
There's no inherent limit.
be sure your textures are a power of two in each dimension. eg 256x512, 512x512 etc.
#6
12/04/2007 (2:55 pm)
What if the texutres I have are not like that? Why should it matter? How could I change the dimentions?
#7
12/05/2007 (6:32 am)
You will need to make them like that. Power of two textures are optimized for video hardware (and most video hardware will convert them to use them, but that takes processing power when you could be doing other important things like rendering. Use a program like Photoshop or GiMP to change the pictures.
#8
12/05/2007 (8:17 am)
Well okay... I have two textures which are: 3452x1623, 2305x2000 what sizes would you recommend sizing them down to? They're high quality and would be nice to keep the quality or not loose too much.


It's quite annoying that any size of texture doesn't work... Is there any site at which I could get size references?
#9
12/05/2007 (8:37 am)
Well, 256x256, 512x512, 1024x1024, etc are general sizes that are POT friendly--because they're POT sizes. Those textures are huge and are going to hit the GPU on your graphics card hard. You can also mix them so that you could have 512X1024 and such.