Re: [osg-users] using a shader to render vpb terrains

2010-05-21 Thread Jean-Sébastien Guay
maybe StateAttribute::OVERRIDE|StateAttribute::ON Yes, I think it's the 3rd person in the last month who assumes OVERRIDE includes ON... But that wouldn't be flexible enough, because then you wouldn't be able to override something OFF... J-S --

[osg-users] using a shader to render vpb terrains

2010-05-20 Thread Alex Andel
Hi, I was wondering if there is a way to use a shader to render a VPB created terrain. I need to perform some per pixel effects and post processing on the terrain texture and have full control of the the terrain rendering pipeline. . Thank you! Cheers, neshume -- Read this

Re: [osg-users] using a shader to render vpb terrains

2010-05-20 Thread Robert Osfield
Hi Neshume, On Tue, May 18, 2010 at 10:50 PM, Alex Andel nesh...@gmail.com wrote: I was wondering if there is a way to use a shader to render a VPB created terrain. I need to perform some per pixel effects and post processing on the terrain texture and have full control of the the terrain

Re: [osg-users] using a shader to render vpb terrains

2010-05-20 Thread Alex Andel
Hi, I have tried that with no success... pseudo: node = readNodeFile stateSet = new StateSet stateset-setAttribute(_terrainShader,StateAttribute::OVERRIDE); group = new group group-addChild(node) group-setStateSet(stateSet)... _rootOfScene - addChild(group) and still the terrain node ...

Re: [osg-users] using a shader to render vpb terrains

2010-05-20 Thread Trajce (Nick) Nikolov
maybe StateAttribute::OVERRIDE|StateAttribute::ON -Nick On Fri, May 21, 2010 at 12:36 AM, Alex Andel nesh...@gmail.com wrote: Hi, I have tried that with no success... pseudo: node = readNodeFile stateSet = new StateSet stateset-setAttribute(_terrainShader,StateAttribute::OVERRIDE);