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:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user