Thanks Wang, actually I figured it out. I study the code and yes, I am seeing the Drawable calling the rendering method (doOneFrame()). However, the OpenGLRenderManager in it's override of begin() is calling glClear() so no matter I was doing mygui was keeping clearing the background even if there was no background widget, so I had to override all of these to make it work. Your suggestion can do the job but no blending of widgets with the OSG scene, since these glClear
But, thanks a lot !!!! Cheers, Nick On Thu, Nov 12, 2015 at 1:55 AM, Wang Rui <wangra...@gmail.com> wrote: > Hi Trajce, > > This should be easy because MyGUI window is encapsulated in derived > osg::Drawable class and displayed in a HUD camera. You may simply set the > camera ortho matrix to a different value like (0.0, 0.4, 0.0, 0.4) to have > OSG scene as background. > > Wang Rui > > ------------------ Original ------------------ > *From: * "Trajce Nikolov NICK";<trajce.nikolov.n...@gmail.com>; > *Date: * Wed, Nov 11, 2015 04:43 AM > *To: * "OpenSceneGraph Users"<osg-users@lists.openscenegraph.org>; > *Subject: * Re: [osg-users] mygui integration (for Wang Rui) > > Hi Wang, > > did you had luck to have osg scene as a background (the osg blusish > background with a model)? Any hints for this? > > Thanks a lot! > > Nick > > On Tue, Nov 10, 2015 at 7:45 AM, Trajce Nikolov NICK < > trajce.nikolov.n...@gmail.com> wrote: > >> Thanks Wang for the fast reply ... I will .. >> >> Cheers, >> Nick >> >> On Tue, Nov 10, 2015 at 1:55 AM, Wang Rui <wangra...@gmail.com> wrote: >> >>> Hi Trajce, >>> >>> The osgmygui example is compiled against MyGUI 3.01 and will look for >>> resource.xml file in current working directory to locate MyGUI media files. >>> The template of resource.xml can be found at <MyGuiRepo>/CMake/Templates, >>> which should also be installed to <InstallPrefix>/bin automatically. >>> >>> Sorry for my inactivity these days, and feel free to use and commit to >>> the osgRecipes project. :-) >>> >>> Wang Rui >>> >>> ------------------ Original ------------------ >>> *From: * "Trajce Nikolov NICK";<trajce.nikolov.n...@gmail.com>; >>> *Date: * Tue, Nov 10, 2015 03:01 AM >>> *To: * "OpenSceneGraph Users"<osg-users@lists.openscenegraph.org>; >>> *Subject: * [osg-users] mygui integration (for Wang Rui) >>> >>> Hi Wang, >>> >>> I am looking at your work with mygui and I was wondering where do you >>> host the referenced config .xml files to run the sample. Please let me know >>> >>> Thanks as always ! >>> >>> Nick >>> >>> p.s. I hope the community will not mind for posting this to the user >>> list :-) >>> >>> -- >>> trajce nikolov nick >>> >>> _______________________________________________ >>> osg-users mailing list >>> osg-users@lists.openscenegraph.org >>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >>> >>> >> >> >> -- >> trajce nikolov nick >> > > > > -- > trajce nikolov nick > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > -- trajce nikolov nick
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org