On Thursday 20 May 2010 20:01:26 Michele Fiorentino wrote: > Now it works! > > thanks Magnus > > p.s. please it's possible do document this somewhere in the code?? >
Have a look at how osgviewer loads its model files. AFAICT it's sufficient to load both the logo and your main model through osgDB::readNodeFiles. Or load the logo separately and attach it to the root node of your scene. HTH, Magnus > > Thanks > > > > [...] > > > > -----Messaggio originale----- > > Da: [email protected] > > [mailto:[email protected]] Per conto di Magnus > > Kessler Inviato: giovedì 20 maggio 2010 18.28 > > A: OpenSceneGraph Users > > Oggetto: Re: [osg-users] logo plugin how to use it from command line and > > programmatically > > > > On Thursday 20 May 2010 17:00:55 Michele Fiorentino wrote: > > > Dear osg-users, > > > > > > > > > > > > I am pretty new to this platform. I would like to know how to use the > > > .logo plugin to show a semi transparent logo of my lab in a corner > > > programmatically (using command line arguments could be useful too). > > > > > > As far as I have seen there is no documentation about. > > > > Hi Michele, > > > > there's an easy way to do this with osgviewer: Just load a logo AND your > > desired model by passing both on the command line > > > > $ osgviewer lab.logo cow.osg > > > > The viewer will happily render the logo on top of your model. Internally > > it uses osgDB::readNodeFiles() for this. > > > > Just make sure your logo file references an image (e.g. png file) with > > transparent parts. > > > > HTH, > > > > Magnus > > > > > Thanks, > > > > > > michele > > > > > > [...] _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

