drawStencilShadowVolume & drawStencilShadow bug

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
feelthat
Posts: 194
Joined: Sat Feb 02, 2013 5:27 am

drawStencilShadowVolume & drawStencilShadow bug

Post 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()
Foaly
Posts: 142
Joined: Tue Apr 15, 2014 8:45 am
Location: Germany

Re: drawStencilShadowVolume & drawStencilShadow bug

Post 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.
feelthat
Posts: 194
Joined: Sat Feb 02, 2013 5:27 am

Re: drawStencilShadowVolume & drawStencilShadow bug

Post 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.
Foaly
Posts: 142
Joined: Tue Apr 15, 2014 8:45 am
Location: Germany

Re: drawStencilShadowVolume & drawStencilShadow bug

Post by Foaly »

But we already compile with the GUI?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: drawStencilShadowVolume & drawStencilShadow bug

Post 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.
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
feelthat
Posts: 194
Joined: Sat Feb 02, 2013 5:27 am

Re: drawStencilShadowVolume & drawStencilShadow bug

Post 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.
Post Reply