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

light only reflects on one side of 2D mesh with culling disabled in Qt3D

As a follow-up question to this question I have the following scenario: I have a 2D object (let's say a plane for simplicity) that I want to render from both sides in Qt3D. The mentioned question provided an amazing answer to disable the culling…
Mariam
  • 342
  • 3
  • 18
2
votes
1 answer

How to apply transformations to mesh geometry

On Qt3D, an entity can have these two components: Qt3DRender::QGeometryRenderer component which contains the mesh geometry data like vertex positions and normals. Qt3DCore::QTransform component which contains the rotations, translations and…
Megidd
  • 7,089
  • 6
  • 65
  • 142
2
votes
1 answer

Animating a qt3d rotation around a specific axis

I am trying to animate an object in Qt3D to rotate around a specific axis (not the origin) while performing other transformations (e.g. scaling and translating). The following code rotates the object as I want it but without animation…
Mariam
  • 342
  • 3
  • 18
2
votes
0 answers

How do I draw Q3DSurface axis inside a Qt3DWindow?

Is it possible to draw axis from the Q3DSurface class inside a Qt3DWindow, so that I cant use the axis and have any geometry and 3D models for example? Like the picture from the example below, but suppose I want to place a cube or a 3d model inside…
Marcos Saito
  • 530
  • 2
  • 10
  • 17
2
votes
1 answer

Add QMultiSampleAntiAliasing to a QForwardRenderer

I'm trying to enable Multisampling in qt3d. The Qt3DExtras::Qt3DWindow already does the following during…
2
votes
1 answer

How to save a 3DSurface in Qt?

I am trying to save 3DSurfaces as PDF files. The surface plots are defined like this Q3DSurface *surface = new Q3DSurface; surface->addSeries(mySeries); QWidget *container = QWidget::createWindowContainer(surface); and I am using the following code…
Ryan
  • 31
  • 5
2
votes
1 answer

Create QTextureImage from QImage

Is there a way to create Qt3DRender.QTextureImage from QImage? My goal is to place a custom image on a plane in a 3D space. I only know that QTextureImage can open some raster image files (e.g. .webp) and files such as .jpg. It can open file from a…
Matphy
  • 1,086
  • 13
  • 21
2
votes
1 answer

Using a SSBO in Qt3D

I can't get a SSBO working using Qt3D. I'm also unable to find a single example displaying how it is supposed to be done. Here are the main parts of my code: Buffer init: QByteArray ssboData; ssboData.resize(1000); ssboData.fill(0); mySSBOBuffer =…
FredFred
  • 41
  • 2
2
votes
1 answer

What is the intended way (or a good way) to do collision detection in Qt3D?

I have some 3d objects in a simple Qt3D scene with a camera. It is set up in a few minutes in Qt3D using C++. What is the best way to do collision detection? I am not asking how to do collision detection, but what the best way is to do it in Qt3D.…
Veracity
  • 49
  • 8
2
votes
1 answer

Unknown module(s) in Qt: 3danimation

I am a beginner in Qt and wanted to learn about 3D rendering in Qt. The first thing the official document http://doc.qt.io/qt-5/qt3d-index.html stated was to add the following line to its qmake .pro file: QT += 3dcore 3drender 3dinput 3dlogic…
Rishu Singh
  • 49
  • 1
  • 11
2
votes
2 answers

Qt3d: rotate camera around the object (C++)

I have a simple Qt3D example (attached below) and I'd like to be able to rotate the camera around the object - right now the object rotates around the camera. I've found some suggestions for other frameworks and am wondering what the best way is to…
user31208
  • 1,448
  • 1
  • 18
  • 22
2
votes
1 answer

Qt3D no color no rotation when loading obj file

I am trying to create a minimal obj file viewer. Following is my code mostly copy pasted with some minor modifications. #include #include #include #include #include…
Neel Basu
  • 12,638
  • 12
  • 82
  • 146
2
votes
1 answer

How to change Qt3D OrbitCameraController's behavior, eg. left mouse to rotate camera

The default Qt3D OrbitCameraController's behavior is: - Left mouse to move camera. - Right mouse to rotate camera. I need opposite solution, to simply rotate show a product model. C++ code or AxisActionHandler maybe work, but I don't known how to…
Surfsky
  • 86
  • 5
2
votes
1 answer

QT3D QML RenderPassFilter with several key seems bugged

I just started using QML to create a QT3D scene. I would like to filter which elements of my scene are rendered using a RenderPassFilter. Here is my really simple renderer: import Qt3D.Core 2.0 import Qt3D.Render 2.0 Viewport { id: root …
Basile Perrenoud
  • 4,039
  • 3
  • 29
  • 52
2
votes
2 answers

QPaintedTextureImage in Qt3D (Qt 5.8)

I want to create an entity with Qt3D that has a custom image as texture. I came across the QPaintedTextureImage (link leads to Qt 5.9 version for details. Here ist doc for 5.8), which can be written with a QPainter but I don't understand how. First,…