Re: [osg-users] osgShadow one shot shadow map

2008-02-14 Thread Wojciech Lewandowski
Hi J-S, Thank you Wojtek, I'll check that out! I'm really very grateful to you for contributing this. I've been banging my head on this and we're still on OSG 2.2 here so I didn't think of going to see in the new additions if there was something that would help me out. You're welcome. I

Re: [osg-users] osgShadow one shot shadow map

2008-02-13 Thread Wojciech Lewandowski
Hi J-S, This is the part I'm having trouble with. I actually don't mind using the scene bound I get with the ComputeBoundingBoxVisitor, but getting a usable camera frustum (both for main and light cameras) and then intersecting those is the hard part for me. Any tips there? How do you create the

Re: [osg-users] osgShadow one shot shadow map

2008-02-13 Thread Jean-Sébastien Guay
Hello Wojtek, And thats it. Thank you Robert ! Thank you Wojtek, I'll check that out! I'm really very grateful to you for contributing this. I've been banging my head on this and we're still on OSG 2.2 here so I didn't think of going to see in the new additions if there was something that

Re: [osg-users] osgShadow one shot shadow map

2008-02-12 Thread Sebastian Messerschmidt
PROTECTED] To: OpenSceneGraph Users osg-users@lists.openscenegraph.org Sent: Monday, February 11, 2008 4:20 PM Subject: Re: [osg-users] osgShadow one shot shadow map Hello Sebastian, I'm quite confused regarding the osgShadow implementation. My scene and my light-positions are static

Re: [osg-users] osgShadow one shot shadow map

2008-02-12 Thread Wojciech Lewandowski
to submit it around the end of March. Wojtek - Original Message - From: Adrian Egli OpenSceneGraph (3D) To: [EMAIL PROTECTED] ; OpenSceneGraph Users Sent: Tuesday, February 12, 2008 8:40 AM Subject: Re: [osg-users] osgShadow one shot shadow map Hi will this implementation

Re: [osg-users] osgShadow one shot shadow map

2008-02-12 Thread Jean-Sébastien Guay
Hello Wojtek, then I compute intersection of this convex scene hull with main camera frustum and coarse light (shadow) camera frustum. This produces my minimal scene bound polytope which I then use to further narrow shadow camera projection. This is the part I'm having trouble with. I

Re: [osg-users] osgShadow one shot shadow map

2008-02-12 Thread Wojciech Lewandowski
;-). Cheers, Wojtek - Original Message - From: Jean-Sébastien Guay [EMAIL PROTECTED] To: [EMAIL PROTECTED]; OpenSceneGraph Users osg-users@lists.openscenegraph.org Sent: Tuesday, February 12, 2008 2:54 PM Subject: Re: [osg-users] osgShadow one shot shadow map Hello Wojtek, Actually most

Re: [osg-users] osgShadow one shot shadow map

2008-02-12 Thread Jean-Sébastien Guay
Hello Wojtek, Actually most of the time was spent on algorithms finding minimal shadowed scene bounds under OSG. It was a key to good shadow mapping results. Well, that's what I'm working on right now too! If you are planning on contributing this sometime, would it be possible for you to

Re: [osg-users] osgShadow one shot shadow map

2008-02-11 Thread Jean-Sébastien Guay
Hello Sebastian, I'm quite confused regarding the osgShadow implementation. My scene and my light-positions are static. My idea was to capture the shadow-map only once and apply it consecutively in all frames. I'm a bit lost where to start. Neither update nor cull seems to be the right

Re: [osg-users] osgShadow one shot shadow map

2008-02-11 Thread Wojciech Lewandowski
- From: Jean-Sébastien Guay [mailto:[EMAIL PROTECTED] Sent: Monday, February 11, 2008 9:29 PM To: [EMAIL PROTECTED]; OpenSceneGraph Users Subject: Re: [osg-users] osgShadow one shot shadow map Hello Wojtek, I have spent couple months banging my head against the wall, implementing perspective shadow

Re: [osg-users] osgShadow one shot shadow map

2008-02-11 Thread Jean-Sébastien Guay
Hello Wojtek, I have spent couple months banging my head against the wall, implementing perspective shadow mapping algortihms and that is the only rason I know how osgShadow::ShadowMap works ;-). Hehehe, I suspect I am on the same road, so only a few months to go if your assessment is

Re: [osg-users] osgShadow one shot shadow map

2008-02-11 Thread Adrian Egli OpenSceneGraph (3D)
: [osg-users] osgShadow one shot shadow map Hello Wojtek, I have spent couple months banging my head against the wall, implementing perspective shadow mapping algortihms and that is the only rason I know how osgShadow::ShadowMap works ;-). Hehehe, I suspect I am on the same road, so

Re: [osg-users] osgShadow one shot shadow map

2008-02-11 Thread Jean-Sébastien Guay
Hello Wojtek, ShadowMap::cull invokes culls traversal for both main camera (ShadowReceiving) graph shadow camera (ShadowCasting) graphs. So if you block whole cull on ShadowMap level - it won't draw the scene as well. The trick is to block only the portion that culls ShadowCasting graph.

Re: [osg-users] osgShadow one shot shadow map

2008-02-11 Thread Wojciech Lewandowski
- Original Message - From: Jean-Sébastien Guay [EMAIL PROTECTED] To: OpenSceneGraph Users osg-users@lists.openscenegraph.org Sent: Monday, February 11, 2008 4:20 PM Subject: Re: [osg-users] osgShadow one shot shadow map Hello Sebastian, I'm quite confused regarding the osgShadow

Re: [osg-users] osgShadow one shot shadow map

2008-02-11 Thread Wojciech Lewandowski
Sent: Monday, February 11, 2008 7:16 PM To: OpenSceneGraph Users Subject: Re: [osg-users] osgShadow one shot shadow map Hello Wojtek, ShadowMap::cull invokes culls traversal for both main camera (ShadowReceiving) graph shadow camera (ShadowCasting) graphs. So if you block whole cull