Description Usage Arguments Details Value
This function returns an entity that will render a 3D model expressed in threejs JSON format. See the format specification here: https://github.com/mrdoob/three.js/wiki/JSON-Model-format-3. The mandatory 'src' argument should be an object returned by 'a_asset()'.
1 2 3 4 5 6 7 | a_json_model(
src,
.version_num = "4.1.2",
mesh_smooth = FALSE,
.js_sources = list(),
...
)
|
src |
an a_asset describing a JSON file. |
.version_num |
A-Frame extras version number. |
mesh_smooth |
if true, compute normals in browser to give the model a smoothed appearance. |
.js_sources |
defaults to version 4.1.2 of the JSON model loader, supply another version using a list here. e.g. 'js_sources' = list("https://cdn.rawgit.com/donmccurdy/aframe-extras/<path_to_js_file>") |
... |
other components to be added to the JSON model. Passed to a_entity. |
The entity imports the an extenal js source for loading JSON models written by Don McCurdy.
An entity object describing a JSON model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.