Questions tagged [qt3d]

Qt 3D is a Qt module providing high level 3D scene rendering using OpenGL for Qt/QML applications.

Qt3D provides functionality for near-realtime simulation systems with support for 2D and 3D rendering in both Qt C++ and Qt Quick applications.

The functionality in Qt3D is divided into three modules: Qt3DCore, Qt3DInput and Qt3DRenderer.

Official documentation can be found here.

413 questions
32
votes
1 answer

Qt3D: How to render a mesh in wireframe mode using Qt C++?

Qt3D documentation is increasing but still lacking some information especially on how to do things without Qml/QtQuick. After heavily searching the web about rendering a mesh in wireframe mode, I found a lot of helpful hints and examples that all…
Hans
  • 337
  • 3
  • 6
16
votes
2 answers

How to render in Qt3D in standard GUI application?

I enjoy using Qt3D, but all of the examples I see for it are full window applications. What I can't understand from the examples is how to add a qt3d rendering window to a regular qt gui application. Basically what I want is a little rendering…
MrSynAckSter
  • 1,681
  • 1
  • 18
  • 34
15
votes
2 answers

Is Qt3D a part of Qt5?

I have installed Qt5 libraries in windows but there is no document about Qt3D in Qt assistant. Is Qt3D a part of Qt5 or it has been removed from release version 5?
Hesam Qodsi
  • 1,569
  • 3
  • 25
  • 38
13
votes
2 answers

Overpainting and post-render effects on QGLView (not QGLWidget) in Qt3D

I'm currently writing a game in C++/Qt5 using the Qt3D module. I can render the scene (QGLSceneNodes) on a QGLView but am now stuck on overpainting the scene with some GUI elements. I haven't decided yet whether to use QML or C++ to define the look…
leemes
  • 44,967
  • 21
  • 135
  • 183
10
votes
3 answers

Qt3d. Draw transparent QSphereMesh over triangles

I have a function that draws triangles through OpenGL I draw two triangles by pressing a button (function on_drawMapPushButton_clicked()). Then i draw a sphere that placed above these triangles. And now i see, that sphere is drawed correctly over…
Ligvest O
  • 295
  • 2
  • 13
9
votes
2 answers

How can I control frame rate in Qt 3D?

I'm using the new Qt 3D API to display a 3D scene during a computationally intense calculation. This scene only changes as a response to user input. However, the default behavior of Qt 3D seems to lock the scene's frame rate to some high constant…
Ryan Hilbert
  • 1,805
  • 1
  • 18
  • 31
8
votes
1 answer

QML, Combining multiple meshes into single entity

I am trying to create a customizable Qt3D component by merging three ConeMeshes into a single entity. The user must be able to interact with the custom entity, so I have added an ObjectPicker to the file. Normally, I would use a predefined scaled…
Anders
  • 403
  • 3
  • 17
8
votes
2 answers

Qt3D - how to not draw the meshes?

I want to not draw some objects on the scene. In normal OpenGL we have just to not call function related to drawing the mesh. Unfortunately I didn't found this "functionality" in the QML. The Entity doesn't contain the "visibility" attribute etc. Of…
user1020905
  • 141
  • 8
8
votes
3 answers

How do I draw a simple line in Qt3D?

I feel like this should be pretty straightforward, but for my life I can't figure out how to draw a basic line using Qt 3D. The only guidance I've been able to find on the subject is this obscure video, in which there's an off-putting amount of raw…
Ryan Hilbert
  • 1,805
  • 1
  • 18
  • 31
7
votes
2 answers

Qt3D "qt.glx: qglx_findConfig: Failed to finding matching FBConfig" Warning

Ubuntu 18.04.1 operating system, QT version 5.12 After starting the program that shows the 3D window, the console is written the following warning: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' qt.glx: qglx_findConfig:…
Tarakan
  • 171
  • 1
  • 5
6
votes
1 answer

PySide2 Qt3D mesh does not show up

I'm diving into Qt3D framework and have decided to replicate a simplified version of this c++ example Unfortunately, I don't see a torus mesh on application start. I've created all required entities and enabled a mesh in SceneModifier class. What…
Artem
  • 563
  • 3
  • 17
6
votes
1 answer

How do I draw the outline of an object in Qt3D?

How can I draw the outline of an object on top of any other object in Qt3D? For instance to highlight a selected object in a 3D editor?
dragly
  • 1,445
  • 11
  • 14
6
votes
1 answer

Understanding the mesh created by Qt3D

I create a Qt3D mesh like this: Qt3DCore::QEntity *newEntity = new Qt3DCore::QEntity(); Qt3DExtras::QConeMesh *mesh =new Qt3DExtras::QConeMesh(); mesh->setTopRadius(0.2); mesh->setBottomRadius(1.0); mesh->setLength(2.0); for(int i = 0; i <…
Megidd
  • 7,089
  • 6
  • 65
  • 142
6
votes
1 answer

Access framebuffer in Qt3D

My task: Calculate the pixel coordinates (e.g. make a snapshot) of a 3D mesh to find the 2D shape of this mesh from a specific camera angle. I'm currently using Qt3D with a QGeometryRenderer to render a scene containing a mesh to a QWidget which…
Joey
  • 63
  • 5
6
votes
2 answers

Qt3D reading raw vertex data from QGeometry

I am developing an application using Qt3D and need to access raw vertex data via C++. I am using the QObjectPicker for raypointing, but since the data is specialized (I have developed an importer that adds an extra attribute to each vertex…
Cinder Biscuits
  • 4,880
  • 31
  • 51
1
2 3
27 28