# Order Independent Transparency

**URL:** <https://forums.unrealengine.com/t/order-independent-transparency/117182>\
**Category:** Feedback & Requests\
**Tags:** unreal-engine\
**Created:** [October 6, 2018, 2:25pm UTC](https://forums.unrealengine.com/t/order-independent-transparency/117182 "2018-10-06T14:25:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kostenickj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kostenickj](https://forums.unrealengine.com/u/kostenickj)\
**Post date:** [October 6, 2018, 2:25pm UTC](https://forums.unrealengine.com/t/order-independent-transparency/117182/1 "2018-10-06T14:25:40Z")

</div>

Unreal really needs an option for OIT integrated into the engine.

These guys implemented it in their build 2 years ago : [https://www.slideshare.net/KiHyunwoo…-of-project-a1](https://www.slideshare.net/KiHyunwoo/rendering-aaaquality-characters-of-project-a1)

AWS lumberyard even has the option! [https://docs.aws.amazon.com/lumberya…nsparency.html](https://docs.aws.amazon.com/lumberyard/latest/userguide/graphics-rendering-order-independent-transparency.html)

I’m sure this will fall on deaf ears but its 2018 and high end hardware can support it now when used carefully.

You could use the shortcut method that tressFX uses.

> **[TressFX 3.1](https://gpuopen.com/tressfx-3-1/)**
>
> Our biggest update in this release is a new order-independent transparency (OIT) option we call "ShortCut".

Please do something about transparency. Dither opacity mask on masked materials really just doesn’t hold up anymore.

---

<div class="post-metadata">

**Author:** ![The\_Distiller](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_Distiller](https://forums.unrealengine.com/u/The_Distiller)\
**Post date:** [October 6, 2018, 4:28pm UTC](https://forums.unrealengine.com/t/order-independent-transparency/117182/2 "2018-10-06T16:28:46Z")

</div>

I agree! Even though it’s costly we should at least have the option.

---

<div class="post-metadata">

**Author:** ![Chosker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chosker/32/710746_2.png) [@Chosker](https://forums.unrealengine.com/u/Chosker)\
**Post date:** [October 8, 2018, 9:06am UTC](https://forums.unrealengine.com/t/order-independent-transparency/117182/3 "2018-10-08T09:06:20Z")

</div>

+1  
By now using the custom depth hack is more or less widely accepted, but let’s not forget it involves re-rendering the meshes (including potentially tessellation for things like complex water, and without occlusion) - so by now the performance argument doesnt really hold up either

> [@kostenickj](#):
>
> Please do something about transparency. Dither opacity mask on masked materials really just doesn’t hold up anymore.

I dont think it ever did :rolleyes:

---

<div class="post-metadata">

**Author:** ![Deathrey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deathrey](https://forums.unrealengine.com/u/Deathrey)\
**Post date:** [October 8, 2018, 9:31am UTC](https://forums.unrealengine.com/t/order-independent-transparency/117182/4 "2018-10-08T09:31:24Z")

</div>

> [@](#):
>
> By now using the custom depth hack is more or less widely accepted, but let’s not forget it involves re-rendering the meshes (including potentially tessellation for things like complex water, and without occlusion) - so by now the performance argument doesnt really hold up either

Cmon. Per-pixel linked lists 16 layers deep and depth pre-pass for overly dense mesh performance on a full screen scene at 1080 is separated by at least an order of magnitude.

Current OIT solutions are not a miracle, and can be used for specific purposes, not generally. Still, would be nice to have it as a part of the engine.

---

<div class="post-metadata">

**Author:** ![kostenickj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kostenickj](https://forums.unrealengine.com/u/kostenickj)\
**Post date:** [October 8, 2018, 9:34am UTC](https://forums.unrealengine.com/t/order-independent-transparency/117182/5 "2018-10-08T09:34:30Z")

</div>

> [@](#):
>
> I dont think it ever did :rolleyes:

I agree with you there! The custom depth hack just doesnt hold up on complex geometry though unfortunately.

I wish epic would let us know whether they are even considering working on it in the next year (or ever). If not, im going to look into implementing it myself, but its certainly not trivial.  
this guy implemented it for his WIP tressFX build, but its specific to tressFX.  
[https://forums.unrealengine.com/comm…hair-rendering](https://forums.unrealengine.com/community/community-content-tools-and-tutorials/116648-tressfx-4-0-hair-rendering)

> [@Deathrey](#):
>
> Cmon. Per-pixel linked lists 16 layers deep and depth pre-pass for overly dense mesh performance on a full screen scene at 1080 is separated by at least an order of magnitude.
> 
> Current OIT solutions are not a miracle, and can be used for specific purposes, not generally. Still, would be nice to have it as a part of the engine.

Yes deep PPL would be terrible for performance, but the shortcut method used by TressFX is the more viable option.

Still not a miracle, i just really want the option for specific cases.

---

<div class="post-metadata">

**Author:** ![MarcusRafaelFT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MarcusRafaelFT](https://forums.unrealengine.com/u/MarcusRafaelFT)\
**Post date:** [October 14, 2018, 10:51am UTC](https://forums.unrealengine.com/t/order-independent-transparency/117182/7 "2018-10-14T10:51:16Z")

</div>

Would be really nice to have this as an option, I’ve always wanted this at least for hair rendering. Unity also has this feature through plugin.

---

<div class="post-metadata">

**Author:** ![Frenetic\_Pony](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frenetic\_Pony](https://forums.unrealengine.com/u/Frenetic_Pony)\
**Post date:** [October 15, 2018, 10:32pm UTC](https://forums.unrealengine.com/t/order-independent-transparency/117182/8 "2018-10-15T22:32:01Z")

</div>

Lumberyard added Raster Order Views, a hardware dependent feature that is never the less very neat, if only useful if you’re working on “next gen” games.

Otherwise OIT is too finicky, and costs way too much, to totally deal with. There are other things to do: [Alpha Distribution](http://www.cemyuksel.com/research/alphadistribution/alpha_distribution.pdf) is a nice hack that’s basically an improved dithered transparency/translucency. Can easily see it as an improvement for hair/grass/etc.

There was also a very nice blog post about “depth proxies” that I can’t find for the life of me. I know it was a blog, done by I believe a programmer from Eidos Montreal, that had previously done a blog about deferred textures, and yet I can’t for the life of me find it again. It was one step below OIT, about using a point (or was it a plane) stored depth per object instead of per pixel to approximate depth, allowing for better translucency/volumetric fog interaction, among other things. If anyone knows it they could link it.

---

<div class="post-metadata">

**Author:** ![Tiraelina](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tiraelina/32/1185444_2.png) [@Tiraelina](https://forums.unrealengine.com/u/Tiraelina)\
**Post date:** [October 16, 2018, 4:02pm UTC](https://forums.unrealengine.com/t/order-independent-transparency/117182/9 "2018-10-16T16:02:50Z")

</div>

Everything is a trade-off in performance and requires moderated usage, it’s not a reason to have nothing at all. Binary transparency and dithering don’t look very good on things like hair.

---

<div class="post-metadata">

**Author:** ![Frenetic\_Pony](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frenetic\_Pony](https://forums.unrealengine.com/u/Frenetic_Pony)\
**Post date:** [October 18, 2018, 12:04am UTC](https://forums.unrealengine.com/t/order-independent-transparency/117182/10 "2018-10-18T00:04:00Z")

</div>

Like I said, take a look at alpha distribution, not super complicated and a fair improvement in dithering. Adding another OIT, when a separate hardware implementation works with good performance, just so people can use it for backwards compatibility, just doesn’t seem productive. Even the good solutions can be so costly you’d not really want to use them on systems that don’t have Raster Ordered Views as it is, or even use them on those systems regardless.

When I say “expensive” I mean “we rendered it on a 1080 ti and it still took up 12ms on a resolution equal to half 1080p” expensive. Again, that’s a good, very recent OIT implementation: [KIT - Computer Graphics - Publications](https://cg.ivd.kit.edu/english/mboit.php) . It’s just not useable.

---

<div class="post-metadata">

**Author:** ![Tiraelina](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tiraelina/32/1185444_2.png) [@Tiraelina](https://forums.unrealengine.com/u/Tiraelina)\
**Post date:** [October 18, 2018, 4:07am UTC](https://forums.unrealengine.com/t/order-independent-transparency/117182/11 "2018-10-18T04:07:08Z")

</div>

I did look through it, I’m not actually sure what improvement it would be over what is already being done with dithering/TAA. It’s still dithering, which is the complaint.

12ms in a tech demo. Yes, if you want to make your entire scene into overdraw hell _and_ want every layer to be perfectly sorted, you will have problems. There’s a reason they are tech demos and not games. This is what I was talking about with moderated usage, most of them have layer settings to prevent it from getting out of hand as well. Black Ops 3 and 4 are already using it. Tomb Raider’s Definitive Edition is using TressFX on consoles.

Restricting any kind of undithered alpha sorting to ROV capable hardware is overkill.

---

<div class="post-metadata">

**Author:** ![Frenetic\_Pony](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frenetic\_Pony](https://forums.unrealengine.com/u/Frenetic_Pony)\
**Post date:** [October 18, 2018, 5:54am UTC](https://forums.unrealengine.com/t/order-independent-transparency/117182/12 "2018-10-18T05:54:40Z")

</div>

It’s hard to find how Black Ops does OIT, other than the fact that it seems to cost a good amount of performance as well.

As for Alpha distribution, it’s just dithering with a better representation of thickness based on distance than naive dithering. Point is, it’s an improvement for nigh zero performance cost.

As for other OIT, I guess I just don’t personally see the benefit of a bunch of complex, costly code for making translucency (which is costly itself) look nicer. Especially when particle sorting and depth proxies can eliminate a lot of the artifacts already present with such for much less rendering cost. Sure, it doesn’t help with hair, self intersection, or grass. But looking at titles like FFXV, which use translucent grass, I just don’t see the benefit of the translucent grass having nicer AA than alpha test grass when the far more obvious and glaring omission is that it vanishes entirely not far from the player.

But hell that’s just my opinion. I’m sure for someone at least there’s a good case for OIT.

---

<div class="post-metadata">

**Author:** ![kostenickj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kostenickj](https://forums.unrealengine.com/u/kostenickj)\
**Post date:** [November 13, 2018, 2:27pm UTC](https://forums.unrealengine.com/t/order-independent-transparency/117182/13 "2018-11-13T14:27:25Z")

</div>

If anyone is interested, i made an initial OIT implement here: [https://forums.unrealengine.com/development-discussion/rendering/1551217-wip-order-independent-transparency-implementation-better-hair](https://forums.unrealengine.com/development-discussion/rendering/1551217-wip-order-independent-transparency-implementation-better-hair)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6a619fcd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6a619fcd](https://forums.unrealengine.com/u/anonymous_user_6a619fcd)\
**Post date:** [May 7, 2019, 6:59pm UTC](https://forums.unrealengine.com/t/order-independent-transparency/117182/14 "2019-05-07T18:59:31Z")

</div>

> [@kostenickj](#):
>
> If anyone is interested, i made an initial OIT implement here: [https://forums.unrealengine.com/deve…on-better-hair](https://forums.unrealengine.com/development-discussion/rendering/1551217-wip-order-independent-transparency-implementation-better-hair)

Yes, I am still interested. But for some reason the link you gave isn’t working anymore.

I’m getting the message

"Sorry, you are not authorized to view this page

- The link may have been moved to a private section that you do not have permission to access
- The link may have been deleted by a moderator
- The link may no longer exists"

Can you please let me know if you still found a way for order independent transparency or please post/message links?

---

<div class="post-metadata">

**Author:** ![kostenickj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kostenickj](https://forums.unrealengine.com/u/kostenickj)\
**Post date:** [May 8, 2019, 10:15pm UTC](https://forums.unrealengine.com/t/order-independent-transparency/117182/15 "2019-05-08T22:15:54Z")

</div>

I deleted the post because i no longer want to support it, but the code is here:

[https://github.com/kostenickj/UnrealEngine/tree/420\_3\_OIT\_Main](https://github.com/kostenickj/UnrealEngine/tree/420_3_OIT_Main)

Its for 4.20

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6a619fcd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6a619fcd](https://forums.unrealengine.com/u/anonymous_user_6a619fcd)\
**Post date:** [May 9, 2019, 6:25pm UTC](https://forums.unrealengine.com/t/order-independent-transparency/117182/16 "2019-05-09T18:25:16Z")

</div>

> [@kostenickj](#):
>
> I deleted the post because i no longer want to support it, but the code is here:
> 
> [https://github.com/kostenickj/UnrealEngine/tree/420\_3\_OIT\_Main](https://github.com/kostenickj/UnrealEngine/tree/420_3_OIT_Main)
> 
> Its for 4.20

OK, thanks! I will look at it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6a619fcd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6a619fcd](https://forums.unrealengine.com/u/anonymous_user_6a619fcd)\
**Post date:** [May 9, 2019, 6:38pm UTC](https://forums.unrealengine.com/t/order-independent-transparency/117182/17 "2019-05-09T18:38:14Z")

</div>

> [@kostenickj](#):
>
> I deleted the post because i no longer want to support it, but the code is here:
> 
> [https://github.com/kostenickj/UnrealEngine/tree/420\_3\_OIT\_Main](https://github.com/kostenickj/UnrealEngine/tree/420_3_OIT_Main)
> 
> Its for 4.20

One more thing, how exactly do I use it/enable it? (specifically the order independent transparency with that version of the engine)

---

<div class="post-metadata">

**Author:** ![kostenickj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kostenickj](https://forums.unrealengine.com/u/kostenickj)\
**Post date:** [May 9, 2019, 9:24pm UTC](https://forums.unrealengine.com/t/order-independent-transparency/117182/18 "2019-05-09T21:24:09Z")

</div>

In the material editor under the translucency section should have everything you need. There are also a couple of console vars. Type in r.oit and they should come up.

---

<div class="post-metadata">

**Author:** ![Reaverr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Reaverr](https://forums.unrealengine.com/u/Reaverr)\
**Post date:** [July 6, 2019, 5:26pm UTC](https://forums.unrealengine.com/t/order-independent-transparency/117182/19 "2019-07-06T17:26:53Z")

</div>

Oit is grayed out, what must I do to activate it?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6a619fcd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6a619fcd](https://forums.unrealengine.com/u/anonymous_user_6a619fcd)\
**Post date:** [July 15, 2019, 8:24pm UTC](https://forums.unrealengine.com/t/order-independent-transparency/117182/20 "2019-07-15T20:24:52Z")

</div>

> [@kostenickj](#):
>
> In the material editor under the translucency section should have everything you need. There are also a couple of console vars. Type in r.oit and they should come up.

> [@Reaverr](#):
>
> Oit is grayed out, what must I do to activate it?

I’d like to know this, too. Why is greyed out?

---

<div class="post-metadata">

**Author:** ![delnian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@delnian](https://forums.unrealengine.com/u/delnian)\
**Post date:** [March 30, 2020, 6:02am UTC](https://forums.unrealengine.com/t/order-independent-transparency/117182/22 "2020-03-30T06:02:49Z")

</div>

> [@kostenickj](#):
>
> I deleted the post because i no longer want to support it, but the code is here:
> 
> [https://github.com/kostenickj/UnrealEngine/tree/420\_3\_OIT\_Main](https://github.com/kostenickj/UnrealEngine/tree/420_3_OIT_Main)
> 
> Its for 4.20

Hello,  
The link you gave isn’t working. I need to implement OIT for my project. May I have your code?  
Thank you.
