Hi Marcus,

How are your setting up your shadow mapping?  I'd suspect something
might be up the shader, but really have too little info to go to give
a good answer.

Robert.

On 6/5/07, Marcus Fritzen <[EMAIL PROTECTED]> wrote:
Hello,

perhaps someone can help me with a problem I have. Attached is the image
I get when using shadow mapping. At present I don't know where the
artifacts on the ground and the cube came from. I use following settings
for the textures:

setFilter( osg::Texture2D::MIN_FILTER, osg::Texture2D::LINEAR );
setFilter( osg::Texture2D::MAG_FILTER, osg::Texture2D::LINEAR );
setWrap( osg::Texture2D::WRAP_S, osg::Texture2D::CLAMP_TO_EDGE );
setWrap( osg::Texture2D::WRAP_T, osg::Texture2D::CLAMP_TO_EDGE );
setShadowTextureMode( osg::Texture2D::LUMINANCE );
setInternalFormat( GL_DEPTH_COMPONENT );

Greets,
Marcus

--
----------------------------------------------------------------
Marcus Fritzen                  E-mail: [EMAIL PROTECTED]
University Koblenz
Triererstr. 105, 56072 Koblenz,
HIWI FB4 Herr Jackel
----------------------------------------------------------------

_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to