How complex is it to make a Simple 3D "scene"?



  • I am fairly new to Qt, using Qt 5.5 and Qt creator 3.5. using .cpp files... I have been using QGraphicsView, QGraphicsScene, and simple things like lines. rectangles, elipses etc.

    How complicated would it be to replace a QGraphicsView with a 3D object that lets me display a handfull of stationary rectangular shapes that change color, and a "wheel" that rotates to a specific position.

    What would I need to do to make that happen?



  • Hi! Wouldn't be very complicated. First step would be to update to Qt 5.7, which gives you access to the latest Qt3D module. Next would be to create a Qt3DExtras::Qt3DWindow and embed this into a window container (using QWidget *QWidget::createWindowContainer()). There are a couple of examples that show how the actual 3D stuff works, see http://doc.qt.io/qt-5/qt3d-examples.html.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.