[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] shadow demo



On Wed, Mar 26, 2008 at 12:28 AM, Casey Duncan <casey@xxxxxxxxxxx> wrote:
On Mar 25, 2008, at 1:29 PM, Ian Mallett wrote:
> Cool!  Does this work for self-shadowing?

Sorry, no, but you could use the "shadow volumes" technique to achieve
this:

http://www.3ddrome.com/articles/shadowvolumes.php
Hmm,  The shadow drawing code seems pretty short, which is good.  It doesn't run, which makes it hard to port to Python.  I've heard that this particular method is slow though.
You could also use depth mapping:

http://www.paulsprojects.net/tutorials/smt/smt.html
I've been on this exact same page, but I was unable to port it.  
-Casey
Thanks,
Ian