Skip to content
Alessandro Febretti edited this page Jun 7, 2013 · 1 revision

Python Examples

**Last revision:** ver. 3.4 - 4 March 2013

*

<wiki:toc max_depth="4" />

List of Python Examples

This documents lists all of the python examples included in the omegalib distribution. The examples can be found in the data/examples directory. They can be started using the orun command, like the following:

	orun -s examples/picking.py

In general, orun should be launched from its containing binary directory, to make sure all libraries and data paths are set up correctly. In linux, this is not as important, and examples should run regardless of the starting directory.

Example List

Screenshot| Script name| Techniques |---|---| | loadModel.py| simple model loading, point and spot lights. | billboard.py| camera facing nodes and interactors. | embeddedShader.py| Custom object shaders embedded in python script. Custom shader uniforms. | fxdemo.py| Various rendering effects. Custom multilevel menus. Picking. | headlight.py| Scene hierarchy. Camera-attached lights. Trackable objects. | lightFunction.py| CUstom shader light functions. Interactors. | multilight.py| Multple scene lights. Event Handling. Interactors. Scene hierarchy. Menus. Context Menus. | picking.py| Object ray picking. Ui-to-texture rendering. | spincube.py| Basic shape creation. Using the update function. | uitotexture.py| Render-to-texture ui. Using the update function.

Clone this wiki locally