Hi Cody,

I'm a bit confused about what you might be trying to do.  Could you take a
step back and try to explain what you are trying to do at a higher level,
then others should be better able to suggest how to tackle this type of
task.

Cheers,
Robert.

On 13 July 2013 22:10, Cody Hanika <[email protected]> wrote:

> Hello everyone,
>
> I am trying to load an OpenGL texture into an osg::Image. I know the
> OpenGL textureId and I have attempted using both
> Image::readImageFromCurrentTexture after using glBindTexture() in a
> Drawable subclass as well as manually using glGetTex* calls to retrieve
> information about the texture from the texId and then using
> Image::setImage.  I am doing all of this in a Drawable subclass and then
> returning the image to a class that draws a Geometry quad. I am calling
> Image::dirty() and have the dataVariance as DYNAMIC.
>
> I am just getting the previosuly bound texture mapped to the quad. I have
> just loaded a random texture using osgDB::readImageFile and that works so I
> know I am mapping the texture correctly.
>
> Any idea if I am trying to set the osg::Image data incorrectly or if I am
> missing something that I need to do?
>
> Thanks!
>
> Cody
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to