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

lmport/Export .dwg file to Scene3d in qt3d

I have a simple program that has Scene3d in qml like this code : Scene3D { id : scene3d anchors.fill: parent focus: true aspects: ["render", "logic", "input"] hoverEnabled: true cameraAspectRatioMode:…
Parisa.H.R
  • 3,303
  • 3
  • 19
  • 38
2
votes
1 answer

Need Qt3DWindow to ignore keyboard events

I have a program the takes keyboard input in the mainwindow and does some stuff with it, so it is already getting handled there. As context: The mainwindow has a Qt3DWindow widget next to a bunch of input displays that change when keyboard buttons…
Baxtrax
  • 75
  • 5
2
votes
1 answer

3D object does not show original colors using obj file in QML

I am trying to show simple 3D car using following QML: import QtQuick 2.2 as QQ2 import Qt3D.Core 2.0 import Qt3D.Render 2.0 import Qt3D.Input 2.0 import Qt3D.Extras 2.0 Entity { id: sceneRoot Camera { id: camera …
2
votes
1 answer

How to rotate the object about an angle using qml qt3d (qt)?

I want to rotate the object in the window screen. I am using Qt/QML/Qt3D. I write some code here to add a button in the object window display screen. With the help of this button I could rotate the object in the display screen about (90 and 180)…
Amit Saini
  • 136
  • 2
  • 16
2
votes
1 answer

Qt3D geometry shader working in QML but not in C++

Update The OpenGL version seems to be 4.3 at least according to the following code QSurfaceFormat format = view.format(); int major = format.majorVersion(); int minor = format.minorVersion(); so geometry shaders should work and the issue seems to…
Florian Blume
  • 3,237
  • 17
  • 37
2
votes
0 answers

How to optimize point cloud rendering in Qt3D

I'm trying to display large point clouds (~20M pts) with Qt3D. I first found this library https://github.com/MASKOR/Qt3DPointcloudRenderer which is a good example, but I rewrote a minimalist example to load a specific LAS or PCD point cloud and…
Alexandre
  • 498
  • 2
  • 8
2
votes
1 answer

How do I draw a mesh loaded from .obj(wavefront) file in qt3d by reading file myself?

The example code(comes with the Qt creator tool) for loading a wireframe mesh from .obj files in Qt3D draws this elephant (which I found in a site that peddled digital assets). The question is I want to open the .obj files using my own code and form…
Som Pra
  • 453
  • 3
  • 13
2
votes
1 answer

Qt3d QML: how to add Text as overlay to a standard example

Longtime programmer here, but QML nube. I wish to start a Qt project from the example: "Qt 3D: Shadow Map QML Example", which is readily available from the examples listed in QtCreator. Here's a link to it as well:…
BuvinJ
  • 10,221
  • 5
  • 83
  • 96
2
votes
1 answer

Change and update geometry mesh at runtime

This question and answer, in Oct 2015, implies it is possible to change Qt3D mesh and update it: Question I want to use Qt3d in a situation that involves dynamic runtime changes of geometric data on the application side. What is the best way to…
Megidd
  • 7,089
  • 6
  • 65
  • 142
2
votes
0 answers

How to properly define two QRenderTargets in Qt3D for depth and color information given a vertex shader with two out variables

My company uses Qt3D to display its CAD graphics. For this application it is necessary to implement pixel correct Order-Independent-Transparency. As a first step in order to achieve this goal I tried to write a small app, which renders a simple…
Aleph0
  • 5,816
  • 4
  • 29
  • 80
2
votes
1 answer

How to add rendersetting component to my root entity in qt3d?

I am working on some codes about qt3d. I create a Qt3DWindow(named view). Try to add a root entity(named rootEntity) in it. Put a cube entity like this: m_cubeEntity = new Qt3DCore::QEntity; ... Qt3DExtras::QCuboidMesh *cubeMesh = new…
Mengyu Chen
  • 137
  • 6
2
votes
1 answer

QRenderPassFilter hides plane mesh even if QFilterKey matches

We are aiming to replace our previous 3D Engine with Qt3D. As a last obstacle we need to correctly implement a pixel correct transparency. We are now trying to implement depth peeling as a possible approach to make pixel correct transparency…
Aleph0
  • 5,816
  • 4
  • 29
  • 80
2
votes
0 answers

How to add objectpicker and Camera to my entity in Qt3D?

I need to render some lines and points that hold some data in a 3d scene. And points need to be picked by mouse, and then get the data in the point. I first try to define a class inherited from QQuickFramebufferObject, however i find it is…
Mengyu Chen
  • 137
  • 6
2
votes
2 answers

How to Scale a QMesh around the origin with QML

I'm using QML to display an STL file. I want to make modifications on the file and display it in the scene ( Translation, Rotation, and Scaling) i made the first two but for the scaling i want to scale around the origin (x=0,y=0,z=0). How can i…
Saffist3r
  • 37
  • 11
2
votes
0 answers

QRenderCapture saves strange screenshots

Our company is in need to capture the rendering of a Qt3d scene. For this I created a small example application, that illustrates the usage of our capturing. On the left-hand side you will find the 3D scene and on the right-hand side there is a…
Aleph0
  • 5,816
  • 4
  • 29
  • 80