On Tue, Jan 20, 2015 at 8:15 PM, Steven Hansen <[email protected]> wrote:

> I know this is possible in raw OpenGL via FrameBufferObjects
> <http://www.songho.ca/opengl/gl_fbo.html>, but I can't quite figure out
> how to do this in python cocos2d. I noticed the docs mention a framegrabber
> module <http://python.cocos2d.org/doc/api/cocos.framegrabber.html> as
> well as a gl_framebuffer_object module
> <http://python.cocos2d.org/doc/api/cocos.gl_framebuffer_object.html>, but
> I'm too much of a novice to figure out if/how they can do this without
> further documentation. To be clear, my goal is to render to a variable with
> or without the actual screen (my purpose is to save video replays of my
> A.I. playing my game, possibly without a human player). Should I be getting
> the frame out of my scrollable layer somehow and then storing it in a
> gl_framebuffer_object?
>


Without human players director.set_recorder(---) probably is the way to go;
see test\test_recorder.py in your cocos checkout / download; it saves
snapshots to test\tmp , then you can use some utility to assemble the
snapshots into a video.

With human players my first try would be an utility for video capture; in
Windows possibly fraps.

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cocos-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to