Code: If SkyBoxRequired then begin // glDepthMask(False); // glDepthFunc(GL_NEVER); glDisable(GL_DEPTH_TEST); glClearDepth(1); RenderSkybox; glEnable(GL_DEPTH_TEST); // glDepthFunc(GL_LESS); // SwapBuffers(Engine.OpenGLVars.h_DC); // glDepthMask(True); end;
Clearing the buffer isn't doing anything. Doesn't seem to want to draw ontop of it....
In a few maps they have skyportals, basicaly a 3d cordinate which takes u to a mini landscape, from what i can tell thats drawn then the rest of the world is drawn ontop, so that when u move around u can see the landscape. A pic of the one in Escape1.Bsp is shown below (if u look at pic 2, then pic 4 ull notice the size of the features are nearly the same, leading me to believe that it is drawn first then the rest drawn ontop)
|