[osg-users] Get RGB Values from Textrue

Maxim Stere osgforum at tevs.eu
Tue Nov 7 07:56:09 PST 2017


I have a osg::Texture2D that I'm using as a render to texture target. 
I can see that it is working on the screen, but I need to have access to the RGB values of the texture itself so I can also copy them to another API. 

How can I access the RGB values?

After rendering a frame, if I access _image in the texture2D class, it is null, but I do see that the Texture of texture2D has an array size of 1. 
How and where are the RGB values stored?

Thank you!


Thank you,

Read this topic online here:

More information about the osg-users mailing list