Skip to content

Commit

Permalink
Addind help text to examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
benvanik committed Apr 30, 2013
1 parent e67ba00 commit 75bafb9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ calibration tool and copy the value out.

### Reducing Latency

#### Don't Overlap the WebGL Canvas

If you place any other DOM element on top of the Canvas rendering your content
you may cause extra browser compositing that can slow down your rendering.
Since you have to draw your entire HUD/etc distored anyway, avoid placing
any UI on top of the Canvas or adding any CSS effects to it
(rounded corners, etc).

#### Disable Aero on Windows

This removes a frame of latency.
Expand Down
9 changes: 4 additions & 5 deletions examples/rift_cube_demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,19 @@
<script src="../third_party/gl-matrix/gl-matrix.js"></script>
<script src="rift_cube_demo.js"></script>
<style>
body {
margin: 0;
}
#canvas {
position: absolute;
left: 0;
top: 0;
}
#status {
position: absolute;
top: 800px;
}
</style>
</head>
<body>
<canvas id="canvas"></canvas>
<div id="status"></div>
<div id="info">Move this window to your Rift (use the Windows key + arrows to get it there fast) then hit 'f' to make it fullscreen.</div>

<script>
launchDemo(
Expand Down
13 changes: 6 additions & 7 deletions examples/threejs_boxes_demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@
font-family: arial;
}

#help {
position: absolute;
top: 800px;
}
#info {
position: absolute;
top: 0px; width: 100%;
padding: 5px;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
color: white;
z-index: 1;
top: 820px;
}

canvas {
Expand All @@ -41,6 +39,7 @@
<script src="js/controls/OculusRiftControls.js"></script>
<script src="js/effects/OculusRiftEffect.js"></script>

<div id="help">Move this window to your Rift (use the Windows key + arrows to get it there fast) then hit 'f' to make it fullscreen.</div>
<div id="info">IPD: <span id='ipd'>0</span> (+o/-p)</div>

<script>
Expand Down

0 comments on commit 75bafb9

Please sign in to comment.