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
No transparent objects if stencilbuffer shadows are on
-
- Posts: 15
- Joined: Fri Jun 03, 2011 9:35 am
-
- Posts: 2
- Joined: Sun Jul 31, 2011 8:11 pm
Re: No transparent objects if stencilbuffer shadows are on
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.
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.
-
- Posts: 15
- Joined: Fri Jun 03, 2011 9:35 am
Re: No transparent objects if stencilbuffer shadows are on
[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
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
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- 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
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.
-
- Posts: 2
- Joined: Sun Jul 31, 2011 8:11 pm
Re: No transparent objects if stencilbuffer shadows are on
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
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- 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
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.