change scenes

I need some idees how to change between scenes (using glut). I tryed to change the scene with glutDisplayFunc() wich doesnt work as I want to. And I tryed to make a switch statement within the idlefunc wich made it flicker.
Any idees how to change scene in a good way like people use to do in demos?

Are you looking for a fade effect or some sort of transition where they are blended? Fade effect should be easy if using alpha channel… enable blend… draw black quad in front of everything as its alpha value increases from 0 to 1 over whatever time frame you want the fade to occur. The fade in would be the opposite. Not sure about the blending scenes effect… maybe accum buffer, or read pixels and then draw pixels if you can change alpha values.

Otherwise, glutDisplayFunc is the correct way to switch between scenes/drawing functions.

[This message has been edited by shinpaughp (edited 10-28-2003).]