Fix for shapeBaseImage lights to appear at muzzlePoint
by Josh Moore · 08/11/2005 (3:30 am) · 2 comments
This snipet will fix the ShapeBaseImage lights to appear at the image's muzzlePoint.
In shapeImage.cc, ShapeBase::registerLights, replace:
with:
This tiny change, believe it or not, makes a noticable difference with my WeaponFireLight(muzzle flash). Maybe it will improve yours, too.
In shapeImage.cc, ShapeBase::registerLights, replace:
getRenderMountTransform(imageData->mountPoint,&posMat);
with:
getRenderImageTransform(imageData->mountPoint,imageData->muzzleNode,&posMat);
This tiny change, believe it or not, makes a noticable difference with my WeaponFireLight(muzzle flash). Maybe it will improve yours, too.
About the author
#2
08/13/2005 (8:25 pm)
Sorry Josh don't worry i'm sure it is useful. Lots of cool resources popping up and not a whole lot of time. I will check it out ASAP. :) 
Torque Owner Josh Moore