Setup and Run Demos
Plug the Fruit Jam into your display with the HDMI cable. Power the Fruit Jam from a 5V 1A USB C power supply, then turn it on. You can even power it from the USB port on some monitors, including the one linked in this guide.
The controls are driven by the three push buttons on the Fruit Jam, BUTTON1, BUTTON2, & BUTTON3. The board boots into a menu of the demos: button 3 moves up, button 2 down, button 1 starts the highlighted demo.
Each demo shows its buttons in the border around its image. When you're done with a demo, press the Fruit Jam reset button to restart the board and return to the menu.
Menu Select
You can use the Fruit Jam Button 3 and Button 2 to navigate the four demos, the current selection is highlighted.
Press the Fruit Jam Button 1 to start the selected demo.
Press the Fruit Jam reset button when you are done and you'll be returned to the main menu.
VoxelSpace
VoxelSpace: a Novalogic Comanche-style voxel terrain fly-over on height-map generated terrain.
- Button 1: color map -> height map -> shaded height map
- Button 2: terrain height: full -> 1/2 -> 1/4 -> 1/8 -> flat
- Button 3: fog on / off
s-macke/VoxelSpace by Sebastian Macke: the voxel terrain algorithm of NovaLogic's Comanche (1992), explained.
Note, the learn guide author worked with this voxel engine on the Delta Force games, which were totally rad.
Cornell Box Path Tracer
Cornell box: a progressive path tracer, 240x240, one sample per pixel per pass, refining on screen from noise to a clean image in a minute or two.
- Button 1: side walls white / back to red and green (starts over)
- Button 2: start over from zero samples
- Button 3: the original's two boxes / back to the two spheres (starts over)
The Cornell box, from Cornell University's Program of Computer Graphics: the scene and reference image the path tracer was compared against. Goral, Torrance, Greenberg and Battaile, "Modeling the interaction of light between diffuse surfaces" (SIGGRAPH 1984).
Jim Kajiya, "The rendering equation" (SIGGRAPH 1986): path tracing.
Metaballs
Metaballs: six 2D metaballs gliding on Lissajous paths, shaded as glossy 3D blobs that merge, over a glowing contoured field.
- Button 1: next hue (six); double-click: glow off / on
- Button 2: one ball fewer (down to 1)
- Button 3: one ball more (up to 10)
Jim Blinn, "A generalization of algebraic surface drawing" (ACM Transactions on Graphics, 1982): the blobby objects behind metaballs.
3D Models
3D models: the Utah teapot and the Stanford bunny, spinning at 30 fps. Quad patch, triangle mesh, Lambert, Phong, and Blinn shading, plus a bonus UV mapped texture demo.
- Button 1: teapot / bunny
- Button 2: quad wireframe (white, the start) -> triangle wireframe (green) -> Lambert (flat) -> Phong -> Blinn -> texture (teapot only)
- Button 3: pause / resume the spin
The Utah teapot is Martin Newell's 1975 Bezier patch data. The bunny is from the Stanford 3D Scanning Repository.
tools/make_meshes.py downloads both and rebuilds CG_Turbo_Demos_Code/teapot.bin and CG_Turbo_Demos_Code/bunny.bin.
The texture is the UV test grid from the University of Utah's teapot page. tools/make_teapot_texture.py grid.png rebuilds CG_Turbo_Demos_Code/teapot_texture.bin from it.
Page last edited October 29, 2026