[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] PyOpenGL Screenshots
- To: "pygame-users@xxxxxxxx" <pygame-users@xxxxxxxx>
- Subject: [pygame] PyOpenGL Screenshots
- From: "Ian Mallett" <geometrian@xxxxxxxxx>
- Date: Tue, 6 May 2008 21:20:28 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Wed, 07 May 2008 00:20:42 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=WISAjhivmpsoJRnu44pZTgXsYpeb5r/jV3eS5EgQPoU=; b=Sp5skqs+t3cxFF5zTgfatWqFoxapafB5v6DYnDwQV1yKaX56rLLLpzNQPcxzBcE/aZjsZB1eLnc0smS6806fodL8Txfci7ko9KY+lsfQws6zsmo3noGmyJ/7+Ei6tFTgo+CUChqRqsZpUrt71q0cENhuW8aE/pHZep+oLtS+AU8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=I2g+btxjkatGXqzSh39yOOiY+BvoAgqTv4UdfiecJeViZxid2rZdC6YaIGL6LcRlobnapPXvmz3hxT4vkQzeVdI9sWCKm3oCAKZwY3uprAUV0K35Xkc7jhFjzwS/p/LVja0v2dGqAKVo5yUpCsYPgIh+AYkJoiKW/rruRFIwSDM=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hello,
-I have a project which must be finished by Thursday. The project is a movie, for a presentation, and my solution has been to make a program to render each frame in OpenGL. I can now render each frame individually, but now I face the challenge of turning these renders into a movie. (Movie capture programs are no good--free ones have drawbacks, and in any case the renders are slow to update (think 1 fps tops).).
-I decided to do it as a .gif animation, as I have several programs for making movies from a series of images.
-The obvious thing to do is to copy each frame into the programs, building my movie that way.
-However, there are exactly 1200 frames in the movie at a minimal quality--that's (150 frames/scene)*(8 scenes). I want this framerate to be higher. This pushes the frame count higher, naturally. The stupendous number of necessary frames is impractical to copy via ALT-PRINTSCREEN--(my current method).
-The ideal solution is to directly export the frames into a .gif animation.
-My second best option would be to save each render in a separate file. I could then drag and drop these renders chunks at a time into my program to make the animation.
-I face several challenges here. The most important is that I have no idea how to save screenshots from PyOpenGL. Last I heard, people sort-of had ideas about how to do it. pygame.image.save() does not work on OpenGL surfaces. Any concrete working examples here?
-Summary: From an PyOpenGL program, what is a working method of saving renders to either many files or directly to a .gif animation?
Thanks,
Ian