3D in Processing Worksheet

Basic Exercise

Export your blender model in obj format.

If the export script is not installed on your computer you need to download the following file:

http://jmsoler.free.fr/util/blenderfile/py/obj_io_modif232b.py

go to the blender text editor view (in the window types icon in the corner of your processing windows).

open the file you just downloaded.

Do Text->run python script

install the Saito obj loader library:

http://code.google.com/p/saitoobjloader/

Use the example code from the saito web page to load in your model form blender.

Install the OCD camera library:

http://www.gdsstudios.com/processing/libraries/ocd/

Look at the examples given in the library. Use those example to alter your code so you have an object focused camera which rotates around your object based on the mouse and zooms in and out based on the keyboard.

Extensions

Use OCD to create a first person shooter type camera.

Create a more complex scene in blender an import it into Processing with an appropriate camera system.

PDF Creator    Send article as PDF to