[osg-users] different materials for a geometry and highlight

Gianni Ambrosio g.ambrosio+osg at gmail.com
Mon Sep 19 02:16:22 PDT 2016

Hi Sebastian,

SMesserschmidt wrote:
> I might be wrong, but I think the intersector.primitiveIndex might yield 
> the number you are looking for

thanks for the reply but unfortunately it seems to return a number from 0 to 7 that is the number of triangles in my example geometry. While the number of primitive sets is 4 in my example. But in fact I can use it at first to find the primitive set (knowing the size of each primitive set and its index). Then I have to verify if the "primitiveIndex" attribute of the same triangle changes moving that triangle from one primitive set to another.


Read this topic online here:

More information about the osg-users mailing list