Forum Discussion
whitehexagon
11 years agoExplorer
JOVR with JOGL and SDK rendering
I'm trying to get something really basic running with OSX, JOVR, OpenGL, JOGL, and SDK 0-4-1 rendering. But I'm getting this fatal error at step 5.5 in the code below. C [libGL.dylib+0x18b5] glG...
jherico
11 years agoAdventurer
"whitehexagon" wrote:
I'm trying to get something really basic running with OSX, JOVR, OpenGL, JOGL, and SDK 0-4-1 rendering. But I'm getting this fatal error at step 5.5 in the code below.
RenderAPIConfigHeader configHeader = new RenderAPIConfigHeader(resolution, 1);
RenderAPIConfig apiConfig = new RenderAPIConfig(configHeader, new int[15]);
I don't know that this will work. I simply use the following:
"whitehexagon" wrote:
int distortionCaps = OvrLibrary.ovrHmdCaps.ovrHmdCap_LowPersistence | OvrLibrary.ovrHmdCaps.ovrHmdCap_DynamicPrediction;
These are not distortion caps. Distortion caps are of the type OvrLibrary.ovrDistortionCaps. I use the following:
"whitehexagon" wrote:
//FovPort[] eyeFov = (FovPort[])new FovPort().toArray(2);
FovPort[] eyeFov = new FovPort[]{hmd.DefaultEyeFov[0], hmd.DefaultEyeFov[1]};
The commented out version is the correct one. Alternatively, you can simply pass in hmd.DefaultEyeFov.
"whitehexagon" wrote:
if (0 == OvrLibrary.INSTANCE.ovrHmd_ConfigureRendering(hmd, apiConfig, distortionCaps, eyeFov, eyeRenderDescs)) {
throw new IllegalStateException("step 5 - cant configure");
}
I'd suggest using the configureRendering() helper method on Hmd which encapsulates a number of parameter checks and allocates the output EyeRenderDesc parameters for you.
RenderAPIConfig rc = new RenderAPIConfig();
rc.Header.RTSize = hmd.Resolution;
rc.Header.Multisample = 1;
int distortionCaps =
ovrDistortionCap_Chromatic |
ovrDistortionCap_TimeWarp |
ovrDistortionCap_Vignette;
eyeRenderDescs = hmd.configureRendering(
rc, distortionCaps, hmd.DefaultEyeFov);
"whitehexagon" wrote:
hmd.setEnabledCaps(distortionCaps); //need this or does the above do this, need above?
distortionCaps != hmdCaps.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 year ago
- 2 years ago
- 9 months ago
- 10 years ago