| Modifier and Type | Field and Description |
|---|---|
| public static final int | ovrHapticsGenMode_Count
Modes used to generate Touch Haptics from audio PCM buffer. |
| public static final int | ovrHapticsGenMode_PointSample
Modes used to generate Touch Haptics from audio PCM buffer. |
| public static final int | ovrProjection_ClipRangeOpenGL
Enumerates modifications to the projection matrix based on the application's needs. |
| public static final int | ovrProjection_FarClipAtInfinity
Enumerates modifications to the projection matrix based on the application's needs. |
| public static final int | ovrProjection_FarLessThanNear
Enumerates modifications to the projection matrix based on the application's needs. |
| public static final int | ovrProjection_LeftHanded
Enumerates modifications to the projection matrix based on the application's needs. |
| public static final int | ovrProjection_None
Enumerates modifications to the projection matrix based on the application's needs. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description | |||||
|---|---|---|---|---|---|---|
| public static native void | novr_CalcEyePoses(long headPose, long HmdToEyePose, long outEyePoses)
Unsafe version of: | |||||
| public static native void | ||||||
| public static native int | novr_GenHapticsFromAudioData(long outHapticsClip, long audioChannel, int genMode)
Unsafe version of: | |||||
| public static native void | novr_GetEyePoses(long session, long frameIndex, boolean latencyMarker, long HmdToEyePose, long outEyePoses, long outSensorSampleTime)
Unsafe version of: | |||||
| public static native void | novr_GetEyePoses(long session, long frameIndex, boolean latencyMarker, long HmdToEyePose, long outEyePoses, double[] outSensorSampleTime)
Array version of: | |||||
| public static native int | novr_ReadWavFromBuffer(long outAudioChannel, long inputData, int
size of the buffer in bytes dataSizeInBytes, int stereoChannelToUse)Unsafe version of: | |||||
| public static native void | ||||||
| public static native void | ||||||
| public static native void | novrMatrix4f_OrthoSubProjection(long projection, long orthoScale, float orthoDistance, float HmdToEyeOffsetX, long __result)
Unsafe version of: | |||||
| public static native void | novrMatrix4f_Projection(long fov, float znear, float zfar, int projectionModFlags, long __result)
Unsafe version of: | |||||
| public static native void | ||||||
| public static native void | novrTimewarpProjectionDesc_FromProjection(long projection, int projectionModFlags, long __result)
Unsafe version of: | |||||
| public static void | ovr_CalcEyePoses(OVRPosef
indicates the HMD position and orientation to use for the calculation headPose, OVRPosef.can be HmdToEyePose,OVREyeRenderDesc.HmdToEyePose returned from GetRenderDesc. For monoscopic rendering, use a position vector that is average of
the two position vectors for each eye .if outEyePosesoutEyePoses are used for rendering, they should be passed to SubmitFrame in OVRLayerEyeFov::RenderPose or
OVRLayerEyeFovDepth::RenderPoseComputes offset eye poses based on | |||||
| public static OVRDetectResult | ovr_Detect(int
a timeout to wait for HMD to be attached or 0 to poll timeoutMilliseconds, OVRDetectResult __result)Detects Oculus Runtime and Device Status. | |||||
| public static int | ovr_GenHapticsFromAudioData(OVRHapticsClip
generated Haptics clip outHapticsClip, OVRAudioChannelData input audio channel data audioChannel, int mode used to convert and audio channel data to Haptics data. Must be: genMode)
Generates playable Touch Haptics data from an audio channel. | |||||
| public static void | ovr_GetEyePoses(long
an session, long ovrSession previously returned by Createthe targeted frame index, or 0 to refer to one frame after the last time frameIndex, boolean SubmitFrame was calledSpecifies that this call is the point in time where the "App-to-Mid-Photon" latency timer starts from. If a given latencyMarker, OVRPosef.ovrLayer provides
"SensorSampleTimestamp", that will override the value stored here.can be HmdToEyePose,OVREyeRenderDesc.HmdToEyePose returned from GetRenderDesc. For monoscopic rendering, use a position vector that is the
average of the two position vectors for each eye.the predicted eye poses outEyePoses,the time when this function was called. May be NULL, in which case it is ignored. outSensorSampleTime)Returns the predicted head pose in | |||||
| public static void | ovr_GetEyePoses(long session, long frameIndex, boolean latencyMarker, OVRPosef.
Array version of: | |||||
| public static int | ovr_ReadWavFromBuffer(OVRAudioChannelData
output audio channel data outAudioChannel, ByteBuffer a binary buffer representing a valid Wav file data inputData, int audio channel index to extract (0 for mono) stereoChannelToUse)Reads an audio channel from Wav (Waveform Audio File) data. | |||||
| public static void | ovr_ReleaseAudioChannelData(OVRAudioChannelData
pointer to an audio channel audioChannel)Releases memory allocated for ovrAudioChannelData. | |||||
| public static void | ovr_ReleaseHapticsClip(OVRHapticsClip
pointer to a haptics clip hapticsClip)Releases memory allocated for ovrHapticsClip. | |||||
| public static OVRMatrix4f | ovrMatrix4f_OrthoSubProjection(OVRMatrix4f
the perspective matrix that the orthographic matrix is derived from projection, OVRVector2f equal to orthoScale, float 1.0f / pixelsPerTanAngleAtCenterequal to the distance from the camera in meters, such as 0.8m orthoDistance, float the offset of the eye from the center HmdToEyeOffsetX, OVRMatrix4f the calculated projection matrix __result)Generates an orthographic sub-projection. | |||||
| public static OVRMatrix4f | ovrMatrix4f_Projection(OVRFovPort
the fov, float OVRFovPort to usedistance to near Z limit znear, float distance to far Z limit zfar, int a combination of the projectionModFlags, OVRMatrix4f ovrProjectionModifier flags. One or more of:
the calculated projection matrix __result)Used to generate projection from | |||||
| public static void | ovrPosef_FlipHandedness(OVRPosef
a pose that is right-handed inPose, OVRPosef the pose that is requested to be left-handed (can be the same pointer to outPose)inPose)Tracking poses provided by the SDK come in a right-handed coordinate system. | |||||
| public static OVRTimewarpProjectionDesc | ovrTimewarpProjectionDesc_FromProjection(OVRMatrix4f
the project matrix from which to extract projection, int OVRTimewarpProjectionDesca combination of the ovrProjectionModifier flags. One or more of: projectionModFlags, OVRTimewarpProjectionDesc
the extracted ovrTimewarpProjectionDesc __result)Extracts the required data from the result of |
| ovrHapticsGenMode_Count | back to summary |
|---|---|
| public static final int ovrHapticsGenMode_Count Modes used to generate Touch Haptics from audio PCM buffer. Enum values:
| |
| ovrHapticsGenMode_PointSample | back to summary |
|---|---|
| public static final int ovrHapticsGenMode_PointSample Modes used to generate Touch Haptics from audio PCM buffer. Enum values:
| |
| ovrProjection_ClipRangeOpenGL | back to summary |
|---|---|
| public static final int ovrProjection_ClipRangeOpenGL Enumerates modifications to the projection matrix based on the application's needs. Enum values:
| |
| ovrProjection_FarClipAtInfinity | back to summary |
|---|---|
| public static final int ovrProjection_FarClipAtInfinity Enumerates modifications to the projection matrix based on the application's needs. Enum values:
| |
| ovrProjection_FarLessThanNear | back to summary |
|---|---|
| public static final int ovrProjection_FarLessThanNear Enumerates modifications to the projection matrix based on the application's needs. Enum values:
| |
| ovrProjection_LeftHanded | back to summary |
|---|---|
| public static final int ovrProjection_LeftHanded Enumerates modifications to the projection matrix based on the application's needs. Enum values:
| |
| ovrProjection_None | back to summary |
|---|---|
| public static final int ovrProjection_None Enumerates modifications to the projection matrix based on the application's needs. Enum values:
| |
| OVRUtil | back to summary |
|---|---|
| protected OVRUtil() | |
| novr_CalcEyePoses | back to summary |
|---|---|
| public static native void novr_CalcEyePoses(long headPose, long HmdToEyePose, long outEyePoses) Unsafe version of: | |
| novr_Detect | back to summary |
|---|---|
| public static native void novr_Detect(int timeoutMilliseconds, long __result) Unsafe version of: | |
| novr_GenHapticsFromAudioData | back to summary |
|---|---|
| public static native int novr_GenHapticsFromAudioData(long outHapticsClip, long audioChannel, int genMode) Unsafe version of: | |
| novr_GetEyePoses | back to summary |
|---|---|
| public static native void novr_GetEyePoses(long session, long frameIndex, boolean latencyMarker, long HmdToEyePose, long outEyePoses, long outSensorSampleTime) Unsafe version of: | |
| novr_GetEyePoses | back to summary |
|---|---|
| public static native void novr_GetEyePoses(long session, long frameIndex, boolean latencyMarker, long HmdToEyePose, long outEyePoses, double[] outSensorSampleTime) Array version of: | |
| novr_ReadWavFromBuffer | back to summary |
|---|---|
| public static native int novr_ReadWavFromBuffer(long outAudioChannel, long inputData, int dataSizeInBytes, int stereoChannelToUse) Unsafe version of:
| |
| novr_ReleaseAudioChannelData | back to summary |
|---|---|
| public static native void novr_ReleaseAudioChannelData(long audioChannel) Unsafe version of: | |
| novr_ReleaseHapticsClip | back to summary |
|---|---|
| public static native void novr_ReleaseHapticsClip(long hapticsClip) Unsafe version of: | |
| novrMatrix4f_OrthoSubProjection | back to summary |
|---|---|
| public static native void novrMatrix4f_OrthoSubProjection(long projection, long orthoScale, float orthoDistance, float HmdToEyeOffsetX, long __result) Unsafe version of: | |
| novrMatrix4f_Projection | back to summary |
|---|---|
| public static native void novrMatrix4f_Projection(long fov, float znear, float zfar, int projectionModFlags, long __result) Unsafe version of: | |
| novrPosef_FlipHandedness | back to summary |
|---|---|
| public static native void novrPosef_FlipHandedness(long inPose, long outPose) Unsafe version of: | |
| novrTimewarpProjectionDesc_FromProjection | back to summary |
|---|---|
| public static native void novrTimewarpProjectionDesc_FromProjection(long projection, int projectionModFlags, long __result) Unsafe version of: | |
| ovr_CalcEyePoses | back to summary |
|---|---|
| public static void ovr_CalcEyePoses(OVRPosef headPose, OVRPosef. Computes offset eye poses based on
| |
| ovr_Detect | back to summary |
|---|---|
| public static OVRDetectResult ovr_Detect(int timeoutMilliseconds, OVRDetectResult __result) Detects Oculus Runtime and Device Status. Checks for Oculus Runtime and Oculus HMD device status without loading the LibOVRRT shared library. This may be called before
| |
| ovr_GenHapticsFromAudioData | back to summary | |
|---|---|---|
| public static int ovr_GenHapticsFromAudioData(OVRHapticsClip outHapticsClip, OVRAudioChannelData audioChannel, int genMode) Generates playable Touch Haptics data from an audio channel.
| ||
| ovr_GetEyePoses | back to summary |
|---|---|
| public static void ovr_GetEyePoses(long session, long frameIndex, boolean latencyMarker, OVRPosef. Returns the predicted head pose in This is a thread-safe function where caller should increment
| |
| ovr_GetEyePoses | back to summary |
|---|---|
| public static void ovr_GetEyePoses(long session, long frameIndex, boolean latencyMarker, OVRPosef. Array version of: | |
| ovr_ReadWavFromBuffer | back to summary |
|---|---|
| public static int ovr_ReadWavFromBuffer(OVRAudioChannelData outAudioChannel, ByteBuffer inputData, int stereoChannelToUse) Reads an audio channel from Wav (Waveform Audio File) data. Input must be a byte buffer representing a valid Wav file. Audio samples from the specified channel are read, converted to float Supported formats: PCM 8b, 16b, 32b and IEEE float (little-endian only).
| |
| ovr_ReleaseAudioChannelData | back to summary |
|---|---|
| public static void ovr_ReleaseAudioChannelData(OVRAudioChannelData audioChannel) Releases memory allocated for ovrAudioChannelData. Must be called to avoid memory leak.
| |
| ovr_ReleaseHapticsClip | back to summary |
|---|---|
| public static void ovr_ReleaseHapticsClip(OVRHapticsClip hapticsClip) Releases memory allocated for ovrHapticsClip. Must be called to avoid memory leak.
| |
| ovrMatrix4f_OrthoSubProjection | back to summary |
|---|---|
| public static OVRMatrix4f ovrMatrix4f_OrthoSubProjection(OVRMatrix4f projection, OVRVector2f orthoScale, float orthoDistance, float HmdToEyeOffsetX, OVRMatrix4f __result) Generates an orthographic sub-projection. Used for 2D rendering, Y is down.
| |
| ovrMatrix4f_Projection | back to summary | ||||
|---|---|---|---|---|---|
| public static OVRMatrix4f ovrMatrix4f_Projection(OVRFovPort fov, float znear, float zfar, int projectionModFlags, OVRMatrix4f __result) Used to generate projection from
| |||||
| ovrPosef_FlipHandedness | back to summary |
|---|---|
| public static void ovrPosef_FlipHandedness(OVRPosef inPose, OVRPosef outPose) Tracking poses provided by the SDK come in a right-handed coordinate system. If an application is passing in While this utility function is intended to convert a left-handed OVRPosef into a right-handed coordinate system, it will also work for converting right-handed to left-handed since the flip operation is the same for both cases. | |
| ovrTimewarpProjectionDesc_FromProjection | back to summary | |||||
|---|---|---|---|---|---|---|
| public static OVRTimewarpProjectionDesc ovrTimewarpProjectionDesc_FromProjection(OVRMatrix4f projection, int projectionModFlags, OVRTimewarpProjectionDesc __result) Extracts the required data from the result of
| ||||||