Player Lighting?
by PuG · in Torque Game Engine Advanced · 06/25/2007 (8:03 am) · 2 replies
Hi, for some reason my player character using Atlas terrian appears very dark, even with high light settings - if I load the dts object as static shape it appears fine.
Any suggestions?
Regards!
Any suggestions?
Regards!
#2
Right ive done the adjustment above, though doesn't seem to have any effect on the player character lighting levels (ive also done a full rebuild just incase - no errors).
(Ignore - now working!! - thanks!)
06/25/2007 (11:00 am)
Hi, thanks for the reply. Right ive done the adjustment above, though doesn't seem to have any effect on the player character lighting levels (ive also done a full rebuild just incase - no errors).
(Ignore - now working!! - thanks!)
Torque Owner John Kabus (BobTheCBuilder)
if(atlas) { Box3F box = atlas->getObjBox(); atlas->getRenderWorldTransform().mulP(collision.point); uv.x = mClampF((collision.point.x / (box.max.x - box.min.x)), 0.0, 1.0); uv.y = mClampF((collision.point.y / (box.max.y - box.min.y)), 0.0, 1.0); lightmap = atlas->lightMapTex.getBitmap(); }To:
if(atlas) { [b]lightmap = NULL; mLightingInfo.mDefaultColor = ColorF(1.0f, 1.0f, 1.0f); mLightingInfo.mUseInfo = true;[/b] }