Re: [osg-users] Blending and hiding/showing a triangle face of the model

2014-01-27 Thread Émeric MASCHINO
Hi Nick, Thanks for the pointers. although they are right in the book about colors being vertex attributes I think You can achieve the effect You are after by using osg::Material and adjusting the alpha and then use a proper Blending Function. Have a look at osghud example it has blended

Re: [osg-users] Blending and hiding/showing a triangle face of the model

2014-01-27 Thread Robert Osfield
HI Émeric, If you want to just change the display of a small number of selected triangles then I'd suggest using a separate osg::Geometry that contains the triangles that you want to effect. This osg::Geometry would be dynamically updated as you select different triangles. The way to get this

[osg-users] Blending and hiding/showing a triangle face of the model

2014-01-24 Thread Émeric MASCHINO
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

Re: [osg-users] Blending and hiding/showing a triangle face of the model

2014-01-24 Thread Trajce Nikolov NICK
Hi Emeric, although they are right in the book about colors being vertex attributes I think You can achieve the effect You are after by using osg::Material and adjusting the alpha and then use a proper Blending Function. Have a look at osghud example it has blended quad on top of the screen. If