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
<!DOCTYPE html> | |
<html lang="en"><head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title>css/vr test</title> | |
<meta charset="utf-8"> | |
<script src="../../js/vrutils.js"></script> | |
<script type="text/javascript"> | |
// Our VR devices -- a HMD, and its associated orientation/position sensor |
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
cursor = new VRCursor(); | |
cursor.setMode('centered'); | |
cursor.ready.then(function() { | |
// add cursor mesh to scene | |
scene.add(cursor.layout); | |
// init cursor | |
cursor.init(renderer.domElement, camera, scene); |
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
function setRenderMode(mode) { | |
var modes = VRClient.renderModes; | |
if (mode == modes.mono) { | |
console.log('Mono mode'); | |
controls = new THREE.VRControls( camera ); | |
effect = renderer; | |
cursor.setMode('mono'); | |
cursor.hide(); | |
} else if (mode == modes.stereo) { |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>CSS VR Experiments</title> | |
<meta charset="utf-8"> | |
<meta name="viewmode" content="projection=stereo"> | |
<style> | |
iframe { | |
position: absolute; | |
width: 100%; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Blue Box</title> | |
<meta charset="utf-8"> | |
<link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'> | |
<script type="text/javascript" src="lib/jquery-2.1.0.js"></script> | |
<script type="text/javascript" src="css-vr-utils.js"></script> | |
<script type="text/javascript"> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Example full VR site</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> | |
<meta name="viewmode" content="projection=stereo"> | |
<meta name="theme-color" content="#efefef"> | |
<style> |
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
. "$topsrcdir/b2g/config/mozconfigs/common" | |
MOZ_HORIZON=1 | |
mk_add_options MOZ_OBJDIR=../build | |
mk_add_options MOZ_MAKE_FLAGS="-j9 -s" | |
ac_add_options --disable-libjpeg-turbo | |
# This option is required if you want to be able to run Gaia's tests |
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
C:\Users\Casey\Developer\build\dist\bin>graphene.exe --start-manifest http://loc | |
alhost:8000 -f | |
JavaScript error: file:///C:/Users/Casey/Developer/build/dist/bin/components/Pro | |
cessGlobal.js, line 134: NS_ERROR_FILE_UNRECOGNIZED_PATH: Component returned fai | |
lure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsIFile.initWithPath] | |
*** UTM:SVC TimerManager:registerTimer - id: xpi-signature-verification | |
1434217537233 Marionette INFO Marionette enabled via build flag and pr | |
ef | |
[CAPI] LibOVR module is located at C:\Windows\SYSTEM32\LibOVRRT32_0_5.dll |
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
AFRAME.registerComponent('c-example', { | |
init: function () { | |
var mesh = new THREE.Mesh(new THREE.BoxGeometry( 1, 1, 1 ), new THREE.MeshLambertMaterial({color: 0xffff00})); | |
this.el.setObject3D('mesh', mesh); | |
this.calculatePosition(); | |
}, | |
calculatePosition: function () { | |
var mesh = this.el.object3D; | |
mesh.updateMatrixWorld(); |
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
//three.js r.62 | |
var mesh, renderer, scene, camera, controls; | |
var t = 0, ambientFactor, canvas, textureImage; | |
init(); | |
animate(); | |
function init() { |
OlderNewer