Re: [osg-users] Displaying a scene in the background of a QGraphicsView

2008-11-06 Thread René Molenaar
If the cow shows and the cessna does not, it is probably an optimization step, like small feature culling. 2008/11/5 Yvon Halbwachs [EMAIL PROTECTED] Hi everybody, I managed to use osg in a Qt QGraphicsView with the information that Eric Zeremba and Rene Molenaar posted some weeks ago. I

Re: [osg-users] Displaying a scene in the background of a QGraphicsView

2008-11-05 Thread Yvon Halbwachs
Hi everybody, I managed to use osg in a Qt QGraphicsView with the information that Eric Zeremba and Rene Molenaar posted some weeks ago. I still have some troubles though... Things work fine when I display the cow.osg scene from the OpenSceneGraph example files, but nothing is displayed when

Re: [osg-users] Displaying a scene in the background of a QGraphicsView

2008-09-05 Thread Robert Osfield
Hi Max, My guess is that Qt is changing OpenGL state which is not being protected, and then you are mixing this with the OSG which assumes that it has complete control over OpenGL state so gets messed up by the QT changes to state, and also Qt OpenGL code is likely to be messed up by the OSG

Re: [osg-users] Displaying a scene in the background of a QGraphicsView

2008-09-05 Thread Max Pfingsthorn
Hello Robert, Thank you very much for your reply. My thoughts exactly. But how do I save and restore the opengl state in its entirety? I tried pushing/popping the modelview, projection and even the texture matrices around calling viewer-frame(). I also explicitly glGet'ed them and loaded

Re: [osg-users] Displaying a scene in the background of a QGraphicsView

2008-09-05 Thread Robert Osfield
Hi Max, The topic of mixing OpenGL code with the OSG has been discussed many times on osg-users so have a look through the archives on this topic. glPushAttrib would also be a good keyword to search on. Robert. On Fri, Sep 5, 2008 at 6:42 PM, Max Pfingsthorn [EMAIL PROTECTED] wrote: Hello