Game Development Community

Dts showing up white in engine

by Michael Boxleiter · in Torque Game Engine · 07/08/2006 (4:17 pm) · 5 replies

I've been trying to do this TicTacToe tutorial, http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5129
and for a few hours I just thought the scene wasn't rendering for some reason, but it turnes out that my scene was rendering just fine, except there were no textures on the models. They all rendered white which would have lead me to believe that the .dts files were not linking with the texture files, but the console does not display an error saying the texture cant be found, but it does display an error when I delete the texture file.

I attempted to load the torque_logo model into the scene and I got the same problem, even though that loads fine into the demo mission and other stuff.

I have all the textures in the same folder as the .dts files and they are all 512X512 so I'm pretty sure that's not the problem, it must have something to do with the engine.

I'm also using the .cc and .h files which supplied along with the tutorial, so what is there is what I'm using. I've also got the latest version of the SDK and all the demos work fine. The tutorial is pretty old, but I don't really see anyting in the code which is outdated, so I really have no idea what's going on and any help would be really appreciated.

#1
07/08/2006 (4:22 pm)
Try setting emap = false in the script file for the DTS shape.
#2
07/08/2006 (4:41 pm)
What script file where? If you mean creating a datablock in the script, I'm not using much scripting. I'm loading all the models in a gui extension I added to the SDK.
#3
07/08/2006 (5:09 pm)
Torque supports GIF, JPG, and PNG image files. Do you have them in the proper format?
#4
07/08/2006 (6:13 pm)
They're PNG, and like I said, the torque_logo object which comes with 1.4 loads incorrectly as well, even though it loads fine within the FPS demo. So I think it's a problem with my code, but I have no idea how I could have messed up the model loading.
#5
07/15/2006 (4:18 am)
Solves my problem lol using bmp's not png's so pissed new torque exported was not exporting textures but now it shows up duh to me.