Search completed in 1.26 seconds.
1 results for "vrfieldofview":
WebVR — Virtual Reality for the Web - Game development
Games › Techniques › 3D on the web › WebVR
will loop through the available devices and assign proper sensors to the headsets -- the first devices array contains the connected devices, and a check is done to find the HMDVRDevice, and assign it to the gHMD variable -- using this you can set up the scene, getting the eye parameters, setting the field of view, etc. For example: function setCustomFOV(up,right,down,left) { var testFOV = new VRFieldOfView(up,right,down,left); gHMD.setFieldOfView(testFOV,testFOV,0.01,10000.0); } The gPositionSensor variable holds the PositionSensorVRDevice -- using this you can get the current position or orientation state (for example to update the scene view on every frame), or reset the sensor. For example, the below code outputs position information on the screen: function setView() { var posState = gPos...