Skip to content

Instantly share code, notes, and snippets.

@JohnCoene
Last active January 18, 2020 14:28
Show Gist options
  • Select an option

  • Save JohnCoene/12347ea1faee2feb1d1efc9a1fc5c0ff to your computer and use it in GitHub Desktop.

Select an option

Save JohnCoene/12347ea1faee2feb1d1efc9a1fc5c0ff to your computer and use it in GitHub Desktop.
aframer models
library(aframer)
library(aextras)
embed_aframe(
a_scene(
a_dependency(),
aextras_dependency(),
a_assets(
a_primitive(
"asset-item",
list(
id = "model",
src = "model.gltf"
)
)
),
a_sky(color = "#ECECEC"),
a_entity(
`gltf-model` = "src: #model",
rotation = "-90 0 0"
)
)
)
library(aframer)
library(aextras)
embed_aframe(
a_scene(
a_dependency(),
aextras_dependency(),
a_assets(
a_primitive(
"asset-item",
list(
id = "model",
src = "model.ply"
)
)
),
a_sky(color = "#ECECEC"),
a_entity(
`ply-model` = "src: #model",
rotation = "-90 0 0"
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment