Page 1 of 1

No transparent objects if stencilbuffer shadows are on

Posted: Mon Jun 20, 2011 1:43 pm
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

Re: No transparent objects if stencilbuffer shadows are on

Posted: Sun Jul 31, 2011 8:14 pm
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.

Re: No transparent objects if stencilbuffer shadows are on

Posted: Wed Aug 03, 2011 6:57 am
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

Re: No transparent objects if stencilbuffer shadows are on

Posted: Wed Aug 03, 2011 8:35 am
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.

Re: No transparent objects if stencilbuffer shadows are on

Posted: Wed Aug 03, 2011 11:29 am
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.

Re: No transparent objects if stencilbuffer shadows are on

Posted: Sat Aug 06, 2011 8:58 pm
by VillageIdiot
It's really obvious in the Special FX tutorial (#8) which is where I found it.

Re: No transparent objects if stencilbuffer shadows are on

Posted: Sun Aug 07, 2011 12:24 am
by CuteAlien
Yeah, but only with DX 9.

Re: No transparent objects if stencilbuffer shadows are on

Posted: Sun Aug 07, 2011 11:43 am
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.