   [OpenGL/Win32] Scene turns black
  I'm staring at this problem for some time now. Whenever I try to run this app, my scene flashes briefly, followed by a black screen, which stays black.Below is my main (rendering) routine:int main(){CreateGLWindow();InitGLWindow();while(!GetAsyncKeyState(VK_ESCAPE)){glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);glLoadIdentity();// render scene...SwapBuffers(hDC);}wglMakeCurrent(0, 0);wglDeleteContext(hglrc);return 0;}My normal routines include a basic message-loop, using PeekMessage, TranslateMessage and DispatchMessage. So, I suspected my problem was somewhere in the main-loop, but testing shows it's not.Does someone have any ideas?   
  Try stepping through your code by utilizing a series of pauses.  Since you are utilizing the Win32 API, you can use MessageBox(hWnd, "Pause #", "Test", MB_OK);Add this throughout your rendering code and keep stepping through the code until you reach the point where your scene disappears.That should pinpoint where the problem lies or at least gets you a starting point.   ;  Ok, part of the problem lies in the glTranslatef function.Because time increases to much, the object dissapears from screen, althoughit shouldn't. I must have set my perspective wrong or one of my guards is incorrect. But, my scene renders correct now.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);glLoadIdentity();glEnable(GL_CULL_FACE);glColor3f(0.6f, 0.6f, 0.9f);glTranslatef(0, 10, -140 + time);