StencilShadowBug

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Foaly
Posts: 142
Joined: Tue Apr 15, 2014 8:45 am
Location: Germany

StencilShadowBug

Post by Foaly »

In IrrlichtLime (.Net wrapper) we have an example which shows how to use stencil shadows.
Now it does not work anymore, but we did not do any changes, just updated the used Irrlicht.

In Irrlicht rev 4781 it still works, but in 4806+ it doesn't. (I didn't test the others in between these revisions.)
In these revisions the profiler was added and something was changed with the materials.


The shadow volumes are calculated manually (not by ShadowVolumeSceneNodes) and drawn directly after the scene manager.
But the shadows don't show up anymore. Also, the GUI (actually just a call to font.draw and driver.Draw2DRectangle) are invisible as well.

The shadows are drawn with these two calls:
driver.DrawStencilShadowVolume(visibleShadowVerticesBuffer);
driver.DrawStencilShadow(false, shadowColor);

If I comment them out, the GUI is visible again.


I hope someone can fix this or find out, why this doesn't work anymore.
P.S. The ShadowVolumeSceneNode still works. But it does not fit the situation.
Post Reply