[osg-users] Calling drawImplementation manually on a osgText::Text object
Robert Osfield
robert.osfield at gmail.com
Mon Aug 27 12:32:44 PDT 2007
Hi John,
The closest code to what you are trying to achieve can be found in the
osgProducer projects src/osgProducer/ViewerEventHandler.cpp where is
sets up the and renders the stats and help.
In 2.x and osgViewer's stats and help I just go ahead and use a full
blown scene graph as it makes more things just more straight forward.
Robert.
On 8/27/07, Argentieri, John-P63223 <John.Argentieri at gdc4s.com> wrote:
>
>
>
> Hello all, and long time no see!
>
> I am trying to create an osgText::Text object and call drawImplementation on
> it manually. I think it is almost working. Here is how I am setting up the
> RenderInfo that I am passing in:
>
> spState = new osg::State();
> spViewState =
> spSceneView->getRenderInfo().getState();
> if( spViewState.valid() )
> {
> spState->setGraphicsContext(
> spViewState->getGraphicsContext() );
> spState->setContextID( spViewState->getContextID() );
> }
> renderInfo = osg::RenderInfo( spState.get(), spSceneView->getView()
> );
>
> The problem is, that the textures are being lost. Can anyone help me to
> accomplish this without adding the osgText::Text to the sceneview's scene
> data?
>
>
> Much appreciated!
> John
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
More information about the osg-users
mailing list