Session 8 (presentation)

NAIK - 'STELLATIONS' PROJECTION MAPPING TEST

How the physical object was coded in Processing

This Processing sketch uses the PeasyCam library to create a 3D camera, and the nervoussystem.obj library to export a 3D object. The setup() function sets the size of the window, initializes the PeasyCam object, and sets the background color, stroke color and fill color. The draw() function clears the background and draws the object. The keyPressed() function checks for key inputs and performs specific actions based on which key is pressed: 'r' for starting to record the obj file and 'n' for creating a new instance of the Shaper class.

This sketch requires:

  • The PeasyCam library for camera control

  • The OBJExport library from Nervous System

  • A custom class (see next code listing) that defines the geometry

Controls:

  • Mouse: Use PeasyCam's default controls for rotating/zooming

  • r' key: Export current geometry as OBJ file

  • 'n' key: Generate new geometry

Last updated