Game Development Community

[beta5 bug] debris appears black (w/ fix)

by Ivan Mandzhukov · in Torque 3D Professional · 09/04/2009 (7:01 am) · 2 replies

Has Someone had debrises that render black instead of textured? I am using the debris from the default T3D beta 5 installation from the crossbow folder. In TGEA 1.7.1 they render textured. I create them via explosion. Am I missing something?

#1
09/04/2009 (9:02 am)
EDIT:fixed

in prepBatchRender() find this:
// Set up our TS render state.
   TSRenderState rdata;
   rdata.setCamTransform( world );
   rdata.setSceneState( state );

..and after it add this:
LightManager *lm = gClientSceneGraph->getLightManager();
   if ( !state->isShadowPass() ) lm->setupLights( this,getWorldSphere() );
#2
09/04/2009 (3:52 pm)
Thanks Picasso, added this fix to the trunk.