Oculus Rift Improvements

- Now requires OVR SDK 0.2.5
- New chromatic aberration correction shader.  Can be disabled by
setting $pref::OculusVR::UseChromaticAberrationCorrection to false prior
to enabling Rift display (such as for screen shots).
- FXAA on by default when using full screen on the Rift.
- Can now manually override IPD from script.  Otherwise value set in
profile is used.
- Raw sensor data now available through input events (set
$OculusVR::GenerateSensorRawEvents to true) and console methods.  The
raw data is acceleration, angular velocity, and magnetometer reading.
- Can determine if magnetometer calibration data is available using a
console method in order to notify the user.
This commit is contained in:
DavidWyand-GG 2013-10-19 00:46:39 -04:00
parent 8d2fcf2456
commit 85730dfb59
18 changed files with 985 additions and 20 deletions

View file

@ -37,6 +37,15 @@ namespace OculusVRUtil
/// Calcualte a sensor's rotation as if it were a thumb stick axis
void calculateAxisRotation(const MatrixF& inRotation, const F32& maxAxisRadius, Point2F& outRotation);
/// Convert an OVR sensor's acceleration to Torque 3D vector (in m/s^2)
void convertAcceleration(OVR::Vector3f& inAcceleration, VectorF& outAcceleration);
/// Convert OVR sensor's angular velocity to Torque 3D Euler angles (in radians/s)
void convertAngularVelocity(OVR::Vector3f& inAngVel, EulerF& outAngVel);
/// Convert an OVR sensor's magnetometer reading (direction and field strength) to Torque 3D vector (in Gauss)
void convertMagnetometer(OVR::Vector3f& inMagnetometer, VectorF& outMagnetometer);
}
#endif // _OCULUSVRUTIL_H_