mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 00:17:25 +02:00
Disabled overlay for oculus. We still have to call
applicationOverlay.renderOverlay(true) or prioVR cant calibrate.
This commit is contained in:
parent
9311eeb8f5
commit
e6d12bf239
1 changed files with 8 additions and 2 deletions
|
@ -83,7 +83,9 @@ void OculusManager::display(Camera& whichCamera) {
|
||||||
#ifdef HAVE_LIBOVR
|
#ifdef HAVE_LIBOVR
|
||||||
ApplicationOverlay& applicationOverlay = Application::getInstance()->getApplicationOverlay();
|
ApplicationOverlay& applicationOverlay = Application::getInstance()->getApplicationOverlay();
|
||||||
// We only need to render the overlays to a texture once, then we just render the texture as a quad
|
// We only need to render the overlays to a texture once, then we just render the texture as a quad
|
||||||
|
// PrioVR will only work if renderOverlay is called, calibration is connected to Application::renderingOverlay()
|
||||||
applicationOverlay.renderOverlay(true);
|
applicationOverlay.renderOverlay(true);
|
||||||
|
const bool displayOverlays = false;
|
||||||
|
|
||||||
Application::getInstance()->getGlowEffect()->prepare();
|
Application::getInstance()->getGlowEffect()->prepare();
|
||||||
|
|
||||||
|
@ -104,7 +106,9 @@ void OculusManager::display(Camera& whichCamera) {
|
||||||
|
|
||||||
Application::getInstance()->displaySide(whichCamera);
|
Application::getInstance()->displaySide(whichCamera);
|
||||||
|
|
||||||
|
if (displayOverlays) {
|
||||||
applicationOverlay.displayOverlayTextureOculus(whichCamera);
|
applicationOverlay.displayOverlayTextureOculus(whichCamera);
|
||||||
|
}
|
||||||
|
|
||||||
// and the right eye to the right side
|
// and the right eye to the right side
|
||||||
const StereoEyeParams& rightEyeParams = _stereoConfig.GetEyeRenderParams(StereoEye_Right);
|
const StereoEyeParams& rightEyeParams = _stereoConfig.GetEyeRenderParams(StereoEye_Right);
|
||||||
|
@ -121,7 +125,9 @@ void OculusManager::display(Camera& whichCamera) {
|
||||||
|
|
||||||
Application::getInstance()->displaySide(whichCamera);
|
Application::getInstance()->displaySide(whichCamera);
|
||||||
|
|
||||||
|
if (displayOverlays) {
|
||||||
applicationOverlay.displayOverlayTextureOculus(whichCamera);
|
applicationOverlay.displayOverlayTextureOculus(whichCamera);
|
||||||
|
}
|
||||||
|
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue