Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrating OpenSceneGraph with Qt

I have fiddled around with OpenGL on Qt. But now I want to have complex scenes. (With multiple COLLADA/MD2 models loaded).

For this I'm thinking of using OpenSceneGraph (OSG). Is it possible to integrate OSG with Qt? If so how to?

Thanks.

like image 784
coder9 Avatar asked Jan 08 '12 20:01

coder9


3 Answers

OpenSceneGraph has an osgQt library that makes it easy to integrate OpenSceneGraph within Qt. Head up to the the samples and specifically the osgviewerQt one!

like image 191
Mathieu Marache Avatar answered Nov 04 '22 09:11

Mathieu Marache


Yes - I haven't worked on OSG for a year but there was a very good Qt widget in OSG that worked well enough for a commercial product.

With the new improvements in openGL in 4.8 it should be even better

You should probably search the osg forum

like image 29
Martin Beckett Avatar answered Nov 04 '22 10:11

Martin Beckett


Just to point out at another resource (which works with QOpenGLWidget): an article Making Qt and OpenSceneGraph play nice by Bastian Rieck. It will be useful for those who are interested in doing render of different scenes on different widgets while performing updates on demand only (without timer). The article has a link to a source code.

like image 1
vicrucann Avatar answered Nov 04 '22 11:11

vicrucann