Hi Yong,

You'll need to load the file then use a custom NodeVisitor to traverse
through the scene graph to locate all the osg::Geode leaves, then look
at all the osg::Geometry within the Geode's and get the colours from
the ColorArray attached to the osg::Geometry.  Have a look at the
NodeVisitor implementations in the OSG to see how they work.  Also
look at the examples and published books.

Robert.

On 24 January 2014 05:51, Young <[email protected]> wrote:
> Hi,
>
> I have a osgb/osgt file, and I want to get the color of each point contained 
> in this file, what should I do? I am a newcommer to osg, and any suggestion 
> is welcome.
>
> Thank you!
>
> Cheers,
> Young
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=57980#57980
>
>
>
>
>
> _______________________________________________
> 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