Re: [osg-users] Transparency on geode and shared stateSet

2009-06-09 Thread Andrew Cunningham
Jason Daly wrote: > Andrew Cunningham wrote: > > > Adjusting the material color alpha will work for some geometries but I have > > other geometries where each vertex has a BIND_PER_VERTEX color ( think of > > a contour plot of a value), so I would still need to adjust the alpha of > > each ve

Re: [osg-users] Transparency on geode and shared stateSet

2009-06-09 Thread Vincent Bourdier
Hi Jean Sebastien, Thanks for the advice, I forgot the stateSet of the drawables ! Not sure this will be the solution, but it can helps a lot. Thanks everyone for your help. Regards, Vincent. 2009/6/9 Jean-Sébastien Guay > Hi Vincent, > > I'm the original poster, and the problem I had is

Re: [osg-users] Transparency on geode and shared stateSet

2009-06-09 Thread Jean-Sébastien Guay
Hi Vincent, I'm the original poster, and the problem I had is that I cannot use a material, because it will modify the state set, that is common for a lot of other geodes... You can clone the stateset and then each geode will have a unique one which you can modify. Or you can put the trans

Re: [osg-users] Transparency on geode and shared stateSet

2009-06-09 Thread Robert Osfield
Hi Vincent, On Tue, Jun 9, 2009 at 10:39 AM, Vincent Bourdier wrote: > Shader can be a solution, but a shader is a part of the StateSet, and i'm > looking at the best way to avoid using them. > But i'll keep that in mind. StateSet's control state in the OSG, you can't not use them, there isn't a

Re: [osg-users] Transparency on geode and shared stateSet

2009-06-09 Thread Vincent Bourdier
Hi Paul, Shader can be a solution, but a shader is a part of the StateSet, and i'm looking at the best way to avoid using them. But i'll keep that in mind. Thanks. Regards, Vincent. 2009/6/9 Paul Speed > You could implement the full fixed function pipeline (the parts you need) > in a custo

Re: [osg-users] Transparency on geode and shared stateSet

2009-06-09 Thread Paul Speed
You could implement the full fixed function pipeline (the parts you need) in a custom shader with the addition of manually controlling transparency based on a uniform. Actually, a fragment shader may be all you need... which is probably a lot easier than a fixed function pixel shader. I've b

Re: [osg-users] Transparency on geode and shared stateSet

2009-06-09 Thread Vincent Bourdier
Hi Robert, I am aware of the mess this is to implement... but I need it, and I cannot create my scene graph appropriately because it it generated by some exporter (osgExp) so I have to work with graphs I cannot control. I just was asking if there is an other solution I didn't tried, but I see the

Re: [osg-users] Transparency on geode and shared stateSet

2009-06-09 Thread Robert Osfield
Hi Vincent, On Tue, Jun 9, 2009 at 7:17 AM, Vincent Bourdier wrote: > Can't it be interesting for OSG to have a setTransparency() method on a node > ? using material or something else, but working in each case... The OSG's state handling is done with StateSet, you can multiple parent paths to all

Re: [osg-users] Transparency on geode and shared stateSet

2009-06-08 Thread Vincent Bourdier
Hi, I'm the original poster, and the problem I had is that I cannot use a material, because it will modify the state set, that is common for a lot of other geodes... But thanks for the answers, maybe i'll have some kind of revelation with your help. Can't it be interesting for OSG to have a setT

Re: [osg-users] Transparency on geode and shared stateSet

2009-06-08 Thread Jason Daly
Andrew Cunningham wrote: Adjusting the material color alpha will work for some geometries but I have other geometries where each vertex has a BIND_PER_VERTEX color ( think of a contour plot of a value), so I would still need to adjust the alpha of each vertex color. Actually you don't (u

Re: [osg-users] Transparency on geode and shared stateSet

2009-06-08 Thread Andrew Cunningham
Adjusting the material color alpha will work for some geometries but I have other geometries where each vertex has a BIND_PER_VERTEX color ( think of a contour plot of a value), so I would still need to adjust the alpha of each vertex color. -- Read this topic online here: http

Re: [osg-users] Transparency on geode and shared stateSet

2009-06-08 Thread Jason Daly
Andrew Cunningham wrote: I am struggling with the same/similar issue. I want to set the transparency level dynamically ( the user has a slider) of a "group" in my scene. My understanding is that apart from setting the state GL_BLEND etc it is required to traverse/visit all of the nodes of the su

Re: [osg-users] Transparency on geode and shared stateSet

2009-06-08 Thread Andrew Cunningham
I am struggling with the same/similar issue. I want to set the transparency level dynamically ( the user has a slider) of a "group" in my scene. My understanding is that apart from setting the state GL_BLEND etc it is required to traverse/visit all of the nodes of the sub-graph setting the alp

Re: [osg-users] Transparency on geode and shared stateSet

2009-06-04 Thread Vincent Bourdier
Hi, I do a little UP of my question ... Thanks :-) Regards, Vincent. 2009/6/3 Vincent Bourdier > Hi all, > > I'm looking at a way to set some geodes with transparency level. > > This is the problem : these geodes share a stateSet with a lot of other > geodes, so I cannot just set transparen

[osg-users] Transparency on geode and shared stateSet

2009-06-03 Thread Vincent Bourdier
Hi all, I'm looking at a way to set some geodes with transparency level. This is the problem : these geodes share a stateSet with a lot of other geodes, so I cannot just set transparency on it... The only way I know to change the opacity on a geode is to set the StateSet with GL_Blend and chang