As I said, just attach an osg::AlphaFunc to the subgraph in question,
it'll solve the problem.

On 8/2/06, Argentieri, John-P63223 <[EMAIL PROTECTED]> wrote:
P.P.S. The objects that I want to see behind the textured geom is in
renderbin 1, while the textured geom itself is in renderbin 2. Don't
know if this matters, but thought I'd add it hoping not to waste our
time.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Argentieri,
John-P63223
Sent: Wednesday, August 02, 2006 9:38 AM
To: osg users
Subject: RE: [osg-users] Osg::Geometry colors

Thanks Robert.

I am still having a little trouble with this. What I want to do is load
an image and programmatically force the texture to be semitransparent to
whatever degree the alpha channel is in the geometry. However, the
texture itself seems to not be effected by the alpha levels of the
geometry. What settings do I have to apply to what objects in order to
get this kind of behavior? P.S. You're the best.

Thanks,
John

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Tuesday, August 01, 2006 4:19 PM
To: osg users
Subject: Re: [osg-users] Osg::Geometry colors

On 8/1/06, Argentieri, John-P63223 <[EMAIL PROTECTED]> wrote:
> Is it possible to modify the color array once geometry becomes
> drawable of a geode and has a texture map on it? I would like to
> gradually fade some imagery mapped onto it.

Just update the colour array, but don't forget to disable display lists
via drawable->setUseDisplayLists(false) otherwise you won't see you
updates.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to