Skip to content

Commit

Permalink
Move and optimize mesh example
Browse files Browse the repository at this point in the history
  • Loading branch information
jure committed Dec 16, 2020
1 parent e279501 commit c279d84
Show file tree
Hide file tree
Showing 32 changed files with 29 additions and 47 deletions.
67 changes: 28 additions & 39 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,58 +12,47 @@
font-size: 20px;
padding: 10px 20px;
}
h1 {
/* font-weight: 300; */
}
a {
color: #fdf6e3;
display: block;
padding: 15px 0;
}
p {
max-width: 80em;
}
img {
max-width: 320px;
}
ul {
display: flex;
list-style: none;
flex-wrap: wrap;
padding: 5px 0 0;
}
ul li {
margin-right: 30px;
padding: 5px 0 30px;
}
ul a {
background-size: cover;
display: block;
padding: 0;
height: 320px;
width: 320px;
}
ul h3,
ul p {
max-width: 320px;
body {
max-width: 50em;
margin: 0 auto;
text-align: center;
}
</style>
</head>
<body>
<h1>aframe-blink-controls component</h1>
<p>A blink (teleport) component for <a href="https://aframe.io/docs/1.1.0/introduction/">A-Frame</a>, based on
<a href="https://github.com/fernandojsg/aframe-teleport-controls">@fernandojsg's aframe-teleport-controls</a> but
with added support for rotation & <a href="https://github.com/jure/aframe-blink-controls#aframe-blink-controls">additional fixes</a>.</p>
<p>Warning: This is a WIP teleport with rotation component. Currently only tested with the Oculus Quest 1.</p>
<ul>
<li>
<a href="basic/" style="background-image: url(shots/basic.jpg)"></a>
<h3>Basic</h3>
<p>This is a basic example.</p>
</li>
</ul>

<ul>
<li>
<a href="simple/" style="background-image: url(shots/mesh.jpg)"></a>
<h3>Mesh</h3>
<p>This is an example with a mesh for collision.</p>
</li>
</ul>
<section>
<h3>Usage</h3>
Detailed instructions can be found in the <a href="https://github.com/jure/aframe-blink-controls#aframe-blink-controls">README</a>.
</section>
<section>
<h3>Basic example</h3>
<a href="basic/">
<img src="shots/basic.jpg" />
<p>This is a basic example.</p>
</a>
</section>
<section>
<h3>Mesh collision example</h3>
<a href="mesh/">
<img src="shots/mesh.jpg" />
<p>This is an example with a mesh for collision.</p>
</a>
</section>

<!-- GitHub Corner. -->
<a href="https://github.com/jure/aframe-blink-controls" class="github-corner">
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 1 addition & 8 deletions docs/simple/index.html → docs/mesh/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@
<a-asset-item id="Circle" src="./assets/Circle.gltf"></a-asset-item>
<a-asset-item id="Circle001" src="./assets/Circle.001.gltf"></a-asset-item>
<a-asset-item id="Cube" src="./assets/Cube.gltf"></a-asset-item>
<img id="sky" src="./resources/sky.jpg">
<img id="icon-play" src="./resources/play.png">
<img id="icon-pause" src="./resources/pause.png">
<img id="icon-play-skip-back" src="./resources/play-skip-back.png">
<img id="icon-mute" src="./resources/mute.png">
<img id="icon-volume-low" src="./resources/volume-low.png">
<img id="icon-volume-high" src="./resources/volume-high.png">
</a-assets>

<!-- Entities -->
Expand All @@ -44,7 +37,7 @@
>
<a-entity id="camera"
camera="near: 0.001; far: 1000;"
position="0 1.7 0"
position="0 1.7 0"
look-controls="pointerLockEnabled: true">
<a-entity id="cursor" cursor="fuse: false;" animation__click="property: scale; startEvents: click; easing: easeInCubic; dur: 50; from: 0.1 0.1 0.1; to: 1 1 1"
position="0 0 -0.1"
Expand Down
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.
Binary file removed docs/simple/env/negx.jpg
Binary file not shown.
Binary file removed docs/simple/env/negy.jpg
Binary file not shown.
Binary file removed docs/simple/env/negz.jpg
Binary file not shown.
Binary file removed docs/simple/env/posx.jpg
Binary file not shown.
Binary file removed docs/simple/env/posy.jpg
Binary file not shown.
Binary file removed docs/simple/env/posz.jpg
Binary file not shown.
Binary file removed docs/simple/media/image1.png
Binary file not shown.
Binary file removed docs/simple/media/image2.png
Binary file not shown.

0 comments on commit c279d84

Please sign in to comment.