BSP transparency

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

BSP transparency

Post by hendu »

I see the transparency detection is #if'd out. What's the state of that?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: BSP transparency

Post by hybrid »

Uhm, where? Did you try to re-enable it? State is probably unknown, unless burnings shows up here some time.
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: BSP transparency

Post by hendu »

CQ3LevelMesh.cpp around line 750.

I haven't tried to enable it, because it uses the shader files, and I'd rather have detection based on whether the texture has an alpha channel (ie, automagic instead of having to create a text file per texture).
Alexander11
Posts: 2
Joined: Wed Nov 23, 2011 1:32 pm

Re: BSP transparency

Post by Alexander11 »

I wrote a BSP renderer. I finally added the ability to render masked textures using alpha testing. It works great and I don't have to sort the scene's geometry. Now, I need the ability to have textures that are semi transparent. Is there a way to do this again with alpha testing so I can avoid sorting. If not, does anyone have a good tutorial on sorting possibly with BSP tree geometry?
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: BSP transparency

Post by hendu »

With the recently merged brush entity support, you can mark transparent parts and let irrlicht handle the sorting.
Post Reply