Hi Enrico,
On Tue, 2006-03-21 at 09:34 +0100, Enrico Borrione wrote:
> Hi all,
>
> I have started using a shadowmap viewport in
> My application and after some struggles it
> Began to work as I wished.
OK, great. You will like the changes that are being checked in right
now, they improve shadow quality quite a bit.
>
> Now I was thinking about upgrading my work, putting into
> service the very same shadow system in stereo mode.
>
> What confuses me is how to use a shadowmap viewport
> with two other StereoBufferViewportPtr.Should
> i have to bind a shadow map to both the stereo viewports?
> Or just one shadowmap, as the shadow is just 2D and not
> really changing from point of view to point of view?
Yeah, that's a problem. The ShadowMapViewport is a bit of a hack,
Shadows really belong in the light sources and in the scene graph.
I don't see a trivial solution. You can either (in increasing order of
difficulty) draw viewports individually (do a mgr->getNavigator
().updateCameraTransformation() and cut-n-paste from Window::render()
and Window::renderAllViewports()), or add a StereobufferBackground or
create a BufferStateChunk.
Hope it helps
Dirk
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users