[osg-users] Problem with Shadow Map

Robert Osfield robert.osfield at gmail.com
Thu May 21 00:32:27 PDT 2015


Hi David,

What happens when you run the osgshadow example?

Robert.

On 21 May 2015 at 00:12, David Heitbrink <david-heitbrink at uiowa.edu> wrote:
> I have added a shadow scene (using shadow map technique) to my scene graph and the shadow texture I am getting does not seem to make much sense see:
> https://www.nads-sc.uiowa.edu/userweb/dheitbri/shadowScene_small.jpg
>
> I turned on the debug HUD, the scene has 3 cars, on top of a white rectangle, and a smaller black rectangle above the 3 cars. The light source is above everything. I do have a shaders attached, and in this rendering I do not have the shadow texture being rendered (with a bad shadow texture the shadows do not come out right).
>
>
> I have my graph setup as pretty much as:
> Composite Viewer-> Scene Root (sky box is attached here) -> Shadow Scene -> Regular Scene (basically everything else).
>
> I pretty much set the light, and set the texture size to 4096 x 4096, that is about it in terms of what I have set for the shadow map object.
>
> Any advice on were to begin to figure this issue out would be greatly appreciated.
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=63774#63774
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list