Okay, changes attached. I have never worked on the plugins before and don't know how your version system works, so you'd better make sure I put everything in the right place.
I noticed a slight difference while testing. The .osg file stores a complete path to the font file, but the .ive fails to find my font file, probably because it stores only a name and not a complete path. I don't know if this is intentional. -- Terry Welsh / mogumbo 'at' gmail.com www.reallyslick.com / www.mogumbo.com > > Message: 3 > Date: Fri, 24 Jul 2009 16:00:46 +0100 > From: Robert Osfield <[email protected]> > Subject: Re: [osg-submissions] draw filled bounding box behind > osgText::Text > To: OpenSceneGraph Submissions > <[email protected]> > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > Thanks Terry, changes now merged and submitted to svn/trunk. I > noticed you didn't extend the .osg and .ive plugins to support these > new parameters, could you please tackle this as I have a lot on my > plate to get through before my next trip, thanks. Robert. > > On Wed, Jul 22, 2009 at 10:09 PM, Terry Welsh<[email protected]> wrote: >> Okay, here are the mods I wrote for drawing a filled bounding box >> behind osgText::Text. ?I made it so the box would get drawn using >> whichever BackdropImplementation was selected. ?However, I did not >> implement STENCIL_BUFFER. ?In that case it defaults to drawing the >> bounding box using POLYGON_OFFSET instead. >> >> Also made it so the BOUNDINGBOX and FILLEDBOUNDINGBOX are drawn with a >> settable color and margin size. >> >> While I was at it I tightened up the values applied with DEPTH_RANGE >> and POLYGON_OFFSET, not just for drawing the bounding box but also for >> drawing backdrop text (these values must be coupled since the bounding >> box has to be drawn deeper in Z than the backdrop text). ?The values >> in use before seemed like overkill and I was seeing some z-clipping >> with my background scenery in the case of DEPTH_RANGE. ?If there was a >> good reason for the large values please let me know.... >> -- >> Terry Welsh ?/ ?mogumbo 'at' gmail.com >> www.reallyslick.com ?/ ?www.mogumbo.com >> >> _______________________________________________ >> osg-submissions mailing list >> [email protected] >> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org >> >>
text_io.tar.gz
Description: GNU Zip compressed data
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
