Example 5: Trick

This examples shows the integration of the Interaction Trick into the framework.

The system can maintain multiple views connected to one ray server, so you can easily set up multiple view panels.

In this case there are no images or meshes to be prepared, just the scene.rib describing the scene.

Interacting

The interact.rib contains just one line which instructs the system to start a ray server connected to the scene.

Geometry "ray_server" "filename" ["scene.rib"]

The process that happens is not fully described here, but essentially the system processes scene.rib looking for referenced shaders, collects the interaction variables from those shaders, inserts the geometry in front of the camera, starts the renderer, connects to it, and starts collecting buckets.

Making

As always typing make run in the example directory will process the Makefile to start the application.