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
2
votes
0 answers

Why doesn't Qt3DRender::QPickEvent inherit from QEvent?

Qt3D introduces Qt3DRender::QPickEvent that can for instance be emitted when a 3D-object is clicked with the mouse. Why isn't it derived from QEvent, which should be "the base class of all event classes" according to its documentation?
oLen
  • 5,177
  • 1
  • 32
  • 48
2
votes
0 answers

QML Sceneloader and LayerFilter

How can I add my object loaded with a SceneLoader to a layer? In my QML project, I'm applying a layer filter, and showing certain things on some layers, others on other layers, etc... I can add a mesh to a layer with: Mesh { id: barrel …
Matt
  • 1,928
  • 24
  • 44
2
votes
1 answer

Qt3D rotations and translations

I am new to Qt3D and I am wondering if it is possible to take an entity and rotate it around an axis eg. x-axis. Then translate it in a certain direction and then rotate it around the origin. All I can do is one rotation and translation. Thank…
2
votes
0 answers

qml applying the texture to a .obj

I'm trying to add a 3d human object file to a scene but I am currently confused on how to add a texture to the mesh. I tried applying a .webp texture under 'id:humanMaterial' but it crashed the application. RenderableEntity{ id: human3d …
Gepard
  • 111
  • 1
  • 9
2
votes
0 answers

Using Qt 3D with QCustomPlot

I have an application that requires use of both Qt 3D and the QCustomPlot library. However, when attempting to compile QCustomPlot in a project using "QT += 3dinput" in its .pro file, several errors appear referencing the QMouseEvent and QWheelEvent…
Ryan Hilbert
  • 1,805
  • 1
  • 18
  • 31
2
votes
0 answers

3D Vector Field Plot

I am creating an Electromagnetic field simulator and I am using Qt3D to plot cuboids.The output should be the same input cuboid but with different color distribution indicating the magnetic field at each point but I can't figure how to plot it this…
Youssef Emad
  • 319
  • 2
  • 13
2
votes
1 answer

Qt: 3D Horizontal Bar Chart

I am trying to draw a 3D horizontal bar chart using Qt 3D.I am trying to achieve this by drawing consecutive cuboids having the same x , y and rotation and translating them to different depths.But it seemed that changing the depth only is not…
Youssef Emad
  • 319
  • 2
  • 13
2
votes
1 answer

Rendering an already-loaded mesh using qt3d

I have code which generates a mesh, i.e., as a N x 3 array of doubles V of the 3D points and another M x 3 array of integers F of the triangles. How can I render this mesh via qt3d (note the mesh is generated and hence not loaded from a file)? The…
olamundo
  • 23,991
  • 34
  • 108
  • 149
2
votes
1 answer

What is ForwardRenderer in Qt 5.5's Qt3D examples?

Assimp example of Qt3d of Qt 5.5 uses ForwardRenderer. I copied the code, and in main.qml QtCreator shows red line under that name indicating unknown component. Clicking on that word does not take me anywhere. The program is compiling without any…
CoffeeDay
  • 203
  • 1
  • 11
2
votes
1 answer

Qt3D 2.0 billboard transformation

Billboard transformation was depricated since Qt3D 1.0. Now it is replaced with lookAt transformation. I have created plane inside Qt3D context. (took it from Qt3D example found here) and added QLookAtTransform to it. But…
ElDorado
  • 448
  • 6
  • 19
2
votes
1 answer

How to properly dispose Scene3D from QML?

For my project I need to place QtQuick.Scene3D within QtQuick.Component Scene is successfully created, but when I try to dispose component I get segfault at 0 Qt3D::QCamera::position() const 0xb7226e6b 1 Qt3D::QCamera::translate(QVector3D…
Sharihin
  • 140
  • 11
2
votes
1 answer

Bad openGL performance with many QGLMaterial items

in a project I want to render a lot of shapes with different colors. I created the color of the shape with a QGLMaterial and add the shape to the QGLBuilder with this commands: //Build…
501 - not implemented
  • 2,638
  • 4
  • 39
  • 74
2
votes
1 answer

How to compile this qt program(There is no any pro file)?

I download the code(a game made with qt 3d) from Qt learning websites After decompressing it, all i found are some qml file and photos. There is no any c++ file or the pro file. How can i open this as a project not a file in the qt creator and run…
Ziu
  • 649
  • 1
  • 8
  • 20
2
votes
1 answer

Using Qt3D in a widget application

I'm planning to add an interactive 3D model to my application. 3D objects of model should be rotated and moved within C++ code. The whole model is also subject to change during calculations. It also should be a widget in the main window (not a…
sorush-r
  • 10,490
  • 17
  • 89
  • 173
2
votes
0 answers

Rendering texture to simple shape using QGLSceneNode

I am attempting to render a texture to a simple shape using QBuilder and QGeometryData but I can not get the texture to display, what am I doing wrong? I have created a QGLSceneNode which builds the texture and attempts to use…
JonWaite
  • 71
  • 4