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

I need to load a 3D model (.3ds file) into my QGLWidget (Qt OpenGL widget). I am looking for a cross-platform solution running on Linux, Windows and Mac.

I found some solutions on the Internet, but still could not integrate any of them in my Qt application:

Any suggestion?

+4
source share
2 answers

You can use Qt3D . It adds 3D content to the cross-platform ability of Qt Quick. Applications can be QML 2D applications with some simple 3D content; up to complex 3D scenes containing 3D assets - for example, complex 3D models and shader effects.

Qt3D supports 2D and 3D rendering in Qt / C ++ and Qt Quick applications.

You can also load the model object in 3D Studio Max (3DS) format or other standard formats such as obj with the prospect of viewing the camera using Qt3D.

There are some good tutorials and examples here .

+3

Assimp ++ - , Qt.

.3ds, -, , , . . :

:

  • 3ds Max 3DS (.3ds)
+2

Source: https://habr.com/ru/post/1536833/


All Articles