-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.Rmd
68 lines (56 loc) · 1.33 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# arframer
```{r, eval=TRUE, include=FALSE}
library(htmltools)
```
```{r, echo=FALSE}
div(
class = "row",
div(
class = "col-md-3",
img(src = "logo.png")
),
div(
class = "col-md-9",
p(
"Augmented Reality in R."
)
)
)
```
## Installation
```{r, eval = FALSE}
# install.packages("devtools")
devtools::install_github("JohnCoene/arframer")
```
Or you can install all [packages](articles/packages.html) and [components](articles/components.html) at once with `vrr`, **V**irtual **R**eality in **R** (with another **R**):
```{r, eval = FALSE}
# install.packages("devtools")
devtools::install_github("JohnCoene/vrrr")
```
## Basic Example
Point your camera to a [hiro marker](https://github.com/jeromeetienne/AR.js/blob/master/data/images/HIRO.jpg).
```{r eval = FALSE}
library(aframer)
library(arframer)
browse_aframe(
ar_scene(
a_box(
position = "0 0.5 0",
material = "opacity: 0.5;"
),
ar_marker_camera(
preset = "hiro"
)
)
)
```
Hit the button below to view the output of the above, you'll have to point your camera to [hiro marker](https://github.com/jeromeetienne/AR.js/blob/master/data/images/HIRO.jpg).
```{r, echo=FALSE}
tags$a(
tags$i(class = "fa fa-lg fa-eye"),
" Demo",
href = "example.html",
target = "_blank",
class = "btn btn-lg btn-primary btn-blue"
)
```