Game Development Community

Exported DTS only gets ambient light

by cogmac · in Artist Corner · 06/12/2006 (9:30 am) · 1 replies

I am creating textured objects in milkshape and exporting them (tried both the DTS and DTSPlus exporters).

When I place these objects in the demo Torque level, they only receive ambient light. If I change the sunlight's ambient to (0,0,0), my objects are black. They should be lit on one side with the sun's directional light.

Other objects do not have this problem. For example, the trees in the demo level, and objects from the Digital Urban pack do get directional light as well as ambient.

Has anyone else experienced this problem? Any tips on how to fix this?

#1
06/12/2006 (11:54 am)
Ok, I figured it out, but I believe this definitely illustrates a bug in Torque.

If I export a DTS from Milkshape, and then scale it up in Torque (through the editor), then it will only receive ambient light.

If, instead, I set the scale in Milkshape (with materials like opt:scale=2.5), then when placed in Torque it receives both ambient and directional light.