From 5d58f63300771843687db18ad4da67c5882fd52e Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 20 Jul 2015 03:59:57 +0200 Subject: Bug 1151 - Fix using DK1 on OVR 0.5*; Minor changes --- .../jogamp/opengl/oculusvr/OVRStereoDevice.java | 23 ++++++++++++++-------- .../opengl/oculusvr/OVRStereoDeviceRenderer.java | 4 ++++ 2 files changed, 19 insertions(+), 8 deletions(-) (limited to 'src/oculusvr/classes/jogamp') diff --git a/src/oculusvr/classes/jogamp/opengl/oculusvr/OVRStereoDevice.java b/src/oculusvr/classes/jogamp/opengl/oculusvr/OVRStereoDevice.java index 44bf13cd3..5025e80c5 100644 --- a/src/oculusvr/classes/jogamp/opengl/oculusvr/OVRStereoDevice.java +++ b/src/oculusvr/classes/jogamp/opengl/oculusvr/OVRStereoDevice.java @@ -86,14 +86,6 @@ public class OVRStereoDevice implements StereoDevice { this.deviceIndex = deviceIndex; this.hmdDesc = hmdDesc; - { - final FovHVHalves posFov = FovHVHalves.byRadians(hmdDesc.getCameraFrustumHFovInRadians(), - hmdDesc.getCameraFrustumVFovInRadians()); - final float posZNear = hmdDesc.getCameraFrustumNearZInMeters(); - final float posZFar = hmdDesc.getCameraFrustumFarZInMeters(); - locationSensorParams = new LocationSensorParameter(new Frustum.FovDesc(posFov, posZNear, posZFar)); - } - final ovrFovPort[] defaultOVREyeFov = hmdDesc.getDefaultEyeFov(0, new ovrFovPort[ovrHmdDesc.getEyeRenderOrderArrayLength()]); defaultEyeFov = new FovHVHalves[defaultOVREyeFov.length]; for(int i=0; i