[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] [PyGame + PyOpenGL] Setting Target Surface
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] [PyGame + PyOpenGL] Setting Target Surface
- From: "Simon Wittber" <simonwittber@xxxxxxxxx>
- Date: Thu, 6 Apr 2006 21:48:36 +0800
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Thu, 06 Apr 2006 09:48:41 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WcGCkngDnszUs3NtVGQ9qox4ooCGyaM54lAgleFhwK1pEgqFEHrwEjPf9w5QnZDWpYinz2w948YJTVpEpff29JZ8GA3oWEIaVd7PSjiqc1TNbXLoUnD+N5xqHenPWZJ7mveYlzNo9IZCC7JIAsnkc4w6xF2A8bLkD50KsEY7jDU=
- In-reply-to: <44350B2C.1050108@wi.rr.com>
- References: <44350B2C.1050108@wi.rr.com>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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.