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
5
votes
2 answers

3D model (.3ds) in Qt OpenGL widget

I need to load a 3D model (.3ds file) in my QGLWidget (Qt OpenGL widget). I am looking for a cross-platform solution working under Linux, Windows and Mac. I have found some solutions on the web, but still have not been able to integrate any of them…
Mikael
  • 183
  • 3
  • 4
  • 11
4
votes
1 answer

Qt3D - Import gltf and play animation

I'm currently struggling to play the animation of a gltf-file with Qt3D/QML. Model I want to use: https://sketchfab.com/3d-models/plane-cedc8a07370747f7b0d14400cdf2faf9 Code I have so far: Entity { id: root Transform { id:…
4
votes
1 answer

Control a textured 3D object opacity in QML

I am a bit new to Qt 3D in QML and I am trying to control the opacity of a textured 3D object. I am using the simpleqml3d test project in order to do that. I have played with the materials, but couldn't get it to work. This is my modified…
Jacob Krieg
  • 2,834
  • 15
  • 68
  • 140
4
votes
2 answers

Qt3d: Artifacts of displaying when applied Qt3DRender::QLayerFilter

I am trying to use layer filtering as shown in this answer. For this I wrote a simple test (see below). This is a continuation of the question. At a certain position of the red sphere, an artifact appears, which looks like display from the another…
avttrue
  • 387
  • 2
  • 12
4
votes
0 answers

Analyze traditional triangle-type mesh by voxels

I have a qmake project on Qt Creator using Qt3D to render 3D scenes with triangle-type meshes. An example is available here. I intend to use OpenVDB tools to analyze my Qt3D meshes. Is converting Qt3D meshes to OpenVDB grid the right approach to…
Megidd
  • 7,089
  • 6
  • 65
  • 142
4
votes
2 answers

Qt 3D: How to draw a cube with different textures on each face?

I'm new to Qt 3D (C++), and while I'm training with my first 3D app, I couldn't achieve the following: Creating a cube with 6 different textures on each face... Until now, this is what I've tried: // Cuboid shape data Qt3DExtras::QCuboidMesh…
Osama
  • 324
  • 3
  • 11
4
votes
2 answers

How to keep texture aspect ratio when the mesh dimensions change in Qt3D

I’m testing the current status of Qt3D. I’m very fond of the MetalRoughMaterial, but I can’t seem to handle this simple use case in Qt3D: I would like to use textures that repeat to fill the face they are on. Desired result: What I get is this…
Eddy Alleman
  • 1,096
  • 2
  • 10
  • 21
4
votes
1 answer

QObjectPicker not working with custom geometry mesh and renderer

I have set up a simple 3d scene with a custom QGeometryRenderer and QGeometry. The custom QGeometry is loaded from a ply file. class ColorMeshGeometry : public Qt3DRender::QGeometry { Q_OBJECT public: ColorMeshGeometry(QString meshFile,…
Mike
  • 562
  • 3
  • 15
4
votes
1 answer

Double buffering in Qt3DWindow

My Qt3DWindow flickers at redraw and it feels as if double buffering is not working properly - is there something I need to do? I've tried setting the global surface format parameters setSwapBehavior(QSurfaceFormat::DoubleBuffer) but it does not…
Bill Sellers
  • 436
  • 3
  • 9
4
votes
0 answers

How to correctly render a transparent mesh in QQuickView

I want to embed a Qt3D scene with transparent objects in a Widget based application using the QQuickView class. Rendering of a highly transparent Mesh with Qt3D (DiffuseSpecularMaterial with alpha channel value of diffuse color 0.1 and alphaBlending…
user137589
  • 163
  • 8
4
votes
1 answer

QML 3D - change size (expand/reduce) of model rendered in UI to fit in the current window

I am rendering a 3D model using Mesh by reading from a .obj file, and I am trying to change its size dynamically to take the parent window's dimensions. Is there a way to resize the object? Currently when I run the app the model takes roughly half…
Rahul Chowdhury
  • 173
  • 2
  • 11
4
votes
1 answer

Qt3D texture parameter

I am using Qt3D (5.11), and I am experiencing asserts when I try to set a QParameter value to be used by a custom fragment shader. Here is the section of code that doesn't seem to be working: auto entity = new Qt3DRender::QEntity( mRootEntity…
Naaff
  • 9,213
  • 3
  • 38
  • 43
4
votes
1 answer

Detecting touch on 3D objects, in addition to mouse click

How to use Qt3DRender::QObjectPicker with touch events? I'm adding Qt3DRender::QObjectPicker component to my Qt3D entities by this method: Qt3DRender::QObjectPicker *MyClass::createObjectPickerForEntity(Qt3DCore::QEntity *entity) { …
Megidd
  • 7,089
  • 6
  • 65
  • 142
4
votes
0 answers

qt 3d Qml Transparent Scene2D texture

How to render mesh texture, without this default, grey background? I mean, use Scene2D component, to generate texture with alpha. Now it's look like there was PhonMaterial underneath my red rectangle. Entity { id: root components: [cubeTransform,…
Rajju
  • 357
  • 3
  • 13
4
votes
1 answer

QML load and display .ply mesh with color attributes

I am trying to load a simple cube with per-vertex color information from a Stanford PLY file using QML. My entity looks like this: Entity { id: circle property Material materialPoint: Material { effect: Effect { …
teodron
  • 1,410
  • 1
  • 20
  • 41
1 2
3
27 28