Lights & Shadows.
BlitzMax Forums/BlitzMax Beginners Area/Lights & Shadows.
| ||
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 |
| ||
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) |
| ||
There's PPSoftshadow and How to draw 2D shadows which might both help. |
| ||
Kleptos extended Version supports shadows for minib3d. |
| ||
This may be of some help too http://www.blitzbasic.com/codearcs/codearcs.php?code=1833 |
| ||
apologies, I see tonyg linked to the code archive. |