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.

No transparent objects if stencilbuffer shadows are on

Postby max6666north » Mon Jun 20, 2011 1:43 pm

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

Re: No transparent objects if stencilbuffer shadows are on

Postby VillageIdiot » Sun Jul 31, 2011 8:14 pm

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.
VillageIdiot
 
Posts: 2
Joined: Sun Jul 31, 2011 8:11 pm

Re: No transparent objects if stencilbuffer shadows are on

Postby max6666north » Wed Aug 03, 2011 6:57 am

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

Re: No transparent objects if stencilbuffer shadows are on

Postby CuteAlien » Wed Aug 03, 2011 8:35 am

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.freenode.net
My patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Games with Irrlicht: http://www.irrgheist.com/
News: http://www.reddit.com/r/irrlicht/
User avatar
CuteAlien
Admin
 
Posts: 5364
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: No transparent objects if stencilbuffer shadows are on

Postby hybrid » Wed Aug 03, 2011 11:29 am

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.
hybrid
Admin
 
Posts: 13946
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany

Re: No transparent objects if stencilbuffer shadows are on

Postby VillageIdiot » Sat Aug 06, 2011 8:58 pm

It's really obvious in the Special FX tutorial (#8) which is where I found it.
VillageIdiot
 
Posts: 2
Joined: Sun Jul 31, 2011 8:11 pm

Re: No transparent objects if stencilbuffer shadows are on

Postby CuteAlien » Sun Aug 07, 2011 12:24 am

Yeah, but only with DX 9.
IRC: #irrlicht on irc.freenode.net
My patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Games with Irrlicht: http://www.irrgheist.com/
News: http://www.reddit.com/r/irrlicht/
User avatar
CuteAlien
Admin
 
Posts: 5364
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: No transparent objects if stencilbuffer shadows are on

Postby hybrid » Sun Aug 07, 2011 11:43 am

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.
hybrid
Admin
 
Posts: 13946
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany


Return to Bug reports

Who is online

Users browsing this forum: No registered users and 0 guests