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
4
votes
1 answer

How to make wireframe transparent in Qt3D?

I am trying to make wireframe transparent in one of examples of Qt3D, but fails. I set alpha to 0.5 in robustwireframe.frag, but it does not work. void main(){ // Calculate the color from the phong model vec4 color = vec4( adsModel(…
4
votes
1 answer

What's the best way to draw 2D graphics over a Qt3D scene?

I have a Qt3DWindow which contains some 3D stuff. It is displayed as a widget in my Qt application using QWidget::createWindowContainer(QWindow*). What would be the preferred way to draw some 2D graphics (like text, basic shapes, etc.) on top of…
Stefan Pfeifer
  • 593
  • 6
  • 16
4
votes
1 answer

Qt3D dynamic texture

I'm working on software that contains a Qt3D view. This 3D view allow us to visualize elements. All the rendering part of the object is done in QML with custom materials/shaders. I am able to create a material that passes a texture to a shader for…
Basile Perrenoud
  • 4,039
  • 3
  • 29
  • 52
4
votes
2 answers

Zoom Qt3D's Camera

How to implement two-finger pinch gesture handling for Qt3D Camera's FOV? There are FirstPersonCameraController and OrbitCameraController camera controllers which handles mouse/touch pad events. The latter even have zoomLimit property, but its…
Tomilov Anatoliy
  • 15,657
  • 10
  • 64
  • 169
4
votes
1 answer

How to render .obj files from any directory in Qt 5.9

I'm trying to load .obj files into Qt using the Qt3D library. So far I have this code mostly copied from one of the examples: Qt3DCore::QEntity *createScene() { // Root entity Qt3DCore::QEntity *rootEntity = new Qt3DCore::QEntity; //…
Dillydill123
  • 693
  • 7
  • 22
4
votes
1 answer

How can I create a gadient background in Qt3D?

I am looking for the C++ code that creates a gradient background (e.g. from black to white). Currently I only have a solid color by setting the clear color of…
Codev
  • 1,040
  • 2
  • 14
  • 31
4
votes
1 answer

Qt3d Using QSceneLoader with qt 5.8

I unsuccessfully try to use QSceneLoader to load a 3d scene created in an external editor. And always I get assertions at loading stage. I use the example of OBJ model qt, which is easily loaded as QMesh. test repo…
ibnz
  • 81
  • 5
4
votes
1 answer

How to obtain and manipulate QMesh vertices, faces, something else?

I got arbitrary solid QMesh on my screen using examples. It's great. But I can to do nothing with it. mesh->children().count = 0, mesh->primitiveCount=0, mesh->geometry()=0 and so on. How to obtain internal contents of QMesh? Can I change QMesh…
UncleSal
  • 41
  • 4
4
votes
1 answer

Qt3d Input in c++

Is it possible to do handle mouse input in qt3d in c++? I am able to do so using qml using a sample in the qt3d repo https://github.com/qtproject/qt3d/tree/5.6/examples/qt3d/mouseinput-qml There isnt a c++ equivalent for this however. I am not able…
Nicolas Brown
  • 1,546
  • 1
  • 10
  • 17
4
votes
2 answers

qt3d and the oculus sdk

Given qt3d's structure, is it possible to integrate the oculus sdk with a qt3d application? I have tried but my two main obstacles are: I cant use the textures from the texture swap chain created by the oculus sdk as a render target attachment I am…
Nicolas Brown
  • 1,546
  • 1
  • 10
  • 17
4
votes
1 answer

Does PyQt5 support Qt3D?

I'm pretty new with PyQt, but I just upgraded to the version 5 expecting that I could use the Qt3D (that is available with Qt5), but when I've tried to import the module it always says "Unresolved reference to Qt3d". So I've searched in the PyQt…
4
votes
1 answer

Since Qt3D says Linux is supported, how should I deal with absence of window.h on Linux?

Qt3D has been officially supported by Qt 5.5. They say that Linux is supported. I choose an assimp example, and its main.cpp contains window.h . I am on Ubuntu 14.04.3. How am I supposed to compile this program? No such file or directory is the…
CoffeeDay
  • 203
  • 1
  • 11
4
votes
3 answers

Qt QML and 3d: are these two frameworks the same?

Anyone who has experimented with Qt QML and 3D OpenGL, I am interested in 2 frameworks I've read about, but it is not clear to me if in fact they are the same framework. The most interesting of the two is outlined in this Qt Developer Days 2013…
johnbakers
  • 24,158
  • 24
  • 130
  • 258
4
votes
1 answer

Error installing Qt3D with QtCreator and qt5

I tried installing Qt3D using QtCreator 5.1.1 on Windows 8, and I can't figure out how to succeed. First, I followed the steps given in the documentation: get the sources on git://gitorious.org/qt/qt3d open the .pro in QtCreator add the "install"…
lolo
  • 706
  • 6
  • 19
4
votes
3 answers

Is there 3D analogy for QRect in qt?

Basically, the tile sums up the question - I am wondering if there is any build in qt class similar to QRect, but for 3D object (to describe a box rather then rectangle)?
Ilya Kobelevskiy
  • 5,245
  • 4
  • 24
  • 41