ar.Rmd
As Augmented Reality with arframer.
library(g3r)
library(aframer)
library(arframer)
browse_arframe(
a_scene(
a_dependency(),
arframer_dependency(),
g3r_aframer_dependency(),
arjs = "sourceType: webcam; detectionMode: mono_and_matrix; matrixCodeType: 3x3; debugUIEnabled: false;",
a_primitive(
"marker",
list(
a_map(),
type = "barcode",
value = 1
)
),
a_entity(camera = NA)
)
)
This will trigger on artoolkit5 barcode 1 (below), open de demo from your mobile and point your camera at it (if you're on iPhone make sure you use Safari).
Augmented Reality Demo