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

Drawing QWidget over QGLNode in QGLView

I use Qt3D and draw a complex 3d scene using QGLView. I need to draw some widgets on QGLNode inside this scene, but I don't know how. Here is a minimal example (based on "nesting" demo from qt3d) of what I suppose to do: Header: class CubeView :…
samdavydov
  • 564
  • 3
  • 22
2
votes
1 answer

Qt3d + glShadeModel

Recently I began to use qt3d (with it's QGlView and QGLSceneNode). I provide per-vertex normals for generated model and now want to use GL_FLAT shading model for my modeling app. But simple call to glShadeModel(GL_FLAT) doesnt do anything - shading…
Anton N.
  • 137
  • 2
  • 12
1
vote
1 answer

How to resolve "Error 0x80070057: The parameter is incorrect" in PySide6 + Qt3D?

When I try to run the code below, which just attempts to draw a single line, I get the following error: Qt3D.Renderer.RHI.Backend: Initializing RHI with DirectX backend Failed to create input layout: Error 0x80070057: The parameter is…
Ross
  • 186
  • 1
  • 6
1
vote
1 answer

How to draw a triangle in qt 3d on a Qt3DExtras::Qt3DWindow?

I'm trying to draw a triangle in qt6 3d, but i got this error in console... Notice that in my project i'm drawing other objects using the classic mesh classes from Qt and everything works perfect.. Failed to create input layout: Error 0x80070057:…
Razvan B
  • 11
  • 2
1
vote
0 answers

PyQt5 and QT3D does not display the obj file without error

Im trying to show a 3d (obj) Model. This works, but when I trying to show it with a loaded UI file it does not work. It only chanch the color of the frame and it give no error back. can somebody help me pleas? This Code is working bu is not loading…
try try
  • 11
  • 2
1
vote
1 answer

QT - Draw a point at a user specified location in a 3D surface

I was going through the Surface example here When the user clicks anywhere it draws a point image surface what i'd like to know is how to do this programatically,like, if a user gives 3 coordinates x, y, and z. How do I go about plotting such point?
Slava
  • 73
  • 5
1
vote
1 answer

qt3d,qml: how can I reduce the bounding volume of a Entity

I see the development document of QML, that is said "The signals pressed(), released(), clicked(), moved(), entered(), and exited() are emitted when the bounding volume defined by the pickAttribute property intersects with a ray", how to set the…
LLLDaniel
  • 13
  • 3
1
vote
0 answers

Birds eye view - QT3D - Camera

Is possible to change the camera view in QT3D from frog view to birds-eye view? Am trying to set the camera to a "top down" view and "collapse" the z-coordinate. Edit: I am working on a project that is going to visualize stars in a solar system, and…
1
vote
0 answers

Qt 6.2.0, Qt3D. Cannot apply a texture to an object

I do not know how to apply a texture to an object. I tried like this but it does not work: Qt3DRender::QTextureLoader *textureLoader = new Qt3DRender::QTextureLoader(objectEntity); Qt3DExtras::QTextureMaterial *material = new…
8Observer8
  • 868
  • 10
  • 17
1
vote
0 answers

Why do QAbstractLight's methods no longer work in PySide6?

In PySide2 QAbstractLight's methods: setIntensity() and setColor() were working correctly, but for some reason, in PySide6 these methods are not changing underlying shader. No error messages are shown when these methods are used and these attributes…
1
vote
1 answer

Pyinstaller unable to find renderer plugin for opengl

I developed an application using Qml and Python. This application uses the Qt3D module of Qml for the 3D rendering of .stl files. This application works fine when running in python But the problem is that when I create an executable file by using…
Abolfazl
  • 27
  • 1
  • 10
1
vote
1 answer

How to pick a color in a 3d colored cube in qml?

I am developping a 3D color picker cube in QML, I have developpe the cube textures but I don't know how to code the color picking. I want when i click on a cube face to have the color on which I clicked, is it possible to do it in qml ? Here is my…
1
vote
1 answer

How to get text input from user and set that text on a 3d object in Qt 3D?

As shown in the picture below, which is taken from dynamic texture qt example, what I want to do is really simple, I want to get text input from the user and display it on a 3d object. I'm using C++ for the logic part of my application (just…
1
vote
1 answer

QT Rotating object problems

I am currently working on a project that has a spinning object. The object's rotation speed is changed and its direction of rotation is changed (forwards/backward). After doing some research I came across RotationAnimator on the QT documentation, it…
Baxtrax
  • 75
  • 5
1
vote
0 answers

Qt3D custom mesh "Invalid address specified to RtlValidateHeap" runtime error

I made a custom mesh class inherited Qt3DRender::QGeometryRenderer to draw lines in Qt3D and use it in the same way as Qt3DExtras::QShpereMesh or others. Here the source( .h , .cpp ) And on test with single line creation everithing as i expected,…