Simple shadows

Blitz3D Forums/Blitz3D Programming/Simple shadows

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

OK, I tried using DrawImage to put the shadows onto the map instead of Oval/Rect but it seems to be slower! I also had to turn off flag 256 (VRAM) because DrawImage didn't work with it on - didn't get an error, just nothing gets drawn to the texture!? These are the FPS scores I got for the different tests:
- Using Oval/Rect with flag 256 set : 109
- Using Oval/Rect with flag 256 NOT set : 105
- Using DrawImage with flag 256 NOT set : 82
Why does Rect/Oval work with flag 256 but not DrawImage?

Anyway, here's a couple of screenies. Please note this is only test code so ignore the (lack of) models/textures! :P

This is going to be the game's default camera setting. It's so far away that the quality of the shadows isn't too apparent. However, I also plan to have an alternative camera mode that follows the player at a much closer range.


The red cone is the player; the pink ball is a player weapon to throw at enemies; the yellow dots are the 'fruit'; the brown cylinder is a log which can be rolled over enemies to squish them. :)