If I may offer a suggestion- loop through each individual light and only stencil out that light source. This will give a different color for each shadow, and it is more realistic. More like doom 3.
Blender has been used only for objects creation, if you download the source you'll notice there is also a Suzanne model already exported and available for use in this demo.
Cannot remember which Blender version precisely, it was three years ago.
Have a look at release logs. ;-)
By the way, my recent demos have a PLY importer, try integrating that one into this demo. :-)
encelo 9 months ago
It won't load any other models made in blender other than the two you have already supplied.
superkellerman8D 10 months ago
@superkellerman8D The demo is based on the old OBJ exporter which seems to be quite incompatible with the new one. :-)
encelo 9 months ago
@encelo what blender version?
superkellerman8D 9 months ago
If I may offer a suggestion- loop through each individual light and only stencil out that light source. This will give a different color for each shadow, and it is more realistic. More like doom 3.
superkellerman8D 10 months ago
Can it be implemented in real game with many polygons and details? becouse if i dont mistake the NeHe tutorial is about stencil projected shadows
spider853 3 years ago
Well, it's the same technique used in Id Tech 4 (Doom 3, Quake 4).
But it seems that nowadays it's shadow mapping the winner technique for real-time shadow generation.
encelo 3 years ago
Is this for the Blender Game Engine?
DeltaSpeeds 3 years ago
No, this a plain C demo using OpenGL.
Blender has been used only for objects creation, if you download the source you'll notice there is also a Suzanne model already exported and available for use in this demo.
encelo 3 years ago