Re: [osg-users] Shader Program on Slave Camera

2008-04-23 Thread Mark Sciabica
Hi Steven, You're using the logical or operator "||" rather than bitwise or "|". If any parents of the camera are using the OVERRIDE flag on a shader, this can cause the problem you describe. Mark Steven Powers wrote: > Let me know if you need more code than this. I can throw together a full

Re: [osg-users] Shader Program on Slave Camera

2008-04-22 Thread Steven Powers
Let me know if you need more code than this. I can throw together a full executable if it is needed. So far I've added a camera as a slave camera to the viewer. I have no problems doing that. viewer->addSlave(_camera); Then when I add a shader to the slave camera: osg::ref_ptr ss = _c

Re: [osg-users] Shader Program on Slave Camera

2008-04-22 Thread Robert Osfield
Hi Steven, On Tue, Apr 22, 2008 at 2:25 PM, Steven Powers <[EMAIL PROTECTED]> wrote: > When I try to set a shader program on a slave camera through a state set it > doesn't seem to work. > > I've tried removing the camera as a slave, adding the state set, then adding > the camera as a slave to the

[osg-users] Shader Program on Slave Camera

2008-04-22 Thread Steven Powers
When I try to set a shader program on a slave camera through a state set it doesn't seem to work. I've tried removing the camera as a slave, adding the state set, then adding the camera as a slave to the viewer again. Is there a fix for this or should I try a different technique to apply a shad