OpenGL Volume Rendering Qt6
-
wrote on 10 May 2023, 06:02 last edited by
Hi Everyone,
I am developing a Volume rendering tool using OpenGL and Qt6. (I would like to use Qml/QtQuick if possible).
I am not getting a good starting point, an example or something.
What I am trying to build is very similar to https://martinopilia.com/posts/2018/09/17/volume-raycasting.html .
Can someone please point me in the right direction?Thanks,
Abhishek -
wrote on 10 May 2023, 09:26 last edited by
Mind you volume rendering, raycasting or any other such graphics algorithm has really nothing to do with Qt per se. I recommend you get a copy of some graphics programming book or search online for the algorithms that you want to implement.
On this forum you might ask about integration of some graphics API such as and some 3rd party or custom made renderer to a Qt based application.
-
wrote on 11 May 2023, 08:15 last edited by
Qt will only give you the widgets you need. It provides either an OpenGL widget or a Vulkan widget. Everything else concerning volume rendering is not Qt-related. Qt will just help you to have some nice buttons to change parameters. (And you'll get mouse events for your OpenGL/Vulkan widget that you can use for interaction.)
With a quick google you'll find examples how to create an OpenGL widget in Qt.
-
Qt will only give you the widgets you need. It provides either an OpenGL widget or a Vulkan widget. Everything else concerning volume rendering is not Qt-related. Qt will just help you to have some nice buttons to change parameters. (And you'll get mouse events for your OpenGL/Vulkan widget that you can use for interaction.)
With a quick google you'll find examples how to create an OpenGL widget in Qt.
wrote on 22 May 2023, 01:57 last edited by@SimonSchroeder @SamiV123 Thank you for your response.
I understand the OpenGL / Vulkan code is out of the scope of this forum.
I am more interested in having a great UI around the OpenGL/Vulkan. The OpenGL/Vulkan widget looks good, but is something similar for QtQuick/QML?Thanks.
-
@SimonSchroeder @SamiV123 Thank you for your response.
I understand the OpenGL / Vulkan code is out of the scope of this forum.
I am more interested in having a great UI around the OpenGL/Vulkan. The OpenGL/Vulkan widget looks good, but is something similar for QtQuick/QML?Thanks.
wrote on 22 May 2023, 06:43 last edited by@Zeroth said in OpenGL Volume Rendering Qt6:
The OpenGL/Vulkan widget looks good, but is something similar for QtQuick/QML?
I don't have experience with QML. However, the first hit on Google is this: https://doc.qt.io/qt-6/qtquick-scenegraph-openglunderqml-example.html . It also links to a version for Vulkan: https://doc.qt.io/qt-6/qtquick-scenegraph-vulkanunderqml-example.html . And there is also Direct3D 11 and Metal.