Re: [osg-users] get Alpha on material

2008-05-21 Thread Vincent Bourdier
Hi Alberto.

I've identified the bug and solved it...(getting material problem)
The problem still here is not the same now and it not depends on OSG.
Thanks for help, and sorry for the inconvenience.

Gracias ;-)

Vincent.

2008/5/21 Alberto Luaces <[EMAIL PROTECTED]>:

> 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
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] get Alpha on material

2008-05-21 Thread Alberto Luaces
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


Re: [osg-users] get Alpha on material

2008-05-21 Thread Vincent Bourdier
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.
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] get Alpha on material

2008-05-20 Thread Vincent Bourdier
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.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org