Skip to content

Commit

Permalink
move examples into their own directories
Browse files Browse the repository at this point in the history
  • Loading branch information
cvan committed Sep 23, 2015
1 parent ba9bed5 commit e165b6f
Show file tree
Hide file tree
Showing 90 changed files with 124,636 additions and 124,672 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
249,152 changes: 124,576 additions & 124,576 deletions examples/models/MatTester.png → examples/_models/MatTester.png

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Animations</title>
<meta name="description" content="Demo of threejs using Web Components">
<script src="../build/vr-components.js"></script>
<script src="../../build/vr-components.js"></script>
<style id="vr-styles">
body {
background-color: black;
Expand Down
2 changes: 1 addition & 1 deletion examples/assets.html → examples/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Assets</title>
<meta name="description" content="Demo of threejs using Web Components">
<script src="../build/vr-components.js"></script>
<script src="../../build/vr-components.js"></script>
</head>
<body>
<vr-assets>
Expand Down
2 changes: 1 addition & 1 deletion examples/cube.html → examples/cube/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Cube</title>
<meta name="description" content="Cube vr-component">
<script src="../build/vr-components.js"></script>
<script src="../../build/vr-components.js"></script>
</head>
<body>
<vr-scene>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Curved Plane 1</title>
<meta name="description" content="Demo of threejs using Web Components">
<script src="../build/vr-components.js"></script>
<script src="../../build/vr-components.js"></script>
</head>
<body>
<vr-scene>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Curved Plane 2</title>
<meta name="description" content="Demo of threejs using Web Components">
<script src="../build/vr-components.js"></script>
<script src="../../build/vr-components.js"></script>
</head>
<body>
<vr-scene>
Expand Down
2 changes: 1 addition & 1 deletion examples/dynamic.html → examples/dynamic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Dynamic</title>
<meta name="description" content="Creating VR elements dynamically with JavaScript">
<script src="../build/vr-components.js"></script>
<script src="../../build/vr-components.js"></script>
</head>
<body>
<vr-scene>
Expand Down
2 changes: 1 addition & 1 deletion examples/fog.html → examples/fog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Fog</title>
<meta name="description" content="Demo of threejs using Web Components">
<script src="../build/vr-components.js"></script>
<script src="../../build/vr-components.js"></script>
</head>
<body>
<vr-assets>
Expand Down
2 changes: 1 addition & 1 deletion examples/group.html → examples/group/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Cube</title>
<meta name="description" content="Grouping Objects">
<script src="../build/vr-components.js"></script>
<script src="../../build/vr-components.js"></script>
</head>
<body>
<vr-scene>
Expand Down
55 changes: 21 additions & 34 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@
line-height: 1.5;
list-style: none;
}
.note, .note a, .date {
color: rgba(255,255,255,0.4);
font-family: 'Fira Mono', sans-serif;
}
.note {
border-bottom: 1px dashed rgba(255,255,255,0.25);
padding-bottom: 1rem;
}
a {
color: #036;
display: block;
Expand All @@ -43,37 +35,32 @@
a:hover {
color: #369;
}
table {
border-collapse: collapse;
width: 100%;
}
td:nth-child(2) { max-width: 5%; }
</style>
</head>
<body>
<h1>vr-components examples</h1>
<ul>
<li><a href="animations.html">animations.html</a></li>
<li><a href="assets.html">assets.html</a></li>
<li><a href="cube.html">cube.html</a></li>
<li><a href="curvedPlane1.html">curvedPlane1.html</a></li>
<li><a href="curvedPlane2.html">curvedPlane2.html</a></li>
<li><a href="dynamic.html">dynamic.html</a></li>
<li><a href="fog.html">fog.html</a></li>
<li><a href="group.html">group.html</a></li>
<li><a href="interactions.html">interactions.html</a></li>
<li><a href="loader.html">loader.html</a></li>
<li><a href="model.html">model.html</a></li>
<li><a href="objects.html">objects.html</a></li>
<li><a href="obstacle1.html">obstacle1.html</a></li>
<li><a href="performance.html">performance.html</a></li>
<li><a href="physicallyBasedMaterial.html">physicallyBasedMaterial.html</a></li>
<li><a href="positional-audio.html">positional-audio.html</a></li>
<li><a href="skybox.html">skybox.html</a></li>
<li><a href="skysphere.html">skysphere.html</a></li>
<li><a href="text.html">text.html</a></li>
<li><a href="video.html">video.html</a></li>
<li><a href="video360.html">video360.html</a></li>
<li><a href="animations/">animations</a></li>
<li><a href="assets/">assets</a></li>
<li><a href="cube/">cube</a></li>
<li><a href="curvedPlane1/">curvedPlane1</a></li>
<li><a href="curvedPlane2/">curvedPlane2</a></li>
<li><a href="dynamic/">dynamic</a></li>
<li><a href="fog/">fog</a></li>
<li><a href="group/">group</a></li>
<li><a href="interactions/">interactions</a></li>
<li><a href="loader/">loader</a></li>
<li><a href="model/">model</a></li>
<li><a href="objects/">objects</a></li>
<li><a href="obstacle1/">obstacle1</a></li>
<li><a href="performance/">performance</a></li>
<li><a href="physically-based-material/">physically-based-material</a></li>
<li><a href="positional-audio/">positional-audio</a></li>
<li><a href="skybox/">skybox</a></li>
<li><a href="skysphere/">skysphere</a></li>
<li><a href="text/">text</a></li>
<li><a href="video/">video</a></li>
<li><a href="video360/">video360</a></li>
</ul>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Interactions</title>
<meta name="description" content="Demo of threejs using Web Components">
<script src="../build/vr-components.js"></script>
<script src="../../build/vr-components.js"></script>
</head>
<body>
<vr-assets>
Expand All @@ -19,7 +19,7 @@
</vr-camera>
</vr-controls>
<vr-skysphere color="#000"></vr-skysphere>
<vr-cube position="0 2 -8" material="normal" width="4" height="4" depth="4" href="cube.html"></vr-cube>
<vr-cube position="0 2 -8" material="normal" width="4" height="4" depth="4" href="../cube/"></vr-cube>
<vr-cube position="6 2 0" material="normal" width="4" height="4" depth="4"></vr-cube>
<vr-cube position="-6 2 0" material="normal" width="4" height="4" depth="4"></vr-cube>
<vr-grid size="50"></vr-grid>
Expand Down
6 changes: 3 additions & 3 deletions examples/loader.html → examples/loader/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<meta charset="utf-8">
<title>Hyperlinks</title>
<meta name="description" content="Hyperlinks">
<link rel="stylesheet" type="text/css" href="../style/index.css">
<script src="../lib/VRLoader.js"></script>
<link rel="stylesheet" type="text/css" href="../../style/index.css">
<script src="../../lib/VRLoader.js"></script>
</head>
<body>
<button id="vr-button" class="vr-button">Enter VR</button>
<script>
var vrloader = new VRLoader('interactions.html');
var vrloader = new VRLoader('../interactions/');
</script>
</body>
</html>
8 changes: 4 additions & 4 deletions examples/model.html → examples/model/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
<meta charset="utf-8">
<title>Model</title>
<meta name="description" content="Demo of threejs using Web Components">
<script src="../build/vr-components.js"></script>
<script src="js/ImageLoader.js"></script>
<script src="js/ColladaLoader.js"></script>
<script src="../../build/vr-components.js"></script>
<script src="../_js/lib/vendor/ImageLoader.js"></script>
<script src="../_js/lib/vendor/ColladaLoader.js"></script>
</head>
<body>
<vr-scene>
<vr-controls position="0 1.8 15">
<vr-camera></vr-camera>
</vr-controls>
<vr-hemispherelight position="0 200 -100" skyColor="#ffffff" groundColor="#ef2d5e" intensity="2"></vr-hemispherelight>
<vr-model src="models/monster/monster.dae" position="-5 0.5 0" scale="0.005 0.005 0.005"></vr-model>
<vr-model src="../_models/monster/monster.dae" position="-5 0.5 0" scale="0.005 0.005 0.005"></vr-model>
<vr-grid size="50"></vr-grid>
</vr-scene>
</body>
Expand Down
4 changes: 2 additions & 2 deletions examples/objects.html → examples/objects/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Objects</title>
<meta name="description" content="Demo of threejs using Web Components">
<script src="../build/vr-components.js"></script>
<script src="../../build/vr-components.js"></script>
</head>
<body>
<vr-scene>
Expand All @@ -15,7 +15,7 @@
<vr-cube position="-15 5 0" rotation="20 45 0" width="4" height="4" depth="4"></vr-cube>
<vr-sphere position="-7 5 0" radius="2.5"></vr-sphere>
<vr-plane position="0 5 0" width="5" height="5"></vr-plane>
<vr-image position="7 5 0" width="6" height="6" src="images/firefox.jpg"></vr-image>
<vr-image position="7 5 0" width="6" height="6" src="../_images/firefox.jpg"></vr-image>
</vr-scene>
</body>
</html>
8 changes: 4 additions & 4 deletions examples/obstacle1.html → examples/obstacle1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta charset="utf-8">
<title>Obstacle Course 1</title>
<meta name="description" content="An example of animations, physics and events put together in a single scene">
<script src="../build/vr-components.js"></script>
<script src="js/ColladaLoader.js"></script>
<script src="../../build/vr-components.js"></script>
<script src="../_js/lib/vendor/ColladaLoader.js"></script>
</head>
<body>
<vr-assets>
Expand All @@ -27,7 +27,7 @@
<vr-cursor position="0 0 -1" radius="0.005"></vr-cursor>
</vr-camera>
<vr-hemispherelight position="100 200 100" skyColor="#b0b0ae" groundColor="#FFFFFF" intensity="1.2"></vr-hemispherelight>
<vr-skysphere src="images/sky-gray.jpg"></vr-skysphere>
<vr-skysphere src="../_images/sky-gray.jpg"></vr-skysphere>

<vr-object scale="0.2 0.2 0.2">

Expand Down Expand Up @@ -115,7 +115,7 @@
<!-- TODO -->
<!-- Model -->
<vr-object position="0 -2.5 0" animation="spin">
<vr-model src="models/city1/city.dae" position="-0.65 0.48 0.2" scale="1 1 1" rotation="0 -45 0"></vr-model>
<vr-model src="../_models/city1/city.dae" position="-0.65 0.48 0.2" scale="1 1 1" rotation="0 -45 0"></vr-model>
<vr-cylinder material="floor" radius="2.5" height="1" radiusSegments="72" position="0 0 0"></vr-cylinder>
</vr-object>
<!-- Floating information panel -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Performance</title>
<meta name="Testing performance of high numbers of polys" content="Dynamic Scene">
<script src="../build/vr-components.js"></script>
<script src="../../build/vr-components.js"></script>
<script src="../lib/vendor/stats.min.js"></script>
</head>
<body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta charset="utf-8">
<title>Physically Based Rendering</title>
<meta name="description" content="Cube">
<script src="../build/vr-components.js"></script>
<script src="js/lib/vendor/OBJLoader.js"></script>
<script src="../../build/vr-components.js"></script>
<script src="../_js/lib/vendor/OBJLoader.js"></script>
</head>
<body>
<vr-assets>
Expand All @@ -15,9 +15,9 @@
<vr-controls position="0 12 50">
<vr-camera></vr-camera>
</vr-controls>
<vr-obj-loader id="cube" position="0 0 0" rotation="0 0 0" src="models/MatTester.png" material="pbr"></vr-obj-loader>
<vr-obj-loader id="cube" position="0 0 0" rotation="0 0 0" src="../_models/MatTester.png" material="pbr"></vr-obj-loader>
</vr-scene>
<script src="js/lib/vendor/dat.gui.js"></script>
<script src="../_js/lib/vendor/dat.gui.js"></script>
<script>
var material = document.querySelector('#pbr');
var gui = new dat.GUI();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Positional audio</title>
<meta name="description" content="Demo of threejs using Web Components">
<script src="../build/vr-components.js"></script>
<script src="../../build/vr-components.js"></script>
</head>
<body>
<vr-scene>
Expand Down
4 changes: 2 additions & 2 deletions examples/skybox.html → examples/skybox/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<meta charset="utf-8">
<title>Skybox</title>
<meta name="description" content="Demo of threejs using Web Components">
<script src="../build/vr-components.js"></script>
<script src="../../build/vr-components.js"></script>
</head>
<body>
<vr-scene>
<vr-controls position="0 1.8 0">
<vr-camera></vr-camera>
</vr-controls>
<vr-skybox src="images/abandoned/"></vr-skybox>
<vr-skybox src="../_images/abandoned/"></vr-skybox>
</vr-scene>
</body>
</html>
4 changes: 2 additions & 2 deletions examples/skysphere.html → examples/skysphere/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<meta charset="utf-8">
<title>Sky Sphere</title>
<meta name="description" content="Demo of threejs using Web Components">
<script src="../build/vr-components.js"></script>
<script src="../../build/vr-components.js"></script>
</head>
<body>
<vr-scene>
<vr-controls position="0 1.8 40">
<vr-camera></vr-camera>
</vr-controls>
<vr-sphere radius="5"></vr-sphere>
<vr-skysphere src="images/city.jpg"></vr-skysphere>
<vr-skysphere src="../_images/city.jpg"></vr-skysphere>
</vr-scene>
</body>
</html>
2 changes: 1 addition & 1 deletion examples/text.html → examples/text/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Text</title>
<meta name="description" content="vr-text component">
<script src="../build/vr-components.js"></script>
<script src="../../build/vr-components.js"></script>
</head>
<body>
<vr-scene>
Expand Down
2 changes: 1 addition & 1 deletion examples/video.html → examples/video/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Video</title>
<meta name="description" content="Demo of threejs using Web Components">
<script src="../build/vr-components.js"></script>
<script src="../../build/vr-components.js"></script>
</head>
<body>
<vr-scene>
Expand Down
2 changes: 1 addition & 1 deletion examples/video360.html → examples/video360/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Video 360</title>
<meta name="description" content="Demo of threejs using Web Components">
<script src="../build/vr-components.js"></script>
<script src="../../build/vr-components.js"></script>
</head>
<body>
<vr-scene>
Expand Down
27 changes: 2 additions & 25 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>My WebVR Scene</title>
<script src="build/vr-components.js"></script>
<meta http-equiv="refresh" content="0; url=examples/">
</head>
<body>
<vr-assets>
<vr-material id="highlight" type="MeshBasicMaterial" color="yellow"></vr-material>
<vr-material id="normal" type="MeshNormalMaterial" color="cyan"></vr-material>
<vr-animation id="slide" attribute="position" to="0 1 0" duration="2000"></vr-animation>
<vr-animation id="spin" attribute="rotation" to="0 360 0" duration="5000" delay="2000"></vr-animation>
<vr-animation id="grow" attribute="scale" to="2 2 2" duration="3000" delay="7000"></vr-animation>
</vr-assets>
<vr-scene>
<vr-controls position="0 1.8 20">
<vr-camera></vr-camera>
</vr-controls>
<vr-cube animation="slide spin grow" position="0 2 -8" material="normal" width="4" height="4" depth="4"></vr-cube>
<vr-cube position="6 2 0" material="normal" width="4" height="4" depth="4"></vr-cube>
<vr-cube position="-6 2 0" material="normal" width="4" height="4" depth="4"></vr-cube>
<vr-object class="cubes-group" position="-5 0 10">
<vr-cube id="cube" width="5" height="2" depth="2" rotation="45 45 0" position="-10 0 0"></vr-cube>
<vr-cube id="cube" width="5" height="2" depth="2" rotation="45 45 0" position="0 0 0"></vr-cube>
<vr-cube id="cube" width="5" height="2" depth="2" rotation="45 45 0" position="10 0 0"></vr-cube>
</vr-object>
<vr-grid size="50"></vr-grid>
</vr-scene>
</body>
<body></body>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"ignore": [
"build/**",
"dist/**",
"examples/js/**"
"examples/_js/**"
]
},
"keywords": [
Expand Down

0 comments on commit e165b6f

Please sign in to comment.