diff --git a/getting-started.html b/getting-started.html index 0545cca..025cf27 100644 --- a/getting-started.html +++ b/getting-started.html @@ -236,6 +236,30 @@ + +
TODO
+shapemapper.pdex
file for the most recent release.Installing via the Library Manager is not yet currently available.
TODO
+In order to use Shape Mapper, you must have a physical object that you want to projection map, and you must model that object virtually (whether through code or through 3D modeling software like Blender).
+To get started quickly, we can use a box-shaped object. In this example, we'll be using a cardboard box, but a book or boxy piece of furniture could also work.
+[picture of box]
+java
+ import spacefiller.shapemapper.ShapeMapper;
+ import processing.core.PShape;
java
+ ShapeMapper mapper;
+ PShape shape;
fullScreen()
. It is required to use the P3D
render mode; Shape Mapper will not work without it.```java + void setup() { + fullScreen(P3D);
+ // The size of our box is proportional to the physical measurements we made
+ shape = createShape(BOX, 100, 200, 300);
+
+ // Initialize the Shape Mapper library with our box
+ mapper = new ShapeMapper(this, shape);
+
+} + ```
+mapper.beginMapping()
and mapper.endMapping()
lines.```java + void draw() { + background(0);
+ mapper.beginMapping();
+
+ // Disable the default shape style so that we can choose fill and stroke
+ // manually in the code
+ shape.disableStyle();
+
+ // Draw the shape
+ fill(0);
+ stroke(255);
+ shape(shape);
+
+ mapper.endMapping();
+
+} + ```
```java + import spacefiller.shapemapper.ShapeMapper; + import processing.core.PShape;
+ShapeMapper mapper; + PShape shape;
+void setup() { + fullScreen(P3D); + shape = createShape(BOX, 100, 200, 300); + mapper = new ShapeMapper(this, shape); + }
+void draw() { + background(0);
+ mapper.beginMapping();
+
+ // Disable the default shape style so that we can choose fill and stroke
+ // manually in the code
+ shape.disableStyle();
+
+ // Draw the shape
+ fill(0);
+ stroke(255);
+ shape(shape);
+
+ mapper.endMapping();
+
+} + ```
TODO