forked from 1d10t/test
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sergey S Yaglov
committed
Aug 1, 2017
1 parent
cf5277f
commit e944e37
Showing
7 changed files
with
127,413 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
Oops, something went wrong.