PDA

View Full Version : skybox color prob



incus
09-18-2002, 09:42 AM
i have a skybox and when i try to color objects in my world the skybox gets the color

jwatte
09-18-2002, 10:53 AM
This doesn't seem like an advanced question. You need to ensure that the correct state is set before rendering each primitive. OpenGL does not re-set any state when you call SwapBuffers, so it's probably the color of your last item leaking over to the skybox. To see whether this is the case, add a glColor4f( 1,1,1,1 ) before drawing the skybox.