Browse Source

OculusRiftEffect: Added DK2 configuration.

Mr.doob 11 years ago
parent
commit
fc73dbca5a
1 changed files with 13 additions and 1 deletions
  1. 13 1
      examples/js/effects/OculusRiftEffect.js

+ 13 - 1
examples/js/effects/OculusRiftEffect.js

@@ -12,7 +12,8 @@ THREE.OculusRiftEffect = function ( renderer, options ) {
 
 
 	// Specific HMD parameters
 	// Specific HMD parameters
 	var HMD = (options && options.HMD) ? options.HMD: {
 	var HMD = (options && options.HMD) ? options.HMD: {
-		// Parameters from the Oculus Rift DK1
+		// DK1
+		/*
 		hResolution: 1280,
 		hResolution: 1280,
 		vResolution: 800,
 		vResolution: 800,
 		hScreenSize: 0.14976,
 		hScreenSize: 0.14976,
@@ -22,6 +23,17 @@ THREE.OculusRiftEffect = function ( renderer, options ) {
 		eyeToScreenDistance: 0.041,
 		eyeToScreenDistance: 0.041,
 		distortionK : [1.0, 0.22, 0.24, 0.0],
 		distortionK : [1.0, 0.22, 0.24, 0.0],
 		chromaAbParameter: [ 0.996, -0.004, 1.014, 0.0]
 		chromaAbParameter: [ 0.996, -0.004, 1.014, 0.0]
+		*/
+		// DK2
+		hResolution: 1920,
+		vResolution: 1080,
+		hScreenSize: 0.12576,
+		vScreenSize: 0.07074,
+		interpupillaryDistance: 0.0635,
+		lensSeparationDistance: 0.0635,
+		eyeToScreenDistance: 0.041,
+		distortionK : [1.0, 0.22, 0.24, 0.0],
+		chromaAbParameter: [ 0.996, -0.004, 1.014, 0.0]
 	};
 	};
 	this.HMD = HMD;
 	this.HMD = HMD;