Re: [osg-users] Shadows and osgRecipe

2016-02-25 Thread michael kapelko
Hi.
Unfortunately, no. If it becomes the bottleneck, I'll definitely have a
look at it. But for now it works fine.

2016-02-25 23:34 GMT+07:00 Sebastian Messerschmidt <
sebastian.messerschm...@gmx.de>:

>
> Hi Michael,
>
> Unfortunately this will render the geometry three times.
> First shadow map depth pass, Second to create the screenspace shadow
> texture and for the RTT again.
> Any idea how to prevent the second pass and move it to some later stage?
>
> Cheers
> Sebastian
>
> Hi.
> I have the sample that worked just fine:
> https://bitbucket.org/kornerr/osg-deferred-shading
>
> 2016-02-25 2:00 GMT+07:00 Anders Backman :
>
>> Hi all.
>>
>> Has anyone tested the EffectCompositor together with osgShadows?
>>
>> My problem is, that as soon as I add a shadowed scene as a child of an
>> EffectCompositor, the shadows becomes all wrong.
>> It looks like the shadow light sources follows the camera, sort of.
>>
>> The attached effect (asd.xml) is just a pass-through effect.
>>
>> Other than this, is there any other good way of defining post-render
>> effects in OSG these days?
>> osgPPU seems to have fallen into sleep, and I cannot see any other good
>> way of constructing this.
>> The EffectCompositor really looks great. But...shadows does not work.
>>
>> Anyone with insight into this?
>>
>>
>> /A
>> --
>> __
>> Anders Backman, HPC2N
>> 90187 Umeå University, Sweden
>> and...@cs.umu.se http://www.hpc2n.umu.se
>> Cell: +46-70-392 64 67
>>
>>
>> ___
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
>
> ___
> osg-users mailing 
> listosg-users@lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Shadows and osgRecipe

2016-02-25 Thread Sebastian Messerschmidt


Hi Michael,

Unfortunately this will render the geometry three times.
First shadow map depth pass, Second to create the screenspace shadow 
texture and for the RTT again.

Any idea how to prevent the second pass and move it to some later stage?

Cheers
Sebastian

Hi.
I have the sample that worked just fine: 
https://bitbucket.org/kornerr/osg-deferred-shading


2016-02-25 2:00 GMT+07:00 Anders Backman >:


Hi all.

Has anyone tested the EffectCompositor together with osgShadows?

My problem is, that as soon as I add a shadowed scene as a child
of an EffectCompositor, the shadows becomes all wrong.
It looks like the shadow light sources follows the camera, sort of.

The attached effect (asd.xml) is just a pass-through effect.

Other than this, is there any other good way of defining
post-render effects in OSG these days?
osgPPU seems to have fallen into sleep, and I cannot see any other
good way of constructing this.
The EffectCompositor really looks great. But...shadows does not work.

Anyone with insight into this?


/A
-- 
__

Anders Backman, HPC2N
90187 Umeå University, Sweden
and...@cs.umu.se  http://www.hpc2n.umu.se

Cell: +46-70-392 64 67


___
osg-users mailing list
osg-users@lists.openscenegraph.org

http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Shadows and osgRecipe

2016-02-25 Thread Anders Backman
Well you are using a custom shader for the shadows and not the one used
internally in osg. Sothere might still be an issue with the combination
of EffectCompositor and OsgShadow.

/Anders
On Thursday, 25 February 2016, michael kapelko  wrote:

> Hi.
> I have the sample that worked just fine:
> https://bitbucket.org/kornerr/osg-deferred-shading
>
> 2016-02-25 2:00 GMT+07:00 Anders Backman  >:
>
>> Hi all.
>>
>> Has anyone tested the EffectCompositor together with osgShadows?
>>
>> My problem is, that as soon as I add a shadowed scene as a child of an
>> EffectCompositor, the shadows becomes all wrong.
>> It looks like the shadow light sources follows the camera, sort of.
>>
>> The attached effect (asd.xml) is just a pass-through effect.
>>
>> Other than this, is there any other good way of defining post-render
>> effects in OSG these days?
>> osgPPU seems to have fallen into sleep, and I cannot see any other good
>> way of constructing this.
>> The EffectCompositor really looks great. But...shadows does not work.
>>
>> Anyone with insight into this?
>>
>>
>> /A
>> --
>> __
>> Anders Backman, HPC2N
>> 90187 Umeå University, Sweden
>> and...@cs.umu.se 
>> http://www.hpc2n.umu.se
>> Cell: +46-70-392 64 67
>>
>>
>> ___
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> 
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>

-- 
__
Anders Backman, HPC2N
90187 Umeå University, Sweden
and...@cs.umu.se http://www.hpc2n.umu.se
Cell: +46-70-392 64 67
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Shadows and osgRecipe

2016-02-24 Thread michael kapelko
Hi.
I have the sample that worked just fine:
https://bitbucket.org/kornerr/osg-deferred-shading

2016-02-25 2:00 GMT+07:00 Anders Backman :

> Hi all.
>
> Has anyone tested the EffectCompositor together with osgShadows?
>
> My problem is, that as soon as I add a shadowed scene as a child of an
> EffectCompositor, the shadows becomes all wrong.
> It looks like the shadow light sources follows the camera, sort of.
>
> The attached effect (asd.xml) is just a pass-through effect.
>
> Other than this, is there any other good way of defining post-render
> effects in OSG these days?
> osgPPU seems to have fallen into sleep, and I cannot see any other good
> way of constructing this.
> The EffectCompositor really looks great. But...shadows does not work.
>
> Anyone with insight into this?
>
>
> /A
> --
> __
> Anders Backman, HPC2N
> 90187 Umeå University, Sweden
> and...@cs.umu.se http://www.hpc2n.umu.se
> Cell: +46-70-392 64 67
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org