Game Development Community

Model Renders Black

by Dave DAmico · in Torque X 2D · 08/28/2008 (9:17 am) · 5 replies

I'm trying to import a model into TorqueX using the scene xml file. I am able to display it in the game. However, it is totally black. I tried opening it with DirectX viewer and it seems to work just fine. Do I need to do anything else to get this model to show correctly? Here is my XML for the object:





1024
1224
300


1
0
0
1



data/shape/Shot2



#1
08/28/2008 (2:34 pm)
Let me know if this makes sense... there are no texture coordinates in my DirectX model only materials. this might be a problem with the way i coverted my directx file.
#2
08/28/2008 (2:35 pm)
How does it look in showtool?
#3
08/28/2008 (2:48 pm)
Does showtool work with .X files?
#4
08/28/2008 (2:52 pm)
Nada, it only works with DTS and DSQ as far as I know. I wasnt aware TorqueX could load .x files, so assumed you were doing a .x to .dts conversion.
#5
08/29/2008 (9:02 am)
Yeah i think it is a problem with the textures and converting from .OBJ to .X. I exported again with no texture information and it renders fine...