Hi,

So I have been experimenting with shadows in OSG using the ShadowMap shadow 
technique. With the default OSG implementation and every custom shader in my 
scene graph disabled the shadows work correctly. Once I turn my shaders on they 
stop working. This is understandable as he OSG shadow shader will be 
overridden. I then reimplemented the shadow projection code in my pixel 
shaders, but then still no shadows. I am not too familiar with the OpenGL 
fixed-function shadow pipeline. If you do not provide a vertex shader does 
OpenGL generate the proper texture coordinates by default. I saw that OSG was 
creating a TexGen attribute and applying that after shadow map creation. If I 
am implementing custom vertex shaders should I be overriding the ShadowMap and 
not allowing that TexGen to be created and then generate the proper texture 
coordinates in my vertex shader? At this point I think all that is missing is 
the proper texture coordinates for shadows to be working for me. Any help woul
 d be appreciated. Thanks in advance!

Cheers,
Michael

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=31896#31896





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to