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
3
votes
4 answers

Qt3D, get object picked with QPickEvent

I have lots of entities that has a QObjectPicker attached. I Connect all those QObjectPicker to a function clicked(Qt3DRender::QPickEvent* event). Is there a way to get from event the QEntity (for example) of the object which was picked? Thanks in…
Noom
  • 31
  • 1
  • 3
3
votes
2 answers

Transparent object in QT3D

I need to be able to change the transparency of a mesh object in QT3D. I am using a Scene3D component as the root which contains a default ForwardRenderer. components: [ RenderSettings { activeFrameGraph: ForwardRenderer { …
Martin Smith
  • 63
  • 2
  • 8
3
votes
1 answer

QML apply a texture to a Mesh

I am trying to apply an image texture to a Mesh in QML (Qt 5.6.2). I started from the sample "Shadow Map QML" and I want to texture the GroundPlane. Material and Effect qml classes are applied to that GroundPlane mesh but I can't see how to apply an…
SteveTJS
  • 635
  • 17
  • 32
3
votes
2 answers

How to change light in Qt3D

How can I change the light settings in Qt3D? I think it should be the part of framegraph, but there is not any methods connected with light settings in standard forwardrenderer.
Kamil Zaripov
  • 904
  • 11
  • 33
3
votes
2 answers

Show Qt3D stuff inside QWidget in Qt5

So I felt all warm and fuzzy inside after reading that Qt3D has re-emerged in a v2.0 and is in fact becoming a part of Qt5 soon and that parts of it is already available for testing as a tech preview. I set out with a simple plan, I would have Qt3D…
Mr. Developerdude
  • 9,118
  • 10
  • 57
  • 95
3
votes
1 answer

Qt: Rotate 3D Model

I had a custom QML object Model.qml to load and rotate 3D models: Model.qml Entity { id: root property Material material property alias myRoll : transform.rollAngle components: [ transform, mesh, root.material ] Transform { id: transform …
notthing
  • 31
  • 3
3
votes
0 answers

video as texture in Qt3D 2.0

I am using Qt 5.5.0 and Qt3D 2.0. I want to display video as texture. I can display and rotate only one image. How can I add a video instead of an image?
3
votes
2 answers

How to change the texture or colour of an object in Qt3D with QML?

I have a project, where i have one 3d object (.obj file) and i want to click on this object. For the first test i would be happy to change the texture or colour of the object. As far as i know it's called picking. Do you guys know how to manage this…
eduard_code
  • 49
  • 1
  • 7
3
votes
0 answers

Qt Qt3d Example Project Monkeygod in Linux works, but Windows doesn' t work

I have compiled Qt3d for Linux Mint and also for Windows. Everything worked OK in Linux. All Example Project are working, but in Example Project Monkeygod (Windows) i can only see a cube and an errormessage: Could not load…
3
votes
0 answers

Advice on setting up a Qt3D scene with redundant objects

I'm new to the Qt3D module and am currently writing a game in Qt5/C++ using Qt3D. This question is about "Am I on the correct path?" or "Can you give me some advice on...". The scene of the game has a static part (the "world") and some objects…
leemes
  • 44,967
  • 21
  • 135
  • 183
2
votes
1 answer

QText2DEntity Does not Render

I have a couple of questions, all surrounding the QText2DItem and while I'm unable to get a MWE in the time that I have to perform this task, I'm hoping to hear some speculation on what could fix the issue. I have a QWidget which houses a…
Alex Baum
  • 166
  • 9
2
votes
1 answer

Qt 3D Failed to build graphics pipeline

I have Ubuntu 20.04 and Qt6.4.2. When I try to run Qt3D example Basics Shapes it shows the error: Qt3D.Renderer.RHI.Backend: Initializing RHI with OpenGL backend No GLSL shader code found (versions tried: QList(130, 120) ) in baked shader…
e.n.shirokov
  • 259
  • 2
  • 12
2
votes
1 answer

QT - how to fix link error 2019 with qt VS tools

I'm trying to create a simple qt application in visual studio, I also made sure to install all qt components. Code: #include "QtWidgetsApplication2.h" #include #include #include…
Slava
  • 73
  • 5
2
votes
0 answers

Retrieving the amount of vertices/edges/faces in a QMesh (QT6)

This topic is a copy of the topic I made on the QT Forum (which seems to be less active). I'm having trouble to count the cells (vertices/edges/faces) of a QMesh, using Qt3DRender in QT6. Goal : given a Qt3DRender::QMesh, retrieve its amount of…
Wassim
  • 386
  • 2
  • 15
2
votes
0 answers

Showing Scene3D in Qt Quick Item

I try to show a Scene3d in a Qt Quick so that it just fits into this Item, considering the aspect ratio of the scene. The scene is loaded with Qt Quick's SceneLoader. I experimented with aspect ratio, width, implicitHeight in Camera, Entities and so…
Horst
  • 101
  • 1
  • 8