TGEA 1.03 Strafing Player Jittery Shadows
by Ronald J Nelson · in Torque Game Engine Advanced · 04/10/2008 (8:28 pm) · 1 replies
This was at first something I though I had done wrong but then I tested it in the stock TGEA 1.03 starter.fps. When you look at your shadow while strafing, the shadow jitters and actually becomes two shadows. Has this already been solved?
This is just one of the little tweaks I wanted to get solved before stopping coding and moving on to helping my team with 3D work.
This is just one of the little tweaks I wanted to get solved before stopping coding and moving on to helping my team with 3D work.
Torque Owner Ronald J Nelson
Code Hammer Games
Just replace MatrixF sgShadowProjector::sgGetAdjustedParentWorldTransform() with this:
MatrixF sgShadowProjector::sgGetAdjustedParentWorldTransform() { MatrixF mat = sgParentObject->getRenderTransform(); Box3F box = sgParentObject->getRenderWorldBox(); Point3F center; box.getCenter(¢er); mat.setPosition(center); return mat; }