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
1
vote
0 answers

Qt3D: Texture is black

I'm trying to render frames captured by 3D scanner using Qt3D. Mesh is constructed right in geometry but it's shown black. Below is my function where I convert vertices, texture coordinates, normals and add result object to a Scene. For debug…
Valeriia
  • 586
  • 2
  • 4
  • 21
1
vote
1 answer

Qt 3D Studio Animating only one element in a slide, while keeping other elements stay where they are

I am working on a project with Qt 3D Studio, I have a concern regarding animating single objects in slide, while rest of the objects are not effected. To explain, let's consider three Slides "MoveCarRight", "MoveCarCenter" and "SignNoRight".…
mozcelikors
  • 2,582
  • 8
  • 43
  • 77
1
vote
1 answer

Qt 3D rendering is slow

I m using Qt 3D to visualise point cloud data. I have modified the example given here: simple-cpp example. I have added the code to read a file containing 99477 points. Following code snippet shows how I m filling the Entity class with point cloud…
surajj4837
  • 49
  • 1
  • 10
1
vote
1 answer

How to make transparent lines in a mesh using Qt3D?

I am using Qt3D to draw lines and I use the QPerVertexColorMaterial approach for more efficiency (see here for code example : How to optimize point cloud rendering in Qt3D). I defined a size of 4 vertex for the color attribute (rgba) since I would…
llebocq
  • 33
  • 2
1
vote
1 answer

Qtquick - QML Module not found

I am getting started with qt and especially qt quick now and wanted to do the example from here: https://doc.qt.io/qt-5/qtquick3d-simple-example.html However already the line import QtQuick3D 1.15 has been giving me headaches. The error that is…
NotARobot
  • 455
  • 2
  • 10
  • 27
1
vote
1 answer

Converting 2d coordinates to 3d coordinates in Qml qt3d

I have a window size width: 1500 height: 780, I would like to render the 3d object with 2d co-ordinates, giving z=1 as dummy value. Following is the qml code.(If i have to render at x=0,y=0 3d should object should render exactly the same place…
AceMyWays
  • 11
  • 1
1
vote
0 answers

Pick event is wrong sometimes but ray-cast hit is always correct

I add a picker to entities like this: picker = new Qt3DRender::QObjectPicker(entity); picker->setHoverEnabled(false); picker->setObjectName(QStringLiteral("__internal object picker ") +…
Megidd
  • 7,089
  • 6
  • 65
  • 142
1
vote
1 answer

Is it possible to dynamically load .OBJ files using a QML Quick3D View3D?

I am experiencing issues loading and displaying a 3D model (.obj) in QML (Qt 5.15/6.0.0). I have tried the following 3 techniques but they all seem to have unique issues. Using QQuickItem and OpenGL with my own .obj loader. This can work but I'd…
1
vote
0 answers

How to get webgl support in pyqt5

I recently just tried to run the following demo code from https://github.com/zchen24/examples-Qt/blob/master/qt3d/qt3d-simple-example.py: #!/usr/bin/env python """ This is a Python port of Qt 3D: Simple C++ Example…
Tobbey
  • 469
  • 1
  • 4
  • 18
1
vote
1 answer

Qt3D Can I list all vertexes from Qt3DRender::QGeometryRenderer?

e.g. Qt3DCore::QEntity *sphereEntity = new Qt3DCore::QEntity(rootEntity); Qt3DExtras::QSphereMesh *sphereMesh = new Qt3DExtras::QSphereMesh; sphereMesh->setRadius(3); Qt3DCore::QTransform *sphereTransform = new…
xyLi
  • 27
  • 5
1
vote
2 answers

Why is QLineWidth not taken into account?

In Qt3D certain properties of rendered objects are not just simply set on the renderer, but they are globally (per view) or locally (on the material of a rendered object) added to the renderPasses - or so is my comprehension at least. (I'm using…
Patrick B.
  • 11,773
  • 8
  • 58
  • 101
1
vote
1 answer

Qt3D: How to scale a Scene2D to be the same size as the window (pixel-wise)?

I created a C++ application with a 800x600 window that successfully draws a few objects in QML using Qt Quick 2 elements as well as Qt 3D objects: The QML code draws a couple of green/yellow rectangles using Qt Quick 2 Rectangle elements inside a…
karlphillip
  • 92,053
  • 36
  • 243
  • 426
1
vote
0 answers

Basic questions for Qt3D Rendering

I have a simple Qt3D code to test API. #include #include #include #include #include #include #include…
1
vote
1 answer

Use Qt3D offscreen-rendered texture in OpenGL

Goal I'd like to implement an actual widget for Qt3D since QWidget::createWindowContainer just doesn't cut it for me. Problem Description My first approach of letting a new class subclass QWidget and QSurface was not successful since the Qt3D code…
Florian Blume
  • 3,237
  • 17
  • 37
1
vote
0 answers

Load PLY vertex color with Qt3D

I am trying to load a PLY mesh file, with per vertex color data, using Qt3D. After some research it seems not so straightforward: QML load and display .ply mesh with color attributes Another option I tried was to use VTK but it lacks support for Qt…
Anteves
  • 11
  • 2