Game Development Community

Question about exporting texturing and material

by Tim Lei · in Torque Game Engine · 05/30/2002 (2:15 pm) · 5 replies

I am able to export my model. However, the texturing and the material I have applied to the model in 3dMax doesn't show up properly in the showtool. I have my character wearing a pant that is dark-blue, and put some skin texture to his body . In the showtool, however, I see the pant white, and the body's texture not looking properly.

I check the exporter documentation, and it mentions that textures need UV coordinates to be exported properly. I don't quite understand that statement, and wonder if the problem I am having relates to that statement. I try to apply UVW Map modifier to my mesh, whose transformations have been reset using the "box-trick". But it doesn't work.

Hope someone out there can give some suggestion at what I have done wrong.

Appreciate your help!

#1
05/30/2002 (3:16 pm)
Make sure you have your textures are in the same dir as the .dts shape.

Alc
#2
05/30/2002 (4:04 pm)
Yes, my texture image files are in the same directory as my .dts file, and its size is power of 2. The material color of the model I export isn't correct either. In 3dmax I see the material color is dark-blue, but in showtool I see white color.
#3
05/30/2002 (7:35 pm)
The white color usually means that there is no texture info for the model (ie missing texture). Try dropping the console (~) after loading the model and see if there is an error message.

Are you using multiple textures for the same model? I've never tried using multiple maps for the same mesh in the TGE, so there may be something there. Anyone else have any thoughts on this?

Alc
#4
05/30/2002 (10:38 pm)
Material colors are not exported into the engine. If there is no texture applied, it will show up as white in the game. If you applied a material with no texture, then this is working correctly.

The problem with the UVs I don't quite understand. Can you post a screenshot of the model in MAX and also a shot of it in the showtool? If I can see the difference I might be able to tell you what is happening.
#5
05/31/2002 (12:47 am)
Sure... but how do I post screen shot in this forum??