[osg-users] Calling drawImplementation manually on a osgText::Text object
Argentieri, John-P63223
John.Argentieri at gdc4s.com
Mon Aug 27 12:05:48 PDT 2007
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070827/d2ba525b/attachment.htm
More information about the osg-users
mailing list