[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] shadow demo
- To: alesso_galliazzo@xxxxxxxx, pygame-users@xxxxxxxx
- Subject: [pygame] shadow demo
- From: "René Dudfield" <renesd@xxxxxxxxx>
- Date: Wed, 12 Mar 2008 16:32:59 +1100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Wed, 12 Mar 2008 01:33:06 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=+1KZCGaV43w7kHlFyJxYEmHV9Vf+Y0dpsbpBvC8Zcw0=; b=ZLEdS+3/qQgX7o7Jce2y0Sg8iM/l03VSXIGV7oM/LZch1mzWKTOZeX4nukW7ZNR+kBqcMRdOBW+6DIIZkOoS9TtZygPoF8Jg2QjN8+Eq2yrEFW+slr44RZGuY886hjHkmKOffOj/xvUSSZmhTTIn/uAamKUrxOY8GjU7f7GBUFA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=e+gHp6vtN6j9gUuQ4t8yMQR2/qunEq2GlAX3qNf+PYIb4c11KMYkpgeLsuya39/vE70BZM8TtPrQ8SjnWyS921VvQkNZbe/gUbi6zPv3iIyinJQ6ugJTxSMwE/P05uF+28exSyGbMYZ2uLtYKu0obHTNQN+5nvC5SN/MbDduXF8=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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.
cheers,