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

Using Qt3D with Qt5

I'm trying to use the Qt3D library with Qt5. I followed these steps: I've installed Qt5 (on Arch Linux 64bit) at this path: /Qt5.0.0 I've cloned git://gitorious.org/qt/qt3d.git I've built qt3d (/Qt5.0.0/5.0.0/gcc_64/lib/qmake, make, make…
framp
  • 813
  • 11
  • 22
4
votes
1 answer

Qt Creator doesn't recognize Qt3D

I've just build and installed QtQuick3D on my machine. I run the example project "cube". It works I can build and execute it. It shows me a cube that I can rotate with my mouse. But i the QML-editor I get errors on all Viewport and Item3D types. …
3
votes
1 answer

How to draw a lot of lines with Qt3D without the render crashing?

I would like to implement a GCode Viewer in 3D for a C++/Qt5.15.2 program that I wrote. A GCode file contains the instructions for a 3D-Printer to print a 3D Model (where to move, how much material to extrude, which layer is being printed, etc.).…
ElevenJune
  • 423
  • 1
  • 4
  • 21
3
votes
1 answer

Qt3D Different Material for different RenderPasses

I have a QML Scene3D with 2 viewports, left and right half of window. The scene contains two cameras (one per viewport) and a torus mesh. I want to use a viewport-specific material for the same torus, i.e. different QMaterials (QEffects,…
user137589
  • 163
  • 8
3
votes
2 answers

How Access components inside NodeInstantiator Delegate?

I have a line class in C++ and I want to use it in qml. I want to draw a line by mouse and have multiple lines. In fact, I want to new my line class, so I use NodeInstantiator. ListModel { id: entityModel } NodeInstantiator { id:…
Parisa.H.R
  • 3,303
  • 3
  • 19
  • 38
3
votes
0 answers

Qt3D high CPU usage. No hardware acceleration?

I just recently started to use QT3D for a sideproject at work. And i'm surprised how fast you get something that looks pretty decent (at least for my case). But i still have an issue with rendering speed and CPU usage. I've written a small test…
Der Ebly
  • 41
  • 4
3
votes
1 answer

QML Application blocks

The following little QML application blocks forever when run (Qt 5.14.2, Windows 10). My idea was to create a generic App containing the business logic and have an QtUI on top of it. The blocking does not happen when I remove the Scene3D in the QML,…
marsl
  • 959
  • 1
  • 14
  • 25
3
votes
1 answer

invert parent qt3d entity transform (doesn't work for scale3D)

For reasons that are more complex than this minimal testcase, I need to have a entity (childEntity, the magenta box) child of another entity (parentEntity, the cyan box), but childEntity should be independent of parentEntity's transform. Therefore I…
fferri
  • 18,285
  • 5
  • 46
  • 95
3
votes
1 answer

add qml item to Qt3DQuickWindow

as you know Qt3DQuickWindow is a customized window that generated to show 3d entity on 3d scene and is a best alternative for 3dScene that can load all material independent to his implantation. (ability that 3dscene can not do in related to alpha…
SajadBlog
  • 514
  • 2
  • 12
3
votes
1 answer

Qt3D Skeletal Animation

I am trying to convert the KDAB Qt3D QML Example https://github.com/KDAB/qt3d-examples/tree/master/animated-skinned-mesh to C++. I'm having a really hard time since the documentation is basically not useful! Here is what I've programmed so…
clambake
  • 772
  • 4
  • 15
3
votes
1 answer

Qt3D: using Qt3DRender::QLayerFilter

I am trying to use layer filtering as shown in this answer. For this I wrote a simple test (see below). if I transfer code from a My3DWindow class to a main.cpp - this code is worked. Where is the error in My3DWindow class? The full test project can…
avttrue
  • 387
  • 2
  • 12
3
votes
1 answer

Time delay between consecutive ray castings

As a follow up for this post, I have created a Qt3D project which is a modified version of a Qt3D example. I'm running my project with Qt 5.13.1 on openSUSE Linux with GCC-7. On my project, I can use a time-delay between consecutive ray casts. I…
Megidd
  • 7,089
  • 6
  • 65
  • 142
3
votes
1 answer

Trigger ray cast tests consecutively

Following this answer, I'm doing consecutive ray casts: m_rayCaster = new Qt3DRender::QRayCaster(m_scene->rootEntity()); m_rayCaster->setRunMode(Qt3DRender::QAbstractRayCaster::SingleShot); m_scene->rootEntity()->addComponent(m_rayCaster); I have…
Megidd
  • 7,089
  • 6
  • 65
  • 142
3
votes
0 answers

How to exclude empty QEntity from bounding volume computation

My company uses Qt3D to display its CAD models. Wee tried to use the function QCamera::viewEntity(Qt3DCore::QEntity *entity) in order to compute the bounding sphere of a given entity and also to fit the entity to the screen. Now, we stumbled across…
Aleph0
  • 5,816
  • 4
  • 29
  • 80
3
votes
1 answer

Mouse-pressed event is fired but mouse-moved event is not

I'm using Qt3D. I'm adding QObjectPicker to my 3D entities like this: Qt3DRender::QObjectPicker *MyScene::createObjectPickerForEntity(Qt3DCore::QEntity *entity) { if (!entity) return nullptr; picker = new…
Megidd
  • 7,089
  • 6
  • 65
  • 142