Shadows - beta 1
Small demo that shows a way to implement some nice ray casting effect.
Draw obstacles with the mouse. Move the light with the arrow keys.
Screenshot
Related links
Downloads
- Shadows.py - The source code.
Copyright notice
- Source code is Public Domain.
Comment this project:
pymike 2008-11-10 17:11:32
So sorry, I meant ray CASTER. :-)
Hmm... I was just thinking. Could this code be modified into a ray tracer? :O
Hi!
This demo is fabulous! I'm not sure how it works, and I have tried several times to make sense of it. Can anyone give me the theory? Thanks.
very cool game to play around with
I made + and - to resize the circle
your code is buggy though: http://img301.imageshack.us/my.php?image=abuggabugabuce0.gif
Answer:
Naah...I wouldn't say it's a bug ;-) You just have to change some more of the code to be able to set a larger circle. Not just the size of the light.
very gerat ! I like it a lot.
