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

Clement Begotto c.begotto at laposte.net
Tue Mar 29 14:46:26 PDT 2016


Hello,

Thank you for your quick answers, it was really helpful.

I defined a new visitor inherited from NodeVisitor and I have access to the vertices. But I also need to get the colors of this vertices.

I tried to get colors in an osg::Vec4Array with getColorArray() but it doesn't work on every .osgb file. For example I can get these colors in the cow.osgb file. However, I get a nullptr when I tried the same with a .ogsb file converted from .obj file even if it is textured.

Do you know how I can get colors displayed on these vertices in that case ?

... 

Thank you!

Cheers,
Clement

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








More information about the osg-users mailing list