No transparent objects if stencilbuffer shadows are on

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
max6666north
Posts: 15
Joined: Fri Jun 03, 2011 9:35 am

No transparent objects if stencilbuffer shadows are on

Post by max6666north »

Hi
if i turn stencilbuffer shadows on, my transparent parts switch to solid colors
(may be they are very dark, not realy solid...)
The shadows and lightning seems to be ok...
Whould be nice to have some hints about this problem...
thanks
max
VillageIdiot
Posts: 2
Joined: Sun Jul 31, 2011 8:11 pm

Re: No transparent objects if stencilbuffer shadows are on

Post by VillageIdiot »

I noticed that too, but only with Direct3D8 and Direct3D9.
I changed the material flag EMF_BLEND_OPERATION to true and it appears to fix it.
I am a newb with Irrlicht, so there may be some side effects on turning on this flag which I do not know.
max6666north
Posts: 15
Joined: Fri Jun 03, 2011 9:35 am

Re: No transparent objects if stencilbuffer shadows are on

Post by max6666north »

[quote="VillageIdiot"]I noticed that too, but only with Direct3D8 and Direct3D9.
I changed the material flag EMF_BLEND_OPERATION to true and it appears to fix it.
I am a newb with Irrlicht, so there may be some side effects on turning on this flag which I do not know.[/quote]
hi

i tested it and it works ;-) dont know about/see sideeffects at this time...

thx
max
CuteAlien
Admin
Posts: 9716
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: No transparent objects if stencilbuffer shadows are on

Post by CuteAlien »

Defaults for blend operations changed recently in svn. I also run into this one already and there shouldn't be a side-effect as this was the old default as far as I can see. Hybrid probably knows more about this but I guess he's currently in holiday.
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
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: No transparent objects if stencilbuffer shadows are on

Post by hybrid »

No, I'm back already. But I didn't test this so far. Should be visible in example 7 as well then. Maybe some state which is incorrectly reset in the stencil shadow setup.
VillageIdiot
Posts: 2
Joined: Sun Jul 31, 2011 8:11 pm

Re: No transparent objects if stencilbuffer shadows are on

Post by VillageIdiot »

It's really obvious in the Special FX tutorial (#8) which is where I found it.
CuteAlien
Admin
Posts: 9716
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: No transparent objects if stencilbuffer shadows are on

Post by CuteAlien »

Yeah, but only with DX 9.
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
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: No transparent objects if stencilbuffer shadows are on

Post by hybrid »

Ok, stencil setup in DX is somewhat different to OpenGL. So maybe I have to clean some things up there. I'll move this to bug reports.
Post Reply