after trying a different approach using osg::Material, I found the 
(surprisingly simple) solution (see below)
You just need to create a unique osg::Material for each PAT, add the wanted 
color and transparence. Also you should set the rendering hints to 
TRANSPARENT_BIN for correct transparence calculation.
(I think that's it)

Best regards
Hartmut


osg::ref_ptr<osg::Geometry> geom;
...
geom->getOrCreateStateSet()->setRenderingHint(osg::StateSet::TRANSPARENT_BIN);
...
osg::ref_ptr<osg::Material> myMat1 = new osg::Material;
myMat1->setDiffuse(osg::Material::FRONT,osg::Vec4(1,0,0,0.3));
myPat1->getOrCreateStateSet()->setAttribute(myMat1.get());
-- 
frag nicht - du könntest eine antwort erhalten

Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to