Display model in PapARt


Display model in PapARt

Usually in PapARt application the draw() method is empty. This is quite weird.

The draw() is actually done by a Display object, which is created with the Papart helper object. This object is linked to a “projective device”, i.e. a camera or a projector, and renders one or many PaperScreens.

The display is automatically instanciated with the according Papart call:

  • BaseDisplay: Papart.initDebug(Applet). Identical to default Processing rendering.
  • ARDisplay: Papart.seeThrough(Applet, quality). See-through augmented reality, video feed + augmentations.
  • ProjectorDisplay: Papart.projection(Applet, quality), Papart.projectionOnly (without a camera). Spatial augmented reality (3D mapping).

The base display enables easy rendering / debugging without any camera instanciation. This is usefull for coding/debugging without any hardware.

Accessing the display

You can get the Display object from the Papart helper object.

Papart papart = Papart.getPapart();
// Pick one. You can also cast  
BaseDisplay base = papart.getDisplay();
ARDisplay arDisplay = papart.getARDisplay();
ProjectorDisplay projectorDisplay = papart.getProjectorDisplay();

Manual rendering.

The rendering is automatically done by default. You can disable it as show in this example.

Quick start with a webcam