Ben Axelrod
2008-09-22 20:05:29 UTC
I am seeing strange shadow artifacts on my model when I use a ShadowMap. The artifacts get worse as I increase the size of my ground plane. You can see the artifacts get progressively worse in these images:
Loading Image...
Loading Image...
Loading Image...
Loading Image... <- this is the desired size of ground plane
Loading Image...
You can see strange gradients on the humanoid's hands and feet. And the shadow gets more and more pixilated.
I am using OSG 2.6 on Debian Etch with a NVidia 7300 LE graphics card.
This is how I configure the ShadowMap:
shadowmap->setTextureSize(osg::Vec2s(1024, 1024));
shadowmap->setPolygonOffset(osg::Vec2(1.1f, 4.0f));
Do I need to tune these parameters? If so, how? Are there more parameters I need? And what do these parameters control exactly?
Thanks,
-Ben
Loading Image...
Loading Image...
Loading Image...
Loading Image... <- this is the desired size of ground plane
Loading Image...
You can see strange gradients on the humanoid's hands and feet. And the shadow gets more and more pixilated.
I am using OSG 2.6 on Debian Etch with a NVidia 7300 LE graphics card.
This is how I configure the ShadowMap:
shadowmap->setTextureSize(osg::Vec2s(1024, 1024));
shadowmap->setPolygonOffset(osg::Vec2(1.1f, 4.0f));
Do I need to tune these parameters? If so, how? Are there more parameters I need? And what do these parameters control exactly?
Thanks,
-Ben