[osg-users] Get RGB Values from Textrue

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


Hi,

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!

Maxim

------------------------
Thank you,
--Maxim

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72322#72322







More information about the osg-users mailing list