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()
drawStencilShadowVolume & drawStencilShadow bug
Re: drawStencilShadowVolume & drawStencilShadow bug
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.
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
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
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
But we already compile with the GUI?
Re: drawStencilShadowVolume & drawStencilShadow bug
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.
@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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: drawStencilShadowVolume & drawStencilShadow bug
openGL ogles1.1
undefine _IRR_COMPILE_WITH_GUI_ of IrrCompileConfig.h
and use ex 08.SpecialFX then bug will show~~~
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.