# Realtime Dynamic GI + Reflections + AO + Emissive - AHR

**URL:** <https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923>\
**Category:** Game Development\
**Tags:** unreal-engine\
**Created:** [September 24, 2014, 1:58am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923 "2014-09-24T01:58:17Z")\
**Posts on this page:** 20\
**Page:** 48

<div class="post-metadata">

**Author:** ![TAN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TAN](https://forums.unrealengine.com/u/TAN)\
**Post date:** [September 15, 2015, 12:26pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/953 "2015-09-15T12:26:19Z")

</div>

> [@;379312](#):
>
> Just a heads up, AHR doesn’t supports (currently, will implement it) GI for particles

Keiyentai is crying right now 😃

---

<div class="post-metadata">

**Author:** ![cadviz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cadviz](https://forums.unrealengine.com/u/cadviz)\
**Post date:** [September 15, 2015, 1:41pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/954 "2015-09-15T13:41:27Z")

</div>

Dear

For the past 2 months I was too busy to keep on following your thread… and as I see now it became a huge one…!!  
Can you please; do me/us a favor…? I think it is time to make an updated small file containing:

AHR’s main features, Best advantages, What it covers & limitations as well  
Main instructions (How to use) to get best results… something like that…  
I may guess that would be very helpful…

Happy Birthday &  
Best wishes 😃

---

<div class="post-metadata">

**Author:** ![RyanTorant](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RyanTorant](https://forums.unrealengine.com/u/RyanTorant)\
**Post date:** [September 15, 2015, 1:46pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/955 "2015-09-15T13:46:43Z")

</div>

> [@TAN\_;379303](#):
>
> Can you also tell me after you tested how you did that (using DX12 on different levels) ? I am using a 670MX but for some reason I was unable to activate it.
> 
> Thanks.

I think he meant that the 660 only supports some of the dx12 features(for example, only Maxwell and some AMD cards support conservative rasterization) In any case, the un-supported features are not used by ahr or ue AFIK.  
You should have no problems running dx12 with your gpu, it’s even a kepler one. You sure you have the latest drivers (and running win 10) ?

---

<div class="post-metadata">

**Author:** ![RyanTorant](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RyanTorant](https://forums.unrealengine.com/u/RyanTorant)\
**Post date:** [September 15, 2015, 2:05pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/956 "2015-09-15T14:05:55Z")

</div>

> [@cadviz;379424](#):
>
> Dear
> 
> For the past 2 months I was too busy to keep on following your thread… and as I see now it became a huge one…!!  
> Can you please; do me/us a favor…? I think it is time to make an updated small file containing:
> 
> AHR’s main features, Best advantages, What it covers & limitations as well  
> Main instructions (How to use) to get best results… something like that…  
> I may guess that would be very helpful…
> 
> Happy Birthday &  
> Best wishes 😃

Sure, I’ll add that to starting page, and try to keep it up to date.  
I haven’t quite done that yet because it can be time consuming, and I don’t have much of it to begin with D:  
In any case, you at right, even if its a small description or tutorial it’ll help people get around ahr

---

<div class="post-metadata">

**Author:** ![TAN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TAN](https://forums.unrealengine.com/u/TAN)\
**Post date:** [September 15, 2015, 5:13pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/957 "2015-09-15T17:13:40Z")

</div>

OK OK, I got it. It is my mistake. I did not know about DX12 and tried to activate it on a Windows 8 system. My stupidity, sorry.

---

<div class="post-metadata">

**Author:** ![Keiyentai](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Keiyentai](https://forums.unrealengine.com/u/Keiyentai)\
**Post date:** [September 16, 2015, 4:36am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/958 "2015-09-16T04:36:40Z")

</div>

Right now DX12 is only a Windows 10 thing. Also unless your running a 9xx Maxwell based nVidia card and the current AMD cards (not sure exactly which ones support what haven’t used an AMD/ATi card since the HD3200). Though I tried DX12 with a scene that’s particle based lighting and ya \>_\> it was like “I don’t know what to do!?!” so I think I will test DX12 when I get my Titan since it runs “Full DX12” though DX12 is interesting…and it’s different Tiers. My 660 though supports the basics so probably won’t do anything different then DX11 least right now. I will find a way to make lit particles work \>_\> I got LPV working when it wasn’t suppose to way back when it first got implimented. 😛 I like “breaking” UE4 \>\_\>

---

<div class="post-metadata">

**Author:** ![DylserX](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dylserx/32/755714_2.png) [@DylserX](https://forums.unrealengine.com/u/DylserX)\
**Post date:** [September 16, 2015, 11:39am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/959 "2015-09-16T11:39:50Z")

</div>

Tested AHR out in the Reflections test scene hehe, getting some pretty nice results.

[![](https://i.imgur.com/YGaVVeU.png) ](https://i.imgur.com/YGaVVeU.png)

[![](https://i.imgur.com/1WPmXAw.png) ](https://i.imgur.com/1WPmXAw.png)

[![](https://i.imgur.com/tmcNXNi.png) ](https://i.imgur.com/tmcNXNi.png)

---

<div class="post-metadata">

**Author:** ![TAN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TAN](https://forums.unrealengine.com/u/TAN)\
**Post date:** [September 16, 2015, 1:17pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/960 "2015-09-16T13:17:39Z")

</div>

> [@DylserX;380154](#):
>
> Tested AHR out in the Reflections test scene hehe, getting some pretty nice results.
> 
> [http://i.imgur.com/YGaVVeU.png](http://i.imgur.com/YGaVVeU.png)
> 
> [http://i.imgur.com/1WPmXAw.png](http://i.imgur.com/1WPmXAw.png)
> 
> [http://i.imgur.com/tmcNXNi.png](http://i.imgur.com/tmcNXNi.png)

Hooooollllyyy… is AHR ?! HELL YEAHS !

Can you also give your FPS, AHR settings and system specs ?

\*\* EDIT:\*\* do you have a general roadmap ? I just calculated that I will finally have the necessary time to start my game in UE4 in earnest within 3-4 weeks and wondering if it would be possible to use your AHR for it ? Do you plan on a “initial merge” or somethingl like that ? Like merging it main branch in a stage you deem “usable” and then improving on it as the time goes ???

---

<div class="post-metadata">

**Author:** ![DylserX](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dylserx/32/755714_2.png) [@DylserX](https://forums.unrealengine.com/u/DylserX)\
**Post date:** [September 16, 2015, 11:44pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/961 "2015-09-16T23:44:26Z")

</div>

I get from 25 - 32 fps atm

AMD FX-8120 @ 3.2Ghz  
AMD R9 390 8GB GPU  
32GB DDR3 1600 Ram

Ignore the "Diffuse samples, usually only have them on 32

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/9/969b3b986f7689d312443346b845a3d4dafe7f98.jpeg)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/f/e/4fe647c438bc77c3eabd51b08bb06dc36a7bbbf1.jpeg)  
[https://youtube.com/watch?v=ht0PPDwybZ8](https://youtube.com/watch?v=ht0PPDwybZ8)

---

<div class="post-metadata">

**Author:** ![RyanTorant](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RyanTorant](https://forums.unrealengine.com/u/RyanTorant)\
**Post date:** [September 16, 2015, 11:57pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/962 "2015-09-16T23:57:55Z")

</div>

That screens made me want to play with that specific scene 😃  
Here’s a screen comparing reflection types:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/6/f/d6fae1ab3029b559604736990a5c838a5c674a87.jpeg)

> [@TAN\_;380207](#):
>
> \*\* EDIT:\*\* do you have a general roadmap ? I just calculated that I will finally have the necessary time to start my game in UE4 in earnest within 3-4 weeks and wondering if it would be possible to use your AHR for it ? Do you plan on a “initial merge” or somethingl like that ? Like merging it main branch in a stage you deem “usable” and then improving on it as the time goes ???

Actually there’s just a few things I want to do before asking Epic for integration, and that changes are  
-Rewrite part of the tracing algorithm. Want to put it all in one pass, so that you can control the number of rays  
-Improve tracing speed by using the binary grid properly, and not how it’s being used now  
-Multiple bounces

When that things are done, it can be said that AHR is ready for integration with the main branch, as a WIP of course. I’ll ask Epic to join it to the main branch. I also want to ask them for an internship there, for next year. I belive I showed that I know what I’m doing, and if they actually want AHR into UE, who better that the guy that created it right ;D  
Anyway, still need to do a lot of work. My goal is to have all that done by the end of the year, and also start working on the following “extra” items:  
-Particles lighting  
-Multiple bounces for reflection  
-Improve tracing speed by treating the binary grid as an octree and doing a stackless traverse  
-AHR based bake. The idea is to fire a secondary voxelization stage, trace, store that on a voxel grid, blur, and then compact it to a sparse octree. That way you get high quality bakes in seconds, and also you dont need to make lightmap UVs.

To answer your question directly, in 3-4 weeks I hope to have the first two things mostly covered up, so yeah, you can start with AHR.  
On the other side, university is taking a toll on my free time ( it’s 0 currently tbh ), so that’s why development is so slow. I’m quite confident that with 8 hours per day dedication, and working on a team that knows the way around UE (_cough_ _cough_ aka working at Epic _cough_ _cough_. Even if they are not actually working on AHR, having someone to ask a quick question about the engine saves so much time) AHR could be done in 2 - 3 months.

Some may ask why use AHR instead of VXGI for the main branch, and that’s a fair question. VXGI is more stable, and normally looks better. There are two main differences (currently, the particles and bake stuff would make it 4) one being the performance gap (AHR is still faster than VXGI, by a large margin depending on the settings. Specially specular tracing, that’s crazy slow on VXGI) and the other, and to my opinon the main one when it comes to integration, is that AHR is running directly in the engine, all the code is there and doesn’t rely on external libraries like gameworks. That makes it quite more flexible, as Epic can actually see what AHR is doing and improve from there.

---

<div class="post-metadata">

**Author:** ![RyanTorant](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RyanTorant](https://forums.unrealengine.com/u/RyanTorant)\
**Post date:** [September 17, 2015, 12:12am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/963 "2015-09-17T00:12:10Z")

</div>

> [@DylserX;380711](#):
>
> I get from 25 - 32 fps atm
> 
> AMD FX-8120 @ 3.2Ghz  
> AMD R9 390 8GB GPU  
> 32GB DDR3 1600 Ram

Could you make a profilegpu and post a screen? I want to see how the frame time is distributed.

---

<div class="post-metadata">

**Author:** ![DylserX](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dylserx/32/755714_2.png) [@DylserX](https://forums.unrealengine.com/u/DylserX)\
**Post date:** [September 17, 2015, 12:21am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/964 "2015-09-17T00:21:48Z")

</div>

Such a stark difference haha 😛

[![](https://i.imgur.com/Yb4x0Es.jpg) ](https://i.imgur.com/Yb4x0Es.jpg)

[![](https://i.imgur.com/oO3lXlc.jpg) ](https://i.imgur.com/oO3lXlc.jpg)

---

<div class="post-metadata">

**Author:** ![Keiyentai](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Keiyentai](https://forums.unrealengine.com/u/Keiyentai)\
**Post date:** [September 17, 2015, 2:16am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/965 "2015-09-17T02:16:10Z")

</div>

Ooooh shiney. That is looking with AHR. Still working on a forest scene can’t wait to see how well it works with that scene. _grin_

---

<div class="post-metadata">

**Author:** ![Bladerskb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bladerskb](https://forums.unrealengine.com/u/Bladerskb)\
**Post date:** [September 17, 2015, 3:32am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/966 "2015-09-17T03:32:05Z")

</div>

i have a 970 and would love to test things out. but a question i have is, whats going on with the metal surfaces. they look whitish cloudy.

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [September 17, 2015, 4:03am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/967 "2015-09-17T04:03:18Z")

</div>

So Epic knows how Epic is 🆒

---

<div class="post-metadata">

**Author:** ![Keiyentai](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Keiyentai](https://forums.unrealengine.com/u/Keiyentai)\
**Post date:** [September 17, 2015, 7:06am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/968 "2015-09-17T07:06:17Z")

</div>

Whoa retweeting it? That is freaking . Hopefully it’s a good sign for the future of UE4 and AHR. I know I love AHR.

---

<div class="post-metadata">

**Author:** ![TAN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TAN](https://forums.unrealengine.com/u/TAN)\
**Post date:** [September 17, 2015, 10:09am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/969 "2015-09-17T10:09:59Z")

</div>

> [@;380719](#):
>
> That screens made me want to play with that specific scene 😃  
> Here’s a screen comparing reflection types:
> 
> [http://i.imgur.com/OTsJmzZ.png](http://i.imgur.com/OTsJmzZ.png)
> 
> Actually there’s just a few things I want to do before asking Epic for integration, and that changes are  
> -Rewrite part of the tracing algorithm. Want to put it all in one pass, so that you can control the number of rays  
> -Improve tracing speed by using the binary grid properly, and not how it’s being used now  
> -Multiple bounces
> 
> When that things are done, it can be said that AHR is ready for integration with the main branch, as a WIP of course. I’ll ask Epic to join it to the main branch. I also want to ask them for an internship there, for next year. I belive I showed that I know what I’m doing, and if they actually want AHR into UE, who better that the guy that created it right ;D  
> Anyway, still need to do a lot of work. My goal is to have all that done by the end of the year, and also start working on the following “extra” items:  
> -Particles lighting  
> -Multiple bounces for reflection  
> -Improve tracing speed by treating the binary grid as an octree and doing a stackless traverse  
> -AHR based bake. The idea is to fire a secondary voxelization stage, trace, store that on a voxel grid, blur, and then compact it to a sparse octree. That way you get high quality bakes in seconds, and also you dont need to make lightmap UVs.
> 
> To answer your question directly, in 3-4 weeks I hope to have the first two things mostly covered up, so yeah, you can start with AHR.  
> On the other side, university is taking a toll on my free time ( it’s 0 currently tbh ), so that’s why development is so slow. I’m quite confident that with 8 hours per day dedication, and working on a team that knows the way around UE (_cough_ _cough_ aka working at Epic _cough_ _cough_. Even if they are not actually working on AHR, having someone to ask a quick question about the engine saves so much time) AHR could be done in 2 - 3 months.
> 
> Some may ask why use AHR instead of VXGI for the main branch, and that’s a fair question. VXGI is more stable, and normally looks better. There are two main differences (currently, the particles and bake stuff would make it 4) one being the performance gap (AHR is still faster than VXGI, by a large margin depending on the settings. Specially specular tracing, that’s crazy slow on VXGI) and the other, and to my opinon the main one when it comes to integration, is that AHR is running directly in the engine, all the code is there and doesn’t rely on external libraries like gameworks. That makes it quite more flexible, as Epic can actually see what AHR is doing and improve from there.

So Epic knows how Epic is 🆒  
[/QUOTE]

HOOOLY \*\*\*\*

\*\*\*\* YEAHS !!! 😃

Way to go ! As an old saying goes "One step closer to victory ! " 😃

I would really like to see you at Epic beating the \*\*\*\* out of tech. Also great to hear that it would be ready to use within 3-4 weeks. Hopefully I’ll make a good showcase out of your tech as a game.

Also please don’t forget my little wish; Realtime Sunshafts 😉

---

<div class="post-metadata">

**Author:** ![DylserX](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dylserx/32/755714_2.png) [@DylserX](https://forums.unrealengine.com/u/DylserX)\
**Post date:** [September 17, 2015, 12:47pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/970 "2015-09-17T12:47:58Z")

</div>

> [@;380730](#):
>
> Could you make a profilegpu and post a screen? I want to see how the frame time is distributed.

Yeh sure mate, almost home now will post it soon.

---

<div class="post-metadata">

**Author:** ![DylserX](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dylserx/32/755714_2.png) [@DylserX](https://forums.unrealengine.com/u/DylserX)\
**Post date:** [September 17, 2015, 1:11pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/971 "2015-09-17T13:11:00Z")

</div>

> [@;380730](#):
>
> Could you make a profilegpu and post a screen? I want to see how the frame time is distributed.

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/2/d/82d5fbb11a28479f68d7af5fafc85f118e78501f.jpeg)

---

<div class="post-metadata">

**Author:** ![RyanTorant](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RyanTorant](https://forums.unrealengine.com/u/RyanTorant)\
**Post date:** [September 17, 2015, 1:11pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/972 "2015-09-17T13:11:18Z")

</div>

> [@DylserX;381058](#):
>
> Yeh sure mate, almost home now will post it soon.

EDIT : You just did 😃

So Epic knows how Epic is 🆒  
[/QUOTE]

\*\*\*\* Sweeney retweeted it! What a way to start the morning! 😃

[Previous page](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923.md?page=47)

[Next page](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923.md?page=49)
