[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] [PyGame + PyOpenGL] Setting Target Surface



On 4/6/06, Mike Wyatt <mwyatt@xxxxxxxxx> wrote:
> By default, everything I draw with the gl***() methods is drawn directly
> onto the back buffer. Calling pygame.display.flip() then flips the new
> image to the screen. What I'd like to do is render multiple scenes to
> seperate pygame.Surface objects, then render all the surfaces together
> onto the back buffer, then flipping the final image to the screen. This
> will be used for fade in/out transitions between game screens.
>
> Any thoughts?
>

Do some research on using the OpenGL accumulation buffer. It can do
exactly what you describe, as well as other similar effects, such as
motion blur.