[osg-users] map text to geometry

2010-09-28 Thread Katja Oechsner

 Hi,

I want to map a osgText to a geometry, for example a sphere. My idea was 
to get a texture out of osgText and map the texture to a geometry. Is 
there a better way to do this? And how do I get a texture out of osgText?


thanks in advance
Katja

--
VISUAL ENGINEERING SOLUTIONS - Wir machen Innovation sichtbar!

_
Katja Kristin Oechsner  |  VISENSO GmbH  | Nobelstr. 15 | D-70569 Stuttgart

Fon Office   ++ 49 - 711 - 849 700 0
Fon Direct   ++ 49 - 711 - 849 700 24
Fax Office   ++ 49 - 711 - 849 700 79

k...@visenso.de | http://www.visenso.de
__
Geschäftsführer: Dr. Andreas Wierse, Martin Zimmermann
Registergericht: Amtsgericht Stuttgart
Registernummer: HRB 720380

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


Re: [osg-users] map text to geometry

2010-09-28 Thread Robert Osfield
Hi Katja,

osgText uses a texture atlas to store it's glyphs and separate quads
to pull out the correct part of the texture atlas to get individual
text characters, this makes it impossible to just pull the text
texture directly and apply it to an ordinary geometry as the texture
coordinates would be all over the place.

All is not lost though, the OSG supports render to texture, so it
would be possible for you to render a text subgraph and any other
geometry you want to a texture and then apply this texture to your
geometry.  The OSG provides an osgSim::OverlayNode to help make this
task even more straight forward as it will manage the render to
texture setup for you.  See osgsimulation exampe for an example of it
in action.

Robert.

On Tue, Sep 28, 2010 at 11:47 AM, Katja Oechsner k...@visenso.de wrote:
  Hi,

 I want to map a osgText to a geometry, for example a sphere. My idea was to
 get a texture out of osgText and map the texture to a geometry. Is there a
 better way to do this? And how do I get a texture out of osgText?

 thanks in advance
 Katja

 --
 VISUAL ENGINEERING SOLUTIONS - Wir machen Innovation sichtbar!

 _
 Katja Kristin Oechsner  |  VISENSO GmbH  | Nobelstr. 15 | D-70569 Stuttgart

 Fon Office           ++ 49 - 711 - 849 700 0
 Fon Direct           ++ 49 - 711 - 849 700 24
 Fax Office           ++ 49 - 711 - 849 700 79

 k...@visenso.de | http://www.visenso.de
 __
 Geschäftsführer: Dr. Andreas Wierse, Martin Zimmermann
 Registergericht: Amtsgericht Stuttgart
 Registernummer: HRB 720380

 ___
 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