Hodo33 Posted July 22, 2018 Share Posted July 22, 2018 Back in 1.5.2 when opengl was used I added thisIn sceneObject.cc at the end I addedColorF SceneObject::getLastColor(void){ return mLightingInfo.smAmbientLight.mColor;}In player.ccConsoleMethod( Player, getColor, const char*, 2, 2, "Return the current color level."){ char *buff = Con::getReturnBuffer(128); ColorF color = object->getLastColor(); dSprintf(buff,128, "%f %f %f %f",color.red, color.green, color.blue, color.alpha); return buff;}I could use this to get the intensity of light on my character so I could code if the bots could see me lurking in the night shadows.Now using 3.8 things have changed and I would like to find where I could get the player current light intensity. Can anyone point me to where I could get this info now? I understand it has to do with rendering the color of a texture on the player but after much searching I am lost...Any help ? This should be part of the engine if it is not already.... Quote Link to comment Share on other sites More sharing options...
Happenstance Posted July 24, 2018 Share Posted July 24, 2018 Might be helpful: https://www.garagegames.com/community/resources/view/22970 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.