[osg-users] How does shadow technic work if geometry shaders are in use

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Mon Jun 8 13:10:15 PDT 2015


Hi Sebastian,

I am not DR expert ( I am reading now some papers though ). Marcin Hajder
or Wojtek Lewandowski for sure can answer this. Hope they will give you
some insights. Sorry :-) ..

If my learning goes well, in few months I will revisit this topic ;-)

Nick

On Mon, Jun 8, 2015 at 9:03 PM, Sebastian Messerschmidt <
sebastian.messerschmidt at gmx.de> wrote:

>
> Hi Nick,
>
> I failed to use the default Shadow-Mapping techniques in a deferred
> rendering context. I never fully understood how to "split" the shadow-map
> generation into later binding the resulting texture to my actual
> lighting/shadowmapping part.
> Any insights on this?
> Basically I've got multiple passes, one of which should create the
> shadowmap(s) and another others which need access to the resulting textures
> and states (in terms of an unifom for the matrix)
>
>
> Cheers
> Sebastian
>
> Hi Werner,
>
>  I am doing the same and using the LightSpacePerspective shadow
> techinque. In your program you have to set your vertex and fragment shaders
> as well, and it will be picked up correctly if you set the masks for
> receiving/cast shadows .... So it should work. As long as they are part of
> the top ShadowedScene
>
>  Nick
>
>
>  Nick
>
> On Fri, May 29, 2015 at 5:56 PM, Werner Modenbach <
> Werner.Modenbach at texion.eu> wrote:
>
>>  Hi all,
>>
>> My scene contains many objects, which are created by geometry shaders.
>> So no vertices are created outside the graphics card for those objects.
>> So I use
>>     state->setUseVertexAttributeAliasing(true)
>> and
>>     state->setUseModelViewAndProjectionUniforms(true)
>>
>> Is it possible using a shadow technique in this case? If I'm right the
>> shadow technique installs it's own shaders.
>>
>> Thanks for any hint.
>>
>> - Werner -
>>
>> _______________________________________________
>> osg-users mailing list
>> osg-users at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
>
>  --
> trajce nikolov nick
>
>
> _______________________________________________
> osg-users mailing listosg-users at lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 
trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150608/e935fc9a/attachment-0003.htm>


More information about the osg-users mailing list