Game Development Community

Spot light bugs in map2dif

by Tom Spilman · in Torque Game Engine Advanced · 01/03/2005 (10:39 am) · 0 replies

There seem to be issues with spots lights in map2dif. First of all mBumpSpec is not set for spot lights. In createLightmaps.cpp in function Lighting::Light::buildSpotLight around line 2005 add this:

emitter->mBumpSpec = spotLight->mBumpSpec;

Then in entityTypes.cpp in function LightSpotEntity::parseEntityDescription around line 903 add this:

else if (pToker->tokenICmp("bumpSpec")) {
         pToker->advanceToken(false, true);
         mBumpSpec = dAtoi(pToker->getToken());
     }

With mBumpSpec false the spot light seems to not effect the scene at all. Is this correct behavior?

About the author

Tom is a programmer and co-owner of Sickhead Games, LLC.