Togra

Togra Screen Shots

simple.py

This tiny application simply moves three gray objects around the screen. Each new position of the lead object is chosen randomly, and the trailing two objects follow.

Lines of source:40  
Screen shots: 1 2 3
View code: simple.py

togra.py

Your friendly Togra icon, animated! (created by Jan Schmidt).

Lines of source:65  
Screen shots: 1    
View code: togra.py

spheres.py

This application demonstrates bezier-interpolation of paths, re-use of transformed paths, and re-use of objects, and is also a good benchmark for raw polygons handled by the framework. 10 spheres float around the screen.

User keypresses are also handled - 'q' will quit and ' ' will pause.

Lines of source:70  
Screen shots: 1 2 3
View code: spheres.py

spin.py

Funky intertwining blue and red spheres (created by Jan Schmidt).

Lines of source:67  
Screen shots: 1 2 3
View code: spin.py

snake.py

This application provides a (very) simple game of snake. Control is through 'a', 's', 'w' and 'd'. The game can be paused using the space bar, and quit with 'q'.

As a test application for Togra, snake.py provides colour testing, interpolated path testing (all of the components of the snake are attached to the same path), and also sets the stage for future, more interesting games.

Lines of source:170
Screen shots: 1 2 3
View code: snake.py

sphere_texture.py

This application demonstrates Texture handling in togra. Space pauses and 'q' quits.

Lines of source:55
Screen shots: 1 2 3
View code: sphere_texture.py

NewGraphMixinTest6.py

Example of using the ODE physics modelling library to implement a spring loaded network of nodes.

Lines of source:273
Screen shots: 1 2
View code: NewGraphMixinTest6.py

texture-gst.py

Using the GStreamer media framework to load a movie onto a texture for playback.

Lines of source:108
Screen shots: 1 2
View code: texture-gst.py

texture-gst-cube.py

Another example using GStreamer to load 4 movies onto the side of a cube, with audio fading in and out as the cube rotates. This example was put together for Linux.conf.au 2005 (hence the logo)

Lines of source:737
Screen shots: 1 2
View code: texture-gst-cube.py and cube_gst_new.py