Re: [osg-users] Advice on Shader usage and osgShadow

2010-12-10 Thread Jean-Sébastien Guay
Hi Werner, If I understand right whatever ShadowTechnique is used the result when reaching my scenes "user root node" (child of ShadowScene) there will be the shadow texture which I can use in always the same way. Since the shader code of StandardShadowMap seems to be very complete I could cut a

Re: [osg-users] Advice on Shader usage and osgShadow

2010-12-10 Thread Werner Modenbach
Hi J-S, Thank you very much! This was an excellent overview. GREAT !!! Just one little last question: If I understand right whatever ShadowTechnique is used the result when reaching my scenes "user root node" (child of ShadowScene) there will be the shadow texture which I can use in always the

Re: [osg-users] Advice on Shader usage and osgShadow

2010-12-10 Thread Jean-Sébastien Guay
Hi Werner, I'm a little confused now. How are things workingh together? I have a ShadowScene and set the ShaderTechnique with my own class derived from SoftShadowMap. I wrote virtual methods for createShaders and createUniforms for support of my shaders. ShaderTechnique is having its shaders and

Re: [osg-users] Advice on Shader usage and osgShadow

2010-12-10 Thread Werner Modenbach
Hi! Hmmm... I haven't looked at "ViewDependentShadow" so far. I'm a little confused now. How are things workingh together? I have a ShadowScene and set the ShaderTechnique with my own class derived from SoftShadowMap. I wrote virtual methods for createShaders and createUniforms for support of my

Re: [osg-users] Advice on Shader usage and osgShadow

2010-12-09 Thread Jean-Sébastien Guay
Hello Werner, Actually I'd like to be more flexible in the use of the ShaderTechnic and I ask myself if it is possible to use the standard ShadowTechnics and attach my Shaders to my user scene child somehow. There is no problem with this, we do it ourselves. The only thing to be aware of is t

[osg-users] Advice on Shader usage and osgShadow

2010-12-09 Thread Werner Modenbach
Hi all, I'm a little confudsed about where to use my own GLSL shaders in a sceene with osgShadow. My scene has osgShadow as it's root and my user scene as a child. My scene needs it's own shaders. Until now I derived my own ShadowTechnic class from osgShadowTechnic overwriting the default shade