[osg-submissions] ShadowMap non-textured objects fix
Robert Osfield
robert.osfield at gmail.com
Sun Dec 9 07:28:49 PST 2007
Thanks Mihai, fix now merged and submitted to SVN. This fake texture
trick is something that might be worth rolling it out to the other
shader based shadow techniques. Something for discussion on
osg-users.
On Nov 1, 2007 10:40 PM, Mihai Radu <radu at cm-labs.com> wrote:
> Hi Robert,
>
> After someone asked for a fix for non-textured object appearing black
> with the shader for textured objects. This works very well in cases
> where there could be a mix of textured and non-textured objects in the
> scene, and it makes the initialization more robust.
> The idea is from PSSM, to add a 1pixel texture to the main rendering as
> to provide white for any objects missing textures.
>
> To test:
> osgshadow --base dumptruck.osg
>
> Do you think the shader for non-textured cases should be left there, or
> simplify to only one shader ?
>
> Regards
> Mihai Radu
>
> _______________________________________________
> osg-submissions mailing list
> osg-submissions at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
More information about the osg-submissions
mailing list