Forum archiveIssue archiveVisualization and 3D Viewer

Archived discussion

Render in other way

Visualization and 3D ViewerWed, 07/24/2019 - 21:471 reply

Browse this forum
QuestionAuthor

Hi,

I'm working with Qt and QOpenGLWidget, so I would like to know if the Opencascade OpenGLDriver can be used

without passing the window ID (because it cause some issues in Qt) ?

thanks.

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

without passing the window ID (because it cause some issues in Qt) ?

Sure, you can - OpenGl_GraphicDriver and V3d_View can be initialized using externally created OpenGL context and window.
See, for example, an optional theContext argument in V3d_View::SetWindow() method.

You will have to provide a gluing layer between OCCT 3D Viewer and external OpenGL renderer by yourself, though.
This includes initialization, passing native context information, wrapping / allocating FBOs, managing swapchain, etc.