1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0026025: Visualization, TKOpenGl - stereoscopic output does not work

OpenGl_View::Render() - pass target FBO as parameter.
OpenGl_Context - revise Read/Write buffers management logic, taking into account FBOs.

Graphic3d_Camera::UpdateProjection() - setup LProjection and RProjection
the same as MProjection in case of Projection_MonoLeftEye/Projection_MonoRightEye
for API consistency.
This commit is contained in:
kgv
2015-04-15 16:25:38 +03:00
committed by bugmaster
parent b85b0b0731
commit 38a0206f60
17 changed files with 702 additions and 395 deletions

View File

@@ -734,6 +734,7 @@ Graphic3d_Camera::TransformMatrices<Elem_t>&
StereoEyeProj (aLeft, aRight, aBot, aTop,
aZNear, aZFar, aIOD, aFocus,
Standard_True, *theMatrices.MProjection);
*theMatrices.LProjection = *theMatrices.MProjection;
break;
}
@@ -742,6 +743,7 @@ Graphic3d_Camera::TransformMatrices<Elem_t>&
StereoEyeProj (aLeft, aRight, aBot, aTop,
aZNear, aZFar, aIOD, aFocus,
Standard_False, *theMatrices.MProjection);
*theMatrices.RProjection = *theMatrices.MProjection;
break;
}

View File

@@ -90,7 +90,7 @@ public:
//! Enumerates supported monographic projections.
//! - Projection_Orthographic : orthographic projection.
//! - Projection_Perspective : perspective projection.
//! - Projection_Stere : stereographic projection.
//! - Projection_Stereo : stereographic projection.
//! - Projection_MonoLeftEye : mono projection for stereo left eye.
//! - Projection_MonoRightEye : mono projection for stereo right eye.
enum Projection