Mark.. Blitz's Z-buffer accessible, but...

Blitz3D Forums/Blitz3D Programming/Mark.. Blitz's Z-buffer accessible, but...

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.

If you use a low poly version of the model for stencil shadows you'll get all sorts of glitches in self shadowing situations
Eh eh, true. It was mainly for the sake of keeping discussing about it :p
I'm sure there is some trick to cope with this problem.

It's probably not possible to do stencil shadows and NOT enable self shadowing, but I'm not sure about that.
Indeed, AFAIK you can't do this (in a reasonably fast way). As it would require a way to determine what "self" is. And the beauty of the tecnique is precisely that it works blindly on the whole framebuffer, without any geometry knowledge.

BTW, do you provide in your lib any mean to associate a low-poly version of the shadow casting meshes? Even if you don't render them (for shadows) each frame, it would be better with a low poly version. Please bear with me, I never really checked your lib.