[osg-users] How can I get pixels 3D coordinates and RGB values from a geode ?

Alberto Luaces aluaces at udc.es
Wed Apr 12 07:49:08 PDT 2017


"Yrieix Leprince" writes:

> Hi,
>
> I am working on a osg::Geode (constructed from .osgb files), and I
> would like to have all the 3D coordinates of each pixels (x,y,z), and
> also the Red Green Blue values. At the end I need to have a 3D point
> cloud with RGB values as properties.
>
> I have tried many ways to answer this need, but no one is working... Does anyone have encountered the same issue ?

Hi Yrieix, a good start would be the osgpick example, since it teaches
you how to use the intersection system.  You would have to sample your
object and cast one intersection per pixel.

-- 
Alberto




More information about the osg-users mailing list