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
The display is automatically instanciated with the according Papart call:
Papart.initDebug(Applet). Identical to default Processing rendering.
Papart.seeThrough(Applet, quality). See-through augmented reality, video feed + augmentations.
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();
The rendering is automatically done by default. You can disable it as show in this example.