-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
QVTKWidget deprecated (in VTK >= 8.2 at least) #3370
Comments
I receive this warning after I change qvtkWidget to QVTKOpenGLNativeWidget on my program. This error appears on my mac and the program is not functional. Any suggestions to solve this question? Possible solutionUse vtkGenericOpenGLRenderWindow with QVTKOpenGLNativeWidget and setup the surfaceFormat Error# Error
QVTKOpenGLNativeWidget requires a `vtkGenericOpenGLRenderWindow`. ` vtkCocoaRenderWindow ` is not supported.
ERROR: In /tmp/vtk-20200406-71083-llkp3g/VTK-8.2.0/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 754
vtkGenericOpenGLRenderWindow (0x7fa4b400d800): Unable to find a valid OpenGL 3.2 or later implementation. Please update your video card driver to the latest version. If you are using Mesa please make sure you have version 11.2 or later and make sure your driver in Mesa supports OpenGL 3.2 such as llvmpipe or openswr. If you are on windows and using Microsoft remote desktop note that it only supports OpenGL 3.2 with nvidia quadro cards. You can use other remoting software such as nomachine to avoid this issue. |
Mac isn't supported because Apple has deprecated OpenGL |
Is there has any solution to prevent this error? Or I need to write 2 sets of Qt GUI Code, One for Mac and One for Linux? Also, Could I use dear ImGUI with PCL? Many Thanks! |
We don't have enough hands on deck with experience in visualization. As a result, we haven't found a solution or a workaround. I think using MoltenVK and GLOVE together should make it work, but I never investigated it deeply. Regarding ImGUI, I'm sure you can use it with PCL. You can either create a new binding or use an existing one: |
Should have been solved by #4262. |
Not solved with current master and vtk 9.0.3 on macos. |
Is it definitive that visualization will not work on macos with VTK > 8? |
Can you elaborate a bit whats not working? The CI builds with vtk 9. |
I mean using the render window returned by
warning/error and the PCL visualizer window pops up separately, instead of appearing inside the Qt widget. |
Something like this, which used to work with
|
What seems to work is to call
before the QApplication gets instantiated and then something like this to set up the widget with the viewer inside:
|
Passing |
Unfortunately without the interactor, the widget only displays new data when interacted with, so there must be some way to add one from the outside or fix the segmentation fault.
|
On this page here, there is a workaround listed
But I have not yet tested this on macos. |
Yes, to get it to rerender without interacting you need to call whats in refreshView of the tutorial. Its basically calling render() og the renderwindow or the renderer. Cant remember on top of my head. |
Interesting, too bad the tutorial doesn't show the |
QVTKWidget
is used in apps (pcd_video_player, manual_registration, render_window, among others) and is deprecated at least on VTK v8.2Rendering background used is OpenGL2
The text was updated successfully, but these errors were encountered: