Re: [osg-users] Creating an 'outline' effect in osgText?
Hi Preet, On 23 March 2012 03:28, Preet prismatic.proj...@gmail.com wrote: I have a general follow up question about osgText. I'd like to draw the text along a path. I thought a good way to do this would have been to rotate the text character by character. So I'd create an osgText object for each character of text, and position/align them along the path... but this doesn't seem to preserve spacing between characters (this is expected, but I don't really know how to get around it), and the space character itself ( ) as an individual osgText object seems to have a width of zero (calculated with osg::Drawable::getBound()). osgText currently only supports positioning of text along a straight line. There is an experimental TextNode replacement for osgText the is written to allow one to customize the placement of each individual glyph so this would probably be the best bet for you to look at. Have a look for Jeremy Moles TextNode submission in the osg-submissions archive. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Creating an 'outline' effect in osgText?
Robert Osfield writes: Hi Preet, On 23 March 2012 03:28, Preet prismatic.proj...@gmail.com wrote: I have a general follow up question about osgText. I'd like to draw the text along a path. I thought a good way to do this would have been to rotate the text character by character. So I'd create an osgText object for each character of text, and position/align them along the path... but this doesn't seem to preserve spacing between characters (this is expected, but I don't really know how to get around it), and the space character itself ( ) as an individual osgText object seems to have a width of zero (calculated with osg::Drawable::getBound()). osgText currently only supports positioning of text along a straight line. There is an experimental TextNode replacement for osgText the is written to allow one to customize the placement of each individual glyph so this would probably be the best bet for you to look at. Have a look for Jeremy Moles TextNode submission in the osg-submissions archive. If it helps, it is called osgPango (http://code.google.com/p/osgpango/). -- Alberto ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Creating an 'outline' effect in osgText?
On 23 March 2012 09:27, Alberto Luaces alua...@udc.es wrote: If it helps, it is called osgPango (http://code.google.com/p/osgpango/). osgPango is not osgText::TextNode I was referring too, rather it's a separate NodeKit for advance text rendering but come with extra external depdencies. The TextNode implementation is something I original route the basics for, then Jeremy enhanced it to complete far more of it's functionality. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Creating an 'outline' effect in osgText?
Hey all, I'm trying to create an outline effect with osgText. Here's an example of what I'm trying to accomplish: http://gimpology.com/uploads/3_8_8.png How can I get a similar effect? Regards, Preet ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Creating an 'outline' effect in osgText?
Preet, Take a look at the osgtext example. There's a setBackdropType() member function of osgText::Text that you can call to set a backdrop type of osgText::Text::OUTLINE. You can specify the color of the outline using the member function setBackdropColor. Brandon Hamm -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Preet Sent: Thursday, March 22, 2012 4:44 PM To: OpenSceneGraph Users Subject: [osg-users] Creating an 'outline' effect in osgText? Hey all, I'm trying to create an outline effect with osgText. Here's an example of what I'm trying to accomplish: http://gimpology.com/uploads/3_8_8.png How can I get a similar effect? Regards, Preet ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Creating an 'outline' effect in osgText?
Hey, On Thu, Mar 22, 2012 at 7:03 PM, Hamm, Brandon brandon.h...@qinetiq-na.com wrote: Preet, Take a look at the osgtext example. There's a setBackdropType() member function of osgText::Text that you can call to set a backdrop type of osgText::Text::OUTLINE. You can specify the color of the outline using the member function setBackdropColor. Thanks. This seems to be exactly what I'm looking for. Brandon Hamm I have a general follow up question about osgText. I'd like to draw the text along a path. I thought a good way to do this would have been to rotate the text character by character. So I'd create an osgText object for each character of text, and position/align them along the path... but this doesn't seem to preserve spacing between characters (this is expected, but I don't really know how to get around it), and the space character itself ( ) as an individual osgText object seems to have a width of zero (calculated with osg::Drawable::getBound()). * Is the approach I'm taking a 'good' one? If not, what would be a better methodology? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org