Pb with lights and ShapeBaseImage
by Mathieu · in Torque Game Engine · 12/08/2003 (10:32 am) · 2 replies
See the pb :
www.garagegames.com/mg/forums/result.thread.php?qt=14330
www.garagegames.com/mg/forums/result.thread.php?qt=14330
File: game/shapeimage.cc
line : 1858
void ShapeBase::registerLights(LightManager * lightManager, bool lightingScene){
//one of the mounted images must have a light source...
for (S32 i = 0; i < MaxMountedImages; i++) {
ShapeBaseImageData* imageData = getMountedImage(i);
if (imageData != NULL && imageData->lightType != ShapeBaseImageData::NoLight){
//CC add
MatrixF tmpmat;
getMountTransform(imageData->mountPoint,&tmpmat);
Point3F TmpLightPos;
tmpmat.getColumn(3, &TmpLightPos);
imageData->registerImageLights(lightManager, lightingScene, TmpLightPos, mLightTime);
//
//imageData->registerImageLights(lightManager, lightingScene, getRenderPosition(), mLightTime);
}
}
}About the author
Developer at frogames.com / frogames.net
Associate Ben Garney