JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.util.stereo.StereoUtil Class Reference
Collaboration diagram for com.jogamp.opengl.util.stereo.StereoUtil:

Static Public Member Functions

static float getVertPupilCenterFromTop (final float screenHeightInMeters, final float pupilCenterFromScreenTopInMeters)
 Return the vertical pupil center from the screen top in the range [0..1]. More...
 
static float[] getHorizPupilCenterFromLeft (final float screenWidthInMeters, final float interpupillaryDistanceInMeters)
 Return the horizontal pupil center from the left side for both eyes in the range [0..1]. More...
 
static boolean usesBarrelDistortion (final int distortionBits)
 See StereoDeviceRenderer#getDistortionBits(). More...
 
static boolean usesTimewarpDistortion (final int distortionBits)
 See StereoDeviceRenderer#getDistortionBits(). More...
 
static boolean usesChromaticDistortion (final int distortionBits)
 See StereoDeviceRenderer#getDistortionBits(). More...
 
static boolean usesVignetteDistortion (final int distortionBits)
 See StereoDeviceRenderer#getDistortionBits(). More...
 
static String distortionBitsToString (final int distortionBits)
 See StereoDeviceRenderer#getDistortionBits(). More...
 
static boolean usesOrientationSensor (final int sensorBits)
 See StereoDevice#getSupportedSensorBits() and StereoDevice#getEnabledSensorBits(). More...
 
static boolean usesYawCorrectionSensor (final int sensorBits)
 See StereoDevice#getSupportedSensorBits() and StereoDevice#getEnabledSensorBits(). More...
 
static boolean usesPositionSensor (final int sensorBits)
 See StereoDevice#getSupportedSensorBits() and StereoDevice#getEnabledSensorBits(). More...
 
static String sensorBitsToString (final int sensorBits)
 See StereoDevice#getSupportedSensorBits() and StereoDevice#getEnabledSensorBits(). More...
 
static void getSBSUpstreamPMV (final ViewerPose viewerPose, final Eye eye, final float zNear, final float zFar, final Matrix4f mat4Projection, final Matrix4f mat4Modelview)
 Calculates the Side By Side, SBS, projection- and modelview matrix for one eye. More...
 

Detailed Description

Definition at line 36 of file StereoUtil.java.

Member Function Documentation

◆ distortionBitsToString()

static String com.jogamp.opengl.util.stereo.StereoUtil.distortionBitsToString ( final int  distortionBits)
static

See StereoDeviceRenderer#getDistortionBits().

Definition at line 78 of file StereoUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getHorizPupilCenterFromLeft()

static float[] com.jogamp.opengl.util.stereo.StereoUtil.getHorizPupilCenterFromLeft ( final float  screenWidthInMeters,
final float  interpupillaryDistanceInMeters 
)
static

Return the horizontal pupil center from the left side for both eyes in the range [0..1].

     <-------------left eye------------->|                       |<-----------right eye-------------->
     <------------------------------------screenSizeInMeters.Width----------------------------------->
                                <------interpupillaryDistanceInMeters------>
     <--centerFromLeftInMeters->
                                ^
                          center of pupil
Parameters
screenWidthInMeters
interpupillaryDistanceInMeters

Definition at line 60 of file StereoUtil.java.

Here is the caller graph for this function:

◆ getSBSUpstreamPMV()

static void com.jogamp.opengl.util.stereo.StereoUtil.getSBSUpstreamPMV ( final ViewerPose  viewerPose,
final Eye  eye,
final float  zNear,
final float  zFar,
final Matrix4f  mat4Projection,
final Matrix4f  mat4Modelview 
)
static

Calculates the Side By Side, SBS, projection- and modelview matrix for one eye.

updateViewerPose(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.

Parameters
viewerPose
eye
zNearfrustum near value
zFarfrustum far value
mat4Projectionprojection matrix result
mat4Modelviewmodelview matrix result

Definition at line 143 of file StereoUtil.java.

Here is the call graph for this function:

◆ getVertPupilCenterFromTop()

static float com.jogamp.opengl.util.stereo.StereoUtil.getVertPupilCenterFromTop ( final float  screenHeightInMeters,
final float  pupilCenterFromScreenTopInMeters 
)
static

Return the vertical pupil center from the screen top in the range [0..1].

Parameters
screenHeightInMeters
pupilCenterFromScreenTopInMeters

Definition at line 42 of file StereoUtil.java.

Here is the caller graph for this function:

◆ sensorBitsToString()

static String com.jogamp.opengl.util.stereo.StereoUtil.sensorBitsToString ( final int  sensorBits)
static

See StereoDevice#getSupportedSensorBits() and StereoDevice#getEnabledSensorBits().

Definition at line 108 of file StereoUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ usesBarrelDistortion()

static boolean com.jogamp.opengl.util.stereo.StereoUtil.usesBarrelDistortion ( final int  distortionBits)
static

See StereoDeviceRenderer#getDistortionBits().

Definition at line 69 of file StereoUtil.java.

Here is the caller graph for this function:

◆ usesChromaticDistortion()

static boolean com.jogamp.opengl.util.stereo.StereoUtil.usesChromaticDistortion ( final int  distortionBits)
static

See StereoDeviceRenderer#getDistortionBits().

Definition at line 73 of file StereoUtil.java.

Here is the caller graph for this function:

◆ usesOrientationSensor()

static boolean com.jogamp.opengl.util.stereo.StereoUtil.usesOrientationSensor ( final int  sensorBits)
static

See StereoDevice#getSupportedSensorBits() and StereoDevice#getEnabledSensorBits().

Definition at line 101 of file StereoUtil.java.

Here is the caller graph for this function:

◆ usesPositionSensor()

static boolean com.jogamp.opengl.util.stereo.StereoUtil.usesPositionSensor ( final int  sensorBits)
static

See StereoDevice#getSupportedSensorBits() and StereoDevice#getEnabledSensorBits().

Definition at line 105 of file StereoUtil.java.

Here is the caller graph for this function:

◆ usesTimewarpDistortion()

static boolean com.jogamp.opengl.util.stereo.StereoUtil.usesTimewarpDistortion ( final int  distortionBits)
static

See StereoDeviceRenderer#getDistortionBits().

Definition at line 71 of file StereoUtil.java.

Here is the caller graph for this function:

◆ usesVignetteDistortion()

static boolean com.jogamp.opengl.util.stereo.StereoUtil.usesVignetteDistortion ( final int  distortionBits)
static

See StereoDeviceRenderer#getDistortionBits().

Definition at line 75 of file StereoUtil.java.

Here is the caller graph for this function:

◆ usesYawCorrectionSensor()

static boolean com.jogamp.opengl.util.stereo.StereoUtil.usesYawCorrectionSensor ( final int  sensorBits)
static

See StereoDevice#getSupportedSensorBits() and StereoDevice#getEnabledSensorBits().

Definition at line 103 of file StereoUtil.java.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: