PDA

View Full Version : Viewer for 3D Models



bts
3rd March 2011, 13:26
Hello,

I write software that should be able to display, turn and zoom a (triangulated) 3D object. An important requirement is that it should be possible to select a certain triangle of the object. Is it possible to do that with built-in classes of QT ?

Thank you,
best regards

high_flyer
3rd March 2011, 13:40
No.
Qt does not deal with 3D graphics.
But it supports it - that is, you can use openGL code, and display it in an QGLWidget.
Qt does offer various conveniences to work with openGL, but eventually, the openGL part has to be done in openGL.
Have a look at the class index, you will find various QGLxxxxx classes - read the docs, and you will see exactly how you can integrate Qt and openGL.

agarny
3rd March 2011, 14:45
As high_flyer said, you can use OpenGL and it's very easy to do so in Qt (if you know OpenGL that is!). Otherwise, if you are really serious about your 3D stuff, then you might want to look at VTK (http://www.vtk.org/) and then Paraview (http://www.paraview.org/) for an example of what can be done with it (yes, Paraview is a Qt application).