El Miércoles 21 Mayo 2008ES 10:29:10 Vincent Bourdier escribió: > No one have any idea on how to do it ? > I just need to get alpha value on a material on a picked node. > > Thanks, > > Regards, > Vincent. > > 2008/5/20 Vincent Bourdier <[EMAIL PROTECTED]>: > > Hi all, > > > > trying to get alpha value on a material, on a node, I use > > mat->getAmbient(osg::Material::FRONT).a() > > > > but mat depends on a picked node, and If I pick somewhere different, > > sometimes it crashes... > > > > I suppose I is a osg::material::face problem. > > > > Is there any way to get alpha value (setAlpha() exist but not getAlpha()) > > without needs to do that ? > > thanks. > > > > Regards, > > Vincent.
You have to guess why your program is crashing by looking at the stack trace. I think what it is happening is that you are trying to get a StateSet from a node that hasn't got one, so you are receiving a null pointer. _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org