Game Development Community

Texture not appearing in TGE

by Gavin Doherty · in Artist Corner · 11/15/2005 (8:52 am) · 11 replies

I have created an interior using quark. I exported it to dif copyed it and the texture files to my torque game directory. When I launch the game a bunch of the textures are missing, instead it just shows a flat grey. I have tried relighting the scene, but that doesn't help. Also, I know that the texture files are being used by torque because if I remove one of them it throws an error message.
Also, none of the texture file names have spaces in them or anything like that.
Any ideas?

#1
11/15/2005 (8:54 am)
What format are the texture files, some formats don't work. Try converting them to .png /re-exporting and copying and see what happens.
#2
11/15/2005 (9:06 am)
They were all in jpg. Weird thing is that some of them work.

I converted the lot to png. Still the same problem. Now that they are all png, the same textures don't appear as before. Really weird.
#3
11/15/2005 (9:11 am)
Are all of your textures the power of 2?

64x64
128x128
256x256
512x512
#4
11/15/2005 (9:11 am)
Are the textures resolution a power of two? (that is 32, 64, 128, 256, etc).

edit: oops, too late =)
#5
11/15/2005 (9:13 am)
No they were arbitrarily sized. I didn't realise that they had to be sized that way. Thanks for the help!
#6
11/15/2005 (9:17 am)
Just curious; what's the reason for this limitation? It makes things very inconvienient (creating seamless textures is difficult enough in the first place!).
#7
11/15/2005 (9:21 am)
Video cards prefer to load power of 2 textures it's easier for the card to map them.
#8
11/15/2005 (9:28 am)
Ok. Thanks for the help.
#9
11/25/2005 (4:27 pm)
I don't think that's necessarily true. Or rather, it shouldn't be the cause of missing textures. I've had the same problem before, only duplicate textures would show in some places and not others. So while ^2-sized textures certainly fit better on a memory stack, there has to be some other cause.
#10
11/25/2005 (5:18 pm)
Btw you can use textures with size e.g.:
64x128, 64x256, 64x256, 128x256, 128x512 or even 32x512 .... any combination of 2, 4, 8, 16, 32, 64, 128, 256 and 512.
The power in power of 2.
#11
05/17/2006 (7:22 am)
What about a texture that appears in showtool on a model but not in torque?