Re: [osg-users] Qt4, OSG and HUD

2008-08-19 Thread René Molenaar
I compiled and run the examples, it might become useful. Thanks!
I did notice a similar problem with the other two versions (AdapterWidget
and QOSGWidget),
after you resize your height to zero pixels, the scene is missing...
I worked around this by having the resize function set always a minimum of
one pixel,
it seems like a bug in osg.

Rene

2008/8/19 René Molenaar [EMAIL PROTECTED]

 Nice,

 i will check it out, i just read the article too.
 thanks!

 Rene

 2008/8/18 Johan Nouvel [EMAIL PROTECTED]

 Hi Eric,

 Thanks for the example.

 We are using OSG in QT application with some GUI over the OSG 3D rendering
 widget. QT version is 4.3.X but we want to move to QT 4.4.X.

 With your code, I will spare time. Thanks.

 Johan.

 Eric ZAREMBA a écrit :

 Hi all,


 Since Qt 4.4, we are able to mix OpenGL and Qt in a way which provides
 more possibility than the osgViewerQT do by using QGraphics framework,
 especially for HUD display.

 I joint the example I write to do this.

  ...


 I hope this could be usefull for someone.

 Eric Z.



 

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



 --
 Johan Nouvel, RD Project Manager
 http://www.archivideo.com
 tel : +33 (0)2 99 86 30 20
 ARCHIVIDEO, 40 rue des Veyettes, 35000 RENNES, FRANCE
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Qt4, OSG and HUD

2008-08-18 Thread Johan Nouvel

Hi Eric,

Thanks for the example.

We are using OSG in QT application with some GUI over the OSG 3D rendering widget. QT version is 4.3.X but we want to 
move to QT 4.4.X.


With your code, I will spare time. Thanks.

Johan.

Eric ZAREMBA a écrit :

Hi all,

 

Since Qt 4.4, we are able to mix OpenGL and Qt in a way which provides 
more possibility than the osgViewerQT do by using QGraphics framework, 
especially for HUD display.


I joint the example I write to do this.


...


I hope this could be usefull for someone.

Eric Z.

 





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



--
Johan Nouvel, RD Project Manager
http://www.archivideo.com
tel : +33 (0)2 99 86 30 20
ARCHIVIDEO, 40 rue des Veyettes, 35000 RENNES, FRANCE
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Qt4, OSG and HUD

2008-08-14 Thread Eric ZAREMBA
Hi all,

 

Since Qt 4.4, we are able to mix OpenGL and Qt in a way which provides
more possibility than the osgViewerQT do by using QGraphics framework,
especially for HUD display.

I joint the example I write to do this.

 

The main function loads a model a display into my QGraphicsScene
inheriting class.

On top of it is drawn a simple semi-transparent QWidget but we can draw
whatever we want as menu...

 

I extended the example code from the Qt Quaterly to use the osg::Viewer.

But I think it can interest other Qt/OSG users.

 

I still have 2 problems I don't have the time to look forward:

- The widget transparency only run with the composite viewer (run my
example with the --composite argument)

- The window resize produces a deformation of widgets inside but I think
it more a Qt problem ;) I say this just for information.

 

I hope this could be usefull for someone.

Eric Z.

 



main.cpp
Description: main.cpp


QOSGGraphics.cpp
Description: QOSGGraphics.cpp


QOSGGraphics.h
Description: QOSGGraphics.h
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org