Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey S Yaglov committed Aug 1, 2017
1 parent cf5277f commit e944e37
Show file tree
Hide file tree
Showing 7 changed files with 127,413 additions and 0 deletions.
30 changes: 30 additions & 0 deletions a-frame collada model.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
https://aframe.io/docs/0.6.0/components/collada-model.html


The collada-model component loads a 3D model using a COLLADA (.DAE) file.

Example

We can load a COLLADA model by pointing to an asset that specifies the src to a COLLADA file.

<a-scene>
<a-assets>
<a-asset-item id="tree" src="/path/to/tree.dae"></a-asset-item>
</a-assets>
<a-entity collada-model="#tree"></a-entity>
</a-scene>
Values

Type Description
selector Selector to an <a-asset-item>
string url()-enclosed path to a COLLADA file
Events

Event Name Description
model-loaded COLLADA model has been loaded into the scene.
Loading Inline

We can also load a COLLADA model by specifying the path directly within url(). Note this is less performant than going through the asset management system.

<a-entity collada-model="url(/path/to/tree.dae)"></a-entity>

Loading

0 comments on commit e944e37

Please sign in to comment.