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

get geometry Data of a loaded qmesh (c++)

my Problem: i load a 3D-Model into a QMesh: Qt3DRender::QMesh *mesh; mesh->setSource(QUrl(QStringLiteral("qrc:/new/prefix1/ata.obj"))); This works at the moment. Now I search a function that gives me the geometry data of the Object, …
Vic
  • 61
  • 2
6
votes
1 answer

Use Qt3D QEntity in QML Scene3D

I want to add an C++ QEntity to the QML Scene3D, like this: //C++ class MapEntity : public Qt3DCore::QEntity { public: MapEntity( Qt3DCore::QEntity* parent ) : Qt3DCore::QEntity(parent) { ... } } // QML Scene3D { MapEntity…
Kamil Zaripov
  • 904
  • 11
  • 33
6
votes
1 answer

CMake with Qt3d for Qt5?

I have installed Qt5 and Qt3d from the ubuntu-developers repository (I'm under Ubuntu 13.04) and I would like to compile a very simple application with CMake (my version is 2.8.10.1). A working CMakeLists.txt for a Qt helloworld is the following :…
Vincent
  • 57,703
  • 61
  • 205
  • 388
6
votes
4 answers

How to install QT3d on QT5?

I am trying to install Qt3d on Qt5. When I install QT5, in the installation folder there is a src folder. In this folder, the qt3d library is present. If I understand correct, I must build it in order to use the various header files. But I wanted…
thedorkknight
  • 183
  • 3
  • 12
5
votes
0 answers

ObjectPicker doesn't work for a dynamically created entity if there isn't already another entity with ObjectPicker

I have a Scene3D where I dynamically add an entity which has an ObjectPicker, via this helper class' Scene3DViewHelper::addCuboid() slot: scene3dviewhelper.h: #ifndef SCENE3DVIEWHELPER_H #define SCENE3DVIEWHELPER_H #include…
fferri
  • 18,285
  • 5
  • 46
  • 95
5
votes
0 answers

Qt3D: set line width for Qt3DRender::QGeometryRenderer::Lines

I'm not sure how to set the width of lines in Qt3D. I know about Qt3DRender::QRenderStateSet and QLineWidth, but how to use them in the following MWE (from here): #include #include #include…
avttrue
  • 387
  • 2
  • 12
5
votes
1 answer

Qt3D: a few simple questions about QText2DEntity

Listed below is a simple test application. If to run this application, appears message "[Qt3DRender::GLTexture] No QTextureData generated from Texture Generator yet. Texture will be invalid for this frame", and on exit - the application…
avttrue
  • 387
  • 2
  • 12
5
votes
2 answers

Phong-Alpha material transparency

I'm using a pre-built material of Qt3D: Qt3DRender::QMaterial *MyClass::createMaterial() { Qt3DExtras::QPhongAlphaMaterial *mat = new Qt3DExtras::QPhongAlphaMaterial(); mat->setAmbient(QColor("#576675")); …
Megidd
  • 7,089
  • 6
  • 65
  • 142
5
votes
1 answer

2D meshes in QT3D

It seems to me that Qt3D cannot render 2D meshes well. To see what I mean open the shadow map QML example and change the camera controller from FirstPersonCameraController to OrbitCameraController. Run the program and attempt to view the ground…
Mariam
  • 342
  • 3
  • 18
5
votes
1 answer

QML/Qt3D Basic example of GeometryRenderer use

I'm looking for a basic example of how to set up an Entity with a GeometryRenderer in QML. The code I'm using right now is shown below. If I replace geometryRenderer by a CuboidMesh then a blank cube is shown. The goal is to display a simple…
LKieliger
  • 91
  • 7
5
votes
1 answer

Billboarding using Qt3D 2.0

I am looking for the best way to create a billboard in Qt3D. I would like a plane which faces the camera wherever it is and does not change sized when the camera dollies forward or back. I have read how to do this using GLSL vertex and geometry…
Cinder Biscuits
  • 4,880
  • 31
  • 51
5
votes
1 answer

How do you enable a GL function in Qt3D with QML

I am writing an application using Qt3D. Most of the 3D handling I have been doing has used QML not the C++ interface. I have created a QML effect that loads my shader programs similar to the PerVertex color effect QML that ships with Qt5.9. The…
Cinder Biscuits
  • 4,880
  • 31
  • 51
5
votes
1 answer

GLSL spotlight projection volume

In my open source project I have setup a deferred rendering pipeline using Qt3D. So far so good, but now I'd like to move forward by adding spotlights projection volume. (e.g. as if there is smoke in the scene) Like this: The fragment shader I'm…
Massimo Callegari
  • 2,099
  • 1
  • 26
  • 39
5
votes
3 answers

Qt3D rotate camera around mesh

I've recently started learning Qt/QML/C++ and trying to build a very basic 3D scene to rotate the camera around a mesh object. I'm finding it very difficult to follow the examples and I'm finding the documentation doesn't provide any useful…
dannym87
  • 109
  • 1
  • 6
5
votes
3 answers

Render a Qt3d view as a widget on QApplication MainWindow

I'm starting out in Qt. I'm trying to render a 3D view from Qt3d on the MainWindow of a QApplication. The examples I've found are all based on QGuiApplications without widgets using Qt Quick and QML but I'm aiming to use widgets since this is going…
Nuno Bártolo
  • 75
  • 2
  • 6
1
2
3
27 28