public class StereoUtil extends Object
Constructor and Description |
---|
StereoUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
distortionBitsToString(int distortionBits)
|
static void |
getSBSUpstreamPMV(StereoDeviceRenderer.Eye eye,
float zNear,
float zFar,
float[] mat4Projection,
float[] mat4Modelview)
Calculates the Side By Side, SBS, projection- and modelview matrix for one eye.
|
static boolean |
usesBarrelDistortion(int distortionBits)
|
static boolean |
usesChromaticDistortion(int distortionBits)
|
static boolean |
usesTimewarpDistortion(int distortionBits)
|
static boolean |
usesVignetteDistortion(int distortionBits)
|
public static boolean usesBarrelDistortion(int distortionBits)
public static boolean usesTimewarpDistortion(int distortionBits)
public static boolean usesChromaticDistortion(int distortionBits)
public static boolean usesVignetteDistortion(int distortionBits)
public static String distortionBitsToString(int distortionBits)
public static void getSBSUpstreamPMV(StereoDeviceRenderer.Eye eye, float zNear, float zFar, float[] mat4Projection, float[] mat4Modelview)
#updateEyePose(int)
must be called upfront.
This method merely exist as an example implementation to compute the matrices,
which shall be adopted by the
upstream client code
.
eyeNum
- eye denominatorzNear
- frustum near valuezFar
- frustum far valuemat4Projection
- float[16] projection matrix resultmat4Modelview
- float[16] modelview matrix resultCopyright 2010 JogAmp Community.