[osg-users] Trouble placing CEGUI in scene graph

2013-07-31 Thread Cody Hanika
Hi, I am currently trying to map a CEGUI created GUI texture to a quad in osg. I am getting the CEGUI openGL texture Id from cegui and then trying to load that into an osg::Image and then map that as a texture onto a quad. I am just getting a solid color mapped onto the quad (it happens to

Re: [osg-users] Trouble loading an OpenGL texture into an osg::Image

2013-07-18 Thread Cody Hanika
, Robert. On 13 July 2013 22:10, Cody Hanika chan...@iastate.edu 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

Re: [osg-users] Trouble loading an OpenGL texture into an osg::Image

2013-07-18 Thread Cody Hanika
I just figured out my problem that I was having. I had a small bug in my code that was preventing the Drawable from updating its image data. Using glBindTexture and then using osg::Image::readImageFromCurrentTexture worked out for me. Thanks, Cody On Thu, Jul 18, 2013 at 7:19 PM, Cody Hanika

[osg-users] Trouble loading an OpenGL texture into an osg::Image

2013-07-13 Thread Cody Hanika
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