> I did see this code block in SkySceneLoader.cpp (I assume that it is > global data): > > // Need to add a light here until we figure out how to use the sun > position and color > SkyLight::SkyLightType eType = SkyLight::SKY_LIGHT_DIRECTIONAL; > SkyLight *pLight = new SkyLight(eType); > > Is there any way I can defer this until after the main() starts? > It might be kind of kludgy. You could move that section of code creating the light object into the Set_Cloud_Orig(..) method. This runs after coming out of startup. Most likely your set of clouds will be dark since during init there will be no illumination to shade the clouds, but you could move the ShadeClouds() method @ line 154 as well. Your first frame will be a bit longer. I think this problem will go away once the 'real sun' replaces the SkyLight.
Regards John W. _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
