That is exactly what I do. I use:
if (MAKE_MOVIE != 0):
f = 'movieStills/' + baseFileName + "%.5d"%currentLine +
'.png'
print 'Saving image file ', f
image.get_buffer_manager().get_color_buffer().save(f)
After that I use another script to turn my stills into a movie (called
from my movieStills directory):
mencoder "mf://*.png" -mf fps=10 -o test.avi -ovc lavc -lavcopts
vcodec=msmpeg4v2:vbitrate=800
On Apr 16, 11:31 am, "Drew Smathers" <[EMAIL PROTECTED]> wrote:
> On Wed, Apr 16, 2008 at 11:59 AM, riq <[EMAIL PROTECTED]> wrote:
>
> > > Anyhow, there are some scripty (not cross-platform) ways to do this
> > > now, of course. I'm pretty sure pyglet doesn't provide functionality
> > > for doing screen dumps (as grepping tells me), so you could just
> > > invoke an external screen capture program with a filename like
> > > ('screen-%3.3d' % ct) after each clock tick.
>
> > you can also call:
>
> > pyglet.image.get_buffer_manager().get_color_buffer().save('screenshot.png' )
>
> cool trick ... thanks :)
>
> --
> \\\\\/\"/\\\\\\\\\\\
> \\\\/ // //\/\\\\\\\
> \\\/ \\// /\ \/\\\\
> \\/ /\/ / /\/ /\ \\\
> \/ / /\/ /\ /\\\ \\
> / /\\\ /\\\ \\\\\/\
> \/\\\\\/\\\\\/\\\\\\
> d.p.s
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---