On Tue, Mar 11, 2008 at 10:32 PM, René Dudfield <[EMAIL PROTECTED]> wrote:

> Hello,
>
> I noticed with this cool shadow demo:
> http://www.pygame.org/project/556/
>
> On this ATI card I have, I had to change the glAlphaFunc to use
> GL_LESS... which I think is because of float inaccuracies.
>
> #Set alpha test to discard false comparisons
> #glAlphaFunc(GL_EQUAL, 1.0)
> glAlphaFunc(GL_LESS, 1.0)
>
> Any ideas on how to make the shadows softer? Either by making the
> shadow map a higher resolution or some other algorithm?  I tried
> changing shadowMapSize = 2048, but it looks like the shadow map is
> wrong some how.  Like it isn't the correct scale, or something.
>
I tried increasing the shadow map resolution, but although the resulting
shadow was very nice and smooth, the area it covered on the landscape was
tiny. The resolution appeared to be inversely proportional to the area that
could be shadowed.  I think a well-commented simple demo that shadowed a
single quad with another quad might actually be more useful than a
full-blown demo such as this.

> cheers,
>
Ian

Reply via email to