A-Frame is used in this example in order to render a DAE 3D model. The basic import of the file allows to navigate the model using W, A, S and D commands.
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>A-Frame DAE</title> | |
| <meta name="description" content=""> | |
| <script src="https://aframe.io/releases/latest/aframe.min.js"></script> | |
| </head> | |
| <body> | |
| <a-scene> | |
| <a-camera id="camera" position="0 1 0"> | |
| </a-camera> | |
| <!-- Model --> | |
| <a-entity id="model"> | |
| <a-model src="http://wafi.iit.cnr.it/smartarea/data/cnr.dae"></a-model> | |
| </a-entity> | |
| </a-scene> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment