On 6 June 2012 15:57, John Kaniarz <[email protected]> wrote:
> It captured a texture, but not the texture I was looking for.
>
>
> Code:
> osg::State * state=renderInfo.getState();
> state->applyAttribute(texture);
> osg::Image *image=new Image();
> image->readImageFromCurrentTexture(renderInfo.getContextID(),false,GL_UNSIGNED_BYTE);
> osgDB::writeImageFile(*image,"snap.png");
>
>
>
> I'm guessing I'm either using the wrong context ID, or that I'm not applying 
> the texture in the right way.
>

I'm afraid I have tried specifically what you are trying before so
can't help debug it.  Perhaps others will have done something similar
and be able to help.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to