Direct3D dims scene with stencil shadows and CastShadows off

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
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Direct3D dims scene with stencil shadows and CastShadows off

Post by greenya »

Hello.

There is a bug in latest SVN version and i believe in 1.7.3 too.
I have tested the bug on ATI and GeForce cards and both OpenGL shows OK and Direct3D shows wrong - the dimed scene.

Direct3D driver dims the scene when CastShadows is off and stencil shadows enabled. If we don't use stencil shadows then Direct3D draws correct result.

For the test case i took source of 08.SpecialFX and added single line just after creation of the light node:

Code: Select all

((scene::ILightSceneNode*)node)->getLightData().CastShadows = false;
OpenGL rendering at the left and Direct3D - at the right.
Image
(as you see, Direct3D result looks like everything is in the shadow)

P.S.: you can also modify the source to turn on/off the CastShadows on the fly at run-time on some key press, and the screen will flicker when running Direct3D.
Post Reply