-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* verticalAlign puts the origin at the bottom, middle (default), or top of the Altspace enclosure. * Added example than sets verticalAlign='bottom' and also shows how to load OBJ and COLLADA models.
- Loading branch information
Showing
16 changed files
with
926 additions
and
8 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,38 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Aframe Altspace Component - Test Vertical Align</title> | ||
<meta name="description" content="Models — A-Frame"> | ||
<script src="../build.js"></script> | ||
</head> | ||
<body> | ||
<!-- This scene based on Aframe examples/primitives-models/ --> | ||
<a-scene altspace="verticalAlign: bottom"> | ||
<a-assets> | ||
<a-asset-item id="tree1" src="models/tree1/tree1.dae"></a-asset-item> | ||
<a-asset-item id="tree2" src="models/tree2/tree2.dae"></a-asset-item> | ||
<a-asset-item id="crate-mtl" src="models/crate/crate.mtl"></a-asset-item> | ||
<a-asset-item id="crate-obj" src="models/crate/crate.obj"></a-asset-item> | ||
<img id="sky" src="peach-gradient.jpg"> | ||
</a-assets> | ||
|
||
<a-obj-model src="#crate-obj" mtl="#crate-mtl" position="0 1 0"></a-obj-model> | ||
|
||
<a-collada-model src="#tree1" position="2.5 0 -2.5" rotation="0 30 0" | ||
scale="1.4 1.4 1.4"></a-collada-model> | ||
<a-collada-model src="#tree2" position="2.5 0 2.5" rotation="0 60 0" | ||
scale="1.4 1.4 1.4"></a-collada-model> | ||
|
||
<a-collada-model src="#tree2" position="-2.5 0 -2.5" rotation="0 10 0" | ||
scale="1.4 1.4 1.4"></a-collada-model> | ||
<a-collada-model src="#tree1" position="-2.5 0 2.5" rotation="0 25 0" | ||
scale="1.4 1.4 1.4"></a-collada-model> | ||
|
||
<a-sky src="#sky"></a-sky> | ||
|
||
<a-light type="ambient" color="#ccc"></a-light> | ||
<a-light color="#ddf" distance="100" intensity="0.4" type="point"></a-light> | ||
</a-scene> | ||
</body> | ||
</html> |
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,5 @@ | ||
# Crate | ||
|
||
Made by Tyro Smith, free for personal and commercial use. | ||
|
||
Source: http://tf3dm.com/3d-model/crate-86737.html |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,12 @@ | ||
# Blender MTL File: 'crate.blend' | ||
# Material Count: 1 | ||
|
||
newmtl Material.001 | ||
Ns 96.078431 | ||
Ka 0.000000 0.000000 0.000000 | ||
Kd 0.640000 0.640000 0.640000 | ||
Ks 0.500000 0.500000 0.500000 | ||
Ni 1.000000 | ||
d 1.000000 | ||
illum 2 | ||
map_Kd crate.jpg |
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,24 @@ | ||
# Blender v2.67 (sub 1) OBJ File: 'crate.blend' | ||
# www.blender.org | ||
mtllib crate.mtl | ||
o Cube_Cube.001 | ||
v -1.000000 -1.000000 1.000000 | ||
v -1.000000 -1.000000 -1.000000 | ||
v 1.000000 -1.000000 -1.000000 | ||
v 1.000000 -1.000000 1.000000 | ||
v -1.000000 1.000000 1.000000 | ||
v -1.000000 1.000000 -1.000000 | ||
v 1.000000 1.000000 -1.000000 | ||
v 1.000000 1.000000 1.000000 | ||
vt 0.000000 0.000000 | ||
vt 1.000000 0.000000 | ||
vt 1.000000 1.000000 | ||
vt 0.000000 1.000000 | ||
usemtl Material.001 | ||
s off | ||
f 5/1 6/2 2/3 1/4 | ||
f 6/1 7/2 3/3 2/4 | ||
f 7/1 8/2 4/3 3/4 | ||
f 8/1 5/2 1/3 4/4 | ||
f 1/1 2/2 3/3 4/4 | ||
f 8/1 7/2 6/3 5/4 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.