On Wed, Apr 16, 2008 at 10:37 AM, akhen <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> Is there a way or project to make Pyglet render to files (images,
> video or stream) rather than render on screen ?
>
> Does the way the API is designed allows this ?
>
No, but that sounds like it would make for a fun
(many-months-of-time-consuming) project - a yafray backend for pyglet.
:)
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. There are several screen
capture programs (at least on Linux) that can be invoked from the
command line (hence, as a subprocess) and allow you to omit window
decorations, etc. Then just process the resulting images with
mencoder to covert to video.
--
\\\\\/\"/\\\\\\\\\\\
\\\\/ // //\/\\\\\\\
\\\/ \\// /\ \/\\\\
\\/ /\/ / /\/ /\ \\\
\/ / /\/ /\ /\\\ \\
/ /\\\ /\\\ \\\\\/\
\/\\\\\/\\\\\/\\\\\\
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
-~----------~----~----~----~------~----~------~--~---