From: david Date: Mon, 16 Sep 2002 02:26:20 +0000 (+0000) Subject: Patches from Norm Vine to get clouds working (and add some debugging X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=83e6e44eabc661897e0f37a2b8cd4db558e1250a;p=simgear.git Patches from Norm Vine to get clouds working (and add some debugging information). --- diff --git a/simgear/scene/sky/clouds3d/SkyArchive.cpp b/simgear/scene/sky/clouds3d/SkyArchive.cpp index 4b6bcc9f..ef19122d 100644 --- a/simgear/scene/sky/clouds3d/SkyArchive.cpp +++ b/simgear/scene/sky/clouds3d/SkyArchive.cpp @@ -964,6 +964,9 @@ SKYRESULT SkyArchive::Load(const char* pFileName) FILE* pSrcFile = NULL; + char buf[512]; + sprintf(buf,"SkyArchive::Load(%s)",pFileName); + SkyTrace(buf); if (NULL == (pSrcFile = fopen(pFileName, "rb"))) // file opened successfully { SkyTrace("Error: SkyArchive::Load(): failed to open file for reading."); diff --git a/simgear/scene/sky/clouds3d/SkySceneLoader.cpp b/simgear/scene/sky/clouds3d/SkySceneLoader.cpp index 6ccfe80d..6aea15cb 100644 --- a/simgear/scene/sky/clouds3d/SkySceneLoader.cpp +++ b/simgear/scene/sky/clouds3d/SkySceneLoader.cpp @@ -222,11 +222,12 @@ void SkySceneLoader::Draw() //_ssgCurrentContext->cull(r) ; //_ssgDrawDList () ; - SceneManager::InstancePtr()->Display(*pCam); + SceneManager::InstancePtr()->Update(*pCam); + SceneManager::InstancePtr()->Display(*pCam); - //pLight->Display(); // draw the light position to debug with sun position + //pLight->Display(); // draw the light position to debug with sun position glMatrixMode ( GL_MODELVIEW ) ; glLoadIdentity () ; -} \ No newline at end of file +}