Hi,

In the OpenSceneGraph 3 Cookbook is explained how to highlight the
selected triangle face of a model.
This is performed by creating a new triangle Geode that overlaps the
selected triangle face.
As outlined in the book: "Maybe you are still looking for a way to
change the face's color to highlight it. Unfortunately it is
impossible to modify the face color in OpenGL because color is in fact
a vertex attribute. Shaders may help represent a specified face with a
different color or transparency, but it seems to make a mountain out
of a molehill in this recipe."
Now, this is what I'm looking for, so I need to make this mountain in
order to display the selected triangle face as a transparent surface.
Are there any pointers on how to achieve this with a shader as
anticipated in the book? Or is there yet another solution?
Rather than blending the selected triangle face, suppose that I want
to hide/show it, would I use the same technique than for blending it
or not?

Thanks,

     Émeric
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to