Hi Robert,

attached pls find a cleaned up version of the game of life example.

The example illustrates, using Conway's game of life [1], how to do flip-flop (aka ping-pong) rendering using two textures and FBOs. It uses two branches, each with a camera, one of which is selected during a rendering pass [2].

[1] http://en.wikipedia.org/wiki/Conway's_Game_of_Life
[2] This is not the only (or fastest) way to do it, but an easy way in OSG.

Run with e.g.
osggameoflife --startim Images/land_shallow_topo_2048.jpg

rgds
jp

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

Attachment: osggameoflife.tgz
Description: application/compressed-tar

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to