Re: [osg-users] problem with material alpha

2012-10-16 Thread Antonio De Giorgio
Ok, this is what exactly i want to know...now i try to solve this problem..thank you very much Thank you! Cheers, Antonio -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=50625#50625 ___ osg-users

Re: [osg-users] problem with material alpha

2012-10-15 Thread Shayne Tueller
Hi, It's unclear what exactly you're attempting to do or what it means when you say it doesn't work for some models. I can only venture a guess as to what the problem is. I'm assuming you're trying to change the transparency of the object? For the models in question, cow.osg already has

Re: [osg-users] problem with material alpha

2012-10-13 Thread Antonio De Giorgio
Hi, Thank you very much!!! How could i check it? And do you know any alternative methods to do What i want? Thank you! Cheers, Antonio -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=50592#50592

[osg-users] problem with material alpha

2012-10-12 Thread Antonio De Giorgio
Hi, I'm trying to update trasparency of a matrix transform in un update callback, using osg::stateSet and osg::Material. Here is the code: osg::MatrixTransform* transf = (osg::MatrixTransform*) node;

Re: [osg-users] problem with material alpha

2012-10-12 Thread Shayne Tueller
Hi, Materials (and material alpha) only get used when lighting is enabled. Make sure that lighting is enabled in the applicable stateset... -Shayne -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=50590#50590