[osg-users] Get all vertices of an OSG Group

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Thu Mar 31 07:24:32 PDT 2016

Hi Clement,
> Hi,
> After few tries on different files, I think osg::Material are not what I am looking for since I have for example, for each drawable, ~900 vertices (with different colors each) and only 1 material (which can return only 1 osg::Vec4 of RGBA).
Can you give us an example file? Somehow the last sentence doesn't make 
much sense.
> I tried to convert .osgb file into .osg to see where I can get it. It seems that  a .jpg file is painted on my cloud.
> Is there any way to know the colors that this texture painted has on each vertices ?
If your geometry is textured, it might not have any material or vertex 
colors assigned. In this case it is not simple to "get the colors", 
because you will effectively end up duplicating the state structure and 
What exactly are you trying to achieve?


> ...
> Thank you!
> Cheers,
> Clement
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=66689#66689
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list