Web VR test
notes
X

Menu
http://media.tojicode.com/webvr-test/
this.get("Slider1").addScript(function onValueChange(val) {
    var cubeArray = this.get("webvrMorph").renderState.cubeArray;
    cubeArray.pluck("scale").invoke("set", val+.5,val+.5, val+.5);
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
vi
X

Menu
// This workspace is tied to the following webVR morph (select the line and press CMD+d):
morph.show();
// The render state is defined below. Note that it is required to have the
// function initialize and animate defined.
// You can rebuild the entire scene when you press CMD+s. To execute individual
// expressions select it and press CMD+d. CMD+p will also print the result.
// The "show vars" button on the top left will reveal all definitions in this workspace.
// Click on a definition to jump to its source.
// Here is the code for scene "my new scene":
var logger = $morph("webvrLogger");
var morph = this;
var ex = morph.getExtent();
var morphWidth = ex.x;
var morphHeight = ex.y;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
initializeScene: done
initializeLight: done
Error in vrControl.update: TypeError: Cannot read property 'update' of undefined
frames/sec: 59
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
fullscreen
open workspace
run
stop
-
+
rebuild on save
To get started press the open workspace button!
depth: 1
reset
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
show vars
JavaScript Workspace
X

Menu