I am using osgearth version 3 code with Visual Studio on windows 10.
When I add a sky node from code I get black splotches when I zoom in. They only appear while zooming and clear up when zoom is finished. I add the sky from code because the sliders always show when I add it from the earth file.
With this code I have to put the moon file in the executable directory or it is not found. I know there is a fromConfig call that would allow me to set the URL of the moon file but it is a private method and not accessible. Also I could not find any example of how to use the fromConfig call nor a JSON config file to work with the sky node
If I can get rid of the flashing I could live with the moon file issue.
the code I am using to create the sky follows.
int Environment::CreateSkyNode(float ambientLighting)
int status = -1;
if ((mMapNode != NULL) && (mViewerView != NULL))
// get current date and time and convert to zulu time