Game Development Community

dev|Pro Game Development Curriculum

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:

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.

#1
08/13/2005 (10:14 am)
Was this useful to anyone else besides myself?
#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. :)