Page 1 of 1

drawStencilShadowVolume & drawStencilShadow bug

Posted: Sat Aug 29, 2015 7:28 pm
by feelthat
if undefine _IRR_COMPILE_WITH_GUI_ and do drawStencilShadowVolume

will have block area

need add BridgeCalls->setDepthMask(true); in bool COpenGLDriver::endScene()

also COGLES1Driver::endScene()

Re: drawStencilShadowVolume & drawStencilShadow bug

Posted: Sun Aug 30, 2015 1:59 pm
by Foaly
Yeah, with IrrlichtLime, I we also have a problem with stencil shadows.

One of our examples, which had worked, doesn't work anymore with the current Irrlicht version, but we didn't do any changes.
It uses custom stencil shadows, but when we draw them, the UI disappears and there are no shadows either.

I didn't report it, because I wasn't sure, that it really is not our fault, but maybe that's the same cause.

Re: drawStencilShadowVolume & drawStencilShadow bug

Posted: Mon Aug 31, 2015 1:20 am
by feelthat
its because default is need depth mask
when use no depth mask need restore
and some transparent node also use no depth mask
in GUI will always use depth mask. so enable _IRR_COMPILE_WITH_GUI_ will be good for drawStencilShadowVolume
but disable drawStencilShadowVolume will bug~

so add BridgeCalls->setDepthMask(true) in endScene will done
Foaly wrote:Yeah, with IrrlichtLime, I we also have a problem with stencil shadows.

One of our examples, which had worked, doesn't work anymore with the current Irrlicht version, but we didn't do any changes.
It uses custom stencil shadows, but when we draw them, the UI disappears and there are no shadows either.

I didn't report it, because I wasn't sure, that it really is not our fault, but maybe that's the same cause.

Re: drawStencilShadowVolume & drawStencilShadow bug

Posted: Mon Aug 31, 2015 8:43 am
by Foaly
But we already compile with the GUI?

Re: drawStencilShadowVolume & drawStencilShadow bug

Posted: Mon Aug 31, 2015 10:01 am
by CuteAlien
Yeah, doesn't sound like you have the same bug.

@feelthat: Do you have some example code to reproduce this? Or can it be reproduced with Irrlicht examples?

I'm not really familiar with that part of the engine. But calling setDepthMask in endScene because it's needed somewhere sounds a little bit strange. It should probably be called before the functions that needs it.

Re: drawStencilShadowVolume & drawStencilShadow bug

Posted: Mon Aug 31, 2015 5:01 pm
by feelthat
openGL ogles1.1

undefine _IRR_COMPILE_WITH_GUI_ of IrrCompileConfig.h

and use ex 08.SpecialFX then bug will show~~~


CuteAlien wrote:Yeah, doesn't sound like you have the same bug.

@feelthat: Do you have some example code to reproduce this? Or can it be reproduced with Irrlicht examples?

I'm not really familiar with that part of the engine. But calling setDepthMask in endScene because it's needed somewhere sounds a little bit strange. It should probably be called before the functions that needs it.