Sample Processing code to demonstrate how 3d authoring might work.
There are two concepts:
Sources
– things that generate color valuesFixtures
– things that sum color values for display
The basic idea is that each Fixture
sums the color inputs from every Source
. A Source
is free to change its location and/or color every frame. Several examples are provided.
This code relies on the PeasyCam library.
Several shortcuts are defined:
s
hidesSource
objectsf
hidesFixture
objectsr
paints eachSource
as a sphere with the range as the radius (which obscures anyFixture
it interacts with)