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
1 answer

How to put QPushButton into Qt3DWindow which is in the widget?

I want to have one or more QPushButtons or other widgets on top of Qt3DWidget, but it is invisible. Don't know why. In my mainwindow.cpp I have such code: this->renderer = new Qt3DExtras::Qt3DWindow();…
2
votes
1 answer

What is `uvw` property of QPickTriangleEvent class

QPickTriangleEvent class has a uvw property. What is it? Is uvw the normal vector of the triangle? I log the QPickTriangleEvent properties: Qt3DRender::QPickTriangleEvent *eventTri = static_cast(event); qDebug() <<…
Megidd
  • 7,089
  • 6
  • 65
  • 142
2
votes
0 answers

Qt3D show a DEA file

I wrote a simple app to show a DEA file, from blender, stored in the resource file of the application, to learn Qt3D module, but all seems to be on QML, but I need mostly work on c++. void add3dElements(Qt3DExtras::Qt3DWindow *view){ //To…
Silenzio76
  • 53
  • 7
2
votes
2 answers

Why does the Qt3D QObjectPicker not work on Android if the Qt3DWindow is embedded inside a QWidget?

I have a Qt app containing a Qt3DWindow as well as multiple QWidgets. To use both, the Qt3DWindow is embedded via QMainWindow::createWindowContainer() which works fine both on Windows and Android. This is not the case for an QObjectPicker attached…
Taurus
  • 51
  • 5
2
votes
0 answers

Qt3d Correct rendering of transparent mesh

I want to render a custom mesh (LAB.obj) with a certain transparency in a Qt3D scene. I use QDiffuseSpecularMaterial with diffuse color set to Qt.rgba(1,0.6,0.42,0.9) - alpha value is 0.9. I get strange horizontal stripes throughout my model when…
user137589
  • 163
  • 8
2
votes
0 answers

What differences between QPhongMaterial and QPhongAlphaMaterial?

I try to draw transparent QSphereMesh over two triangles. If I use with my sphere QPhongMaterial, then it works fine. But if I use QPhongAlphaMaterial, then sphere is drawn over first triangle, but under second. So I don't understand what option I…
Ligvest O
  • 295
  • 2
  • 13
2
votes
1 answer

Qt3d Sceneloader: Replace the material component of an Entity with my custom material at runtime

I have the following code to load a collada scene using the SceneLoader: SceneLoader{ id: sceneLoader source: "file:///home/rui/projects/cad/bodyplacement_lm36_v2.dae" MetalRoughMaterial { id:metal_mat objectName:…
Rui Sebastião
  • 855
  • 1
  • 18
  • 36
2
votes
1 answer

Draw triangle with Qt3D

I need to draw a polygon with Qt3D, but i found how i can do this with triangles. So. I found a code, that works more tightly with OpenGL from Qt3D. It was drawing the line but i changed one to draw triangles. When i set…
Ligvest O
  • 295
  • 2
  • 13
2
votes
0 answers

Accessing mesh and skeleton of FBX in Qt3D

I want to expand on myselfs and karamazovbros question regarding Qt3D and import of fbx files. I have not found any documentation on how to access the files skeleten structure. The purpose of my project is to perform animations (transforms,…
Anders
  • 403
  • 3
  • 17
2
votes
1 answer

Qt3D SceneLoader entity is not rendered

I'm trying to create a Qt3D prototype which is able to render an obj which contains transparent objects. Therefor I need to somehow incorporate QSortPolicy with a custom frame graph. I put together a few examples which I found on the internet…
iam_peter
  • 3,205
  • 1
  • 19
  • 31
2
votes
1 answer

FbxGeometryLoader with QML

I want to import a .fbx file into my Scene3D, via the QMesh type, all in QML. Per the documentation, QMesh will also support the following format if the SDK is installed and the fbx geometry loader plugin is built and found So the result I want…
Anders
  • 403
  • 3
  • 17
2
votes
0 answers

How to setup QT Creator to use Autodesk FBX SDK as a library?

The Qt documentation for QMesh at the following link, https://doc.qt.io/qt-5.11/qt3drender-qmesh.html, shows that QMesh supports FBX when using the Autodesk FBX SDK. It provides no resource about how to go about setting this up, so I searched and…
karamazovbros
  • 950
  • 1
  • 11
  • 40
2
votes
0 answers

Qt3D point and line picking?

I've been trying to do point and line picking on a mesh in Qt3D. Here's a working version of triangle picking, auto renderSettings = new…
unclejimbo
  • 91
  • 7
2
votes
1 answer

Importing objects in Qt3D doesn't work but there's not error message

I have a Qt3D application which imports STL file formats: m_sceneLoaderEntity = new Qt3DCore::QEntity(); m_sceneLoaderEntity->setObjectName("New imported entity"); Qt3DRender::QSceneLoader *sceneLoader = new…
Megidd
  • 7,089
  • 6
  • 65
  • 142
2
votes
0 answers

Loading a .FBX file with Qt3D

I am very new to QT. I am following an example to load a .FBX file into a dialog. ToolButton is clicked to load a .FBX file into the Scene3D: main.qml import QtQuick.Controls 2.2 import QtQuick.Dialogs 1.2 import QtQuick.Scene3D 2.0 import Qt3D.Core…
John Tan
  • 1,331
  • 1
  • 19
  • 35