Game Development Community

Newbie Question: Getting textures to show up in DTS/Torque

by Samuel Lopez De Victoria · in Technical Issues · 07/18/2005 (11:54 am) · 11 replies

I have been modeling some vehicles as well as player models for my Torque SDK with Milkshape and am not able to get the model textures to show up in torque. I have the textures all coordinated/UV mapped and set in milkshape, and all assigned. I was wondering what I am doing wrong when I export my ms3d files into DTS. Whevener I do, I run them in game and I still ge tthe model, but it never comes out with the texture. help?

#1
07/18/2005 (12:01 pm)
Are you making sure that, after you export into DTS that you place a copy of the texture in the same directory your model is in?
#2
07/18/2005 (12:06 pm)
@Kirby: yep, I have the texture in the same folder also....
#3
07/18/2005 (12:10 pm)
I don't recall if this is a requirement or not, but are your texture sizes powers of 2?
#4
07/18/2005 (12:11 pm)
Is it the correct format?

What I mean is, if you intended to use "whateverSkin.png" as the texture, but had "whateverSkin.bmp" loaded into milkshape when you did your export (I've done this because MS doesn't "do" PNG's) then you actually don't have the right texture in the folder with the mesh.

~ Just trying to be thorough... always start with the simplest things first. (C;
#5
07/18/2005 (12:15 pm)
@Todd: I do not know... anyone know?

@Kirby: Yep. My texture is in Jpeg format... is that it? does it need to be a PNG?
#6
07/18/2005 (12:16 pm)
No, but that tells me a bit more...

Is your model appearing all shiny silver in-game?

Incidentally, he meant, is your skin sized 128 x 128, 256 x 256, 512 x 512, etc...
#7
07/18/2005 (12:22 pm)
My model is not shiny silver, but it is grey... not shiny.
#8
07/18/2005 (12:27 pm)
We're getting there, slowly but surely.

The next thing to look at is the texture size.

Torque wants square textures in powers of two - i.e. 128 x 128, 256 x 256 etc. as indicated before.

If everything looks good on that end, check the bit depth of the jpeg.

If it's over 24 bits, you'll need to reduce it.
#9
07/18/2005 (12:30 pm)
Hmmm I think that's the problem... all my texture sizes are irregular sizes. thanks! if it dosn't work then I will repost here. thanks a ton Kirby!
#10
07/18/2005 (12:33 pm)
No sweat - I hope that gets it fixed for you. =)

Incidentally, if it's texture size... Todd gets credit. He beat me to the punch. =P
#11
07/18/2005 (3:24 pm)
Also you texture does not need to be square, it can be rectangular as long as it is a power of two. For example it can be 128x256, 512x128, etc.