Lights & Shadows.

BlitzMax Forums/BlitzMax Beginners Area/Lights & Shadows.

Dicon(Posted 2008) [#1]
Sorry guys & gals... Another noobish question.
Does Blitz Max ( or any blitz product or Blitz plug in ) allow for real time shadow casting?
And I mean real time.
Thanks.
Dicon


deps(Posted 2008) [#2]
2D or 3D?

With 2D, use setcolor(0,0,0) to turn an image black and reduce it's alpha with setalpha(0.5) or similar, then draw it a bit below and to the right, or similar, of the image you want to draw.

With Minib3D you can get 3D in BMax, but it doesn't support shadows out of the box, you would have to write code for that yourself. The same for Blitz3D. (or borrow other peoples code)


tonyg(Posted 2008) [#3]
There's PPSoftshadow and How to draw 2D shadows which might both help.


Volker(Posted 2008) [#4]
Kleptos extended Version supports shadows for minib3d.


SillyPutty(Posted 2008) [#5]
This may be of some help too

http://www.blitzbasic.com/codearcs/codearcs.php?code=1833


SillyPutty(Posted 2008) [#6]
apologies, I see tonyg linked to the code archive.