# 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:** 44

<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:** [August 27, 2015, 11:47am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/873 "2015-08-27T11:47:44Z")

</div>

> [@Blue man;365737](#):
>
> I wrote that wrong(“I just needed to wait a bit.”)  
> I meant to say: when I toggle use indirect lighting engine stops working but I just need to wait a minute and then it starts working again.
> 
> Sorry my English is not great 🙂

Oh I see haha. Yeah, a small freeze when enable the lights it’s a bit odd, but understandable. What’s your system specs?

---

<div class="post-metadata">

**Author:** ![Blue\_man](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Blue\_man](https://forums.unrealengine.com/u/Blue_man)\
**Post date:** [August 27, 2015, 11:54am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/874 "2015-08-27T11:54:18Z")

</div>

> [@;365747](#):
>
> Oh I see haha. Yeah, a small freeze when enable the lights it’s a bit odd, but understandable. What’s your system specs?

Gpu: AMD R9 270 2Gb  
Cpu: AMD Phenom II black edition x3 2.8Ghz  
Memory: 6Gb RAM

I got pretty good fps in your level:

- 60fps in normal mode
- 40fps in fullscreen

---

<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:** [August 27, 2015, 12:35pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/875 "2015-08-27T12:35:29Z")

</div>

> [@Blue man;365754](#):
>
> Gpu: AMD R9 270 2Gb  
> Cpu: AMD Phenom II black edition x3 2.8Ghz  
> Memory: 6Gb RAM
> 
> I got pretty good fps in your level:
> 
> - 60fps in normal mode
> - 40fps in fullscreen

. It might be something with the ram, will try taking out a few sticks on my computer when I get home(rocking 16gb back home ;D). It’s a big freeze, like a minute or more like a few seconds?

---

<div class="post-metadata">

**Author:** ![Blue\_man](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Blue\_man](https://forums.unrealengine.com/u/Blue_man)\
**Post date:** [August 27, 2015, 12:39pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/876 "2015-08-27T12:39:52Z")

</div>

> [@;365769](#):
>
> . It might be something with the ram, will try taking out a few sticks on my computer when I get home(rocking 16gb back home ;D). It’s a big freeze, like a minute or more like a few seconds?

16 Gb-nice 😃  
It is something like 20 to 30 seconds.

---

<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:** [August 27, 2015, 12:50pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/877 "2015-08-27T12:50:46Z")

</div>

> [@Blue man;365771](#):
>
> 16 Gb-nice 😃  
> It is something like 20 to 30 seconds.

Ok, that’s problematic, will try to look into it.

---

<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:** [August 27, 2015, 2:58pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/878 "2015-08-27T14:58:45Z")

</div>

Sorry I have been away, dealing with academic work.

Can I ask a personal request from everyone ? Can you use forums own “Attach Picture” function instead of imgur ? Imgur is banned in Turkey recently, thus I can not see your results directly. Thanks.

---

<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:** [August 27, 2015, 3:03pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/879 "2015-08-27T15:03:10Z")

</div>

> [@TAN\_;365886](#):
>
> Sorry I have been away, dealing with academic work.
> 
> Can I ask a personal request from everyone ? Can you use forums own “Attach Picture” function instead of imgur ? Imgur is banned in Turkey recently, thus I can not see your results directly. Thanks.

Had no idea, sure. I do tend to have problems uploading with attach picture.

---

<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:** [August 27, 2015, 10:22pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/880 "2015-08-27T22:22:42Z")

</div>

pls no attach. use [abload.de](http://abload.de)

---

<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:** [August 27, 2015, 10:42pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/881 "2015-08-27T22:42:32Z")

</div>

Or just use puush, you can take and upload screenshots with one single key press 🙂

 ![9ad902fb17.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/b/15b3aea8d7a5811e4d5641b8c8a153f112171822.png)

Took me 2 seconds to create that screenshot 🆒

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_138c2332](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_138c2332](https://forums.unrealengine.com/u/anonymous_user_138c2332)\
**Post date:** [August 27, 2015, 10:59pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/882 "2015-08-27T22:59:58Z")

</div>

Don’t you have a Drive or Dropbox account?

---

<div class="post-metadata">

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

</div>

I love how drop box will auto save a print screen and I don’t have to paste it into paint.

---

<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:** [August 28, 2015, 3:20pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/884 "2015-08-28T15:20:53Z")

</div>

OK. Redownloaded AHR. Redownloaded the Test Level. It is working now.

 ![1.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/3/93658da6b9f5f7fd7443b5f1fc1c08b2c2e43dca.jpeg)

 ![2.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/0/10220fea06ab97358fd80a38bd327dc0680905b5.jpeg)

Now it wokrd I wanted to try “Blueprints” level one more time. Still very low FPS but at least seems to be working (I think ? ) I think that level is not a good one try it out. Maybe I should stop testing AHR there. Or someone more knowledgable than me should try ?

Well whatever. “Preintegrated Skin” material seems to be working, though it seems I lost some reflection in other places.

 ![3.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/c/6c437437a40289642d99dfe8a68498e9415eeef4.jpeg)

 ![27f3cf22ca66a0f299ba9d1c50679b183b90de9a.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/7/f/27f3cf22ca66a0f299ba9d1c50679b183b90de9a.jpeg)

 ![5.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/b/7b13155fb28188014e1ec48ab4749c34ec3bfe35.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:** [August 28, 2015, 3:34pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/885 "2015-08-28T15:34:30Z")

</div>

> [@TAN\_;366698](#):
>
> OK. Redownloaded AHR. Redownloaded the Test Level. It is working now.  
> Now it wokrd I wanted to try “Blueprints” level one more time. Still very low FPS but at least seems to be working (I think ? ) I think that level is not a good one try it out. Maybe I should stop testing AHR there. Or someone more knowledgable than me should try ?  
> Well whatever. “Preintegrated Skin” material seems to be working, though it seems I lost some reflection in other places.

to see that’s working correctly for you. Yeah, blueprints seems to be a complex one. I’m working with it, getting there, but still needs some more love.  
BTW, improving the blur a lot, should be on git by the weekend. Looking quite better and performance is about the same as before.  
EDIT: Also, it would seem that the material editor is crashing again. Guess I’ll need to fix that one eventually.  
Another bug I’m aware off, is if you use a lower screen percentage or you resize the editor window, making it smaller. If you do that, you’ll see that everything get’s quite distorted, it’s because a mismatch between the render targets size and the viewport size. Been there since last year. I have a workaround, that consists on forcing the engine to recreate rt on resolution change, but have it disabled it cause it screws up the editor UI performance. Should probably make it a cvar though, at least so the user can choose wheter to enable or disable it.

---

<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:** [August 28, 2015, 7:40pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/886 "2015-08-28T19:40:16Z")

</div>

Hey guys, update.  
Pushed a new commit to git with the new bilateral blur. Performance is a bit lower, but it preserves edges, and that makes it look quite better.  
It’s on by default now, but the cvar its still there if you want to try it on/off.

---

<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:** [August 28, 2015, 10:31pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/887 "2015-08-28T22:31:58Z")

</div>

Hey . I tried AHR with Particles Level. You know the one in the snowy cave. Since the reflection is gone all the ice materials was broken so I stopped. I just wanted to drop a note here.

So I guess I will wait until your next “grand” update for further tests on AHR. Or if you have any specific things you want me to test you can drop your requirements here.

Thanks for the hard work as always. Hope turn into “_The Great Thing Unreal Always Needed_” (There are a great many people that hates light baking including me 😉 )

---

<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:** [August 28, 2015, 10:49pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/888 "2015-08-28T22:49:10Z")

</div>

> [@TAN\_;366961](#):
>
> Hey . I tried AHR with Particles Level. You know the one in the snowy cave. Since the reflection is gone all the ice materials was broken so I stopped. I just wanted to drop a note here.
> 
> So I guess I will wait until your next “grand” update for further tests on AHR. Or if you have any specific things you want me to test you can drop your requirements here.
> 
> Thanks for the hard work as always. Hope turn into “_The Great Thing Unreal Always Needed_” (There are a great many people that hates light baking including me 😉 )

Sure, I’ll let you know if I need something specific. Thanks for the support!  
About the reflections, while they are still broken, at least now they are showing. I had disabled them by mistake, fixed that on the commit I pushed earlier.

---

<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:** [August 31, 2015, 2:23am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/889 "2015-08-31T02:23:50Z")

</div>

Fixed the material editor bug! Just disabled AHR on the material preview. Was broken there anyway. Also managed to disable AHR on the UI and thumbnails, that it was the cause of slowdowns when scrolling down the materials and similar editor UI stuff.  
Also added a workaround for a bug with the render targets. Haven’t fixed it, but at least now the workaround is not that intrusive. Even dynamic resolution is working now! The only thing is when you select a camera on your scene, you’ll get swarmed by log warnings about render target resize. Should disable them if AHR is being used for as long as I use workaround. Still, not really a problem.  
Only big bug that remains now is the broken reflections.

---

<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:** [August 31, 2015, 7:38am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/890 "2015-08-31T07:38:05Z")

</div>

> [@;368126](#):
>
> Only big bug that remains now is the broken reflections.

Wow, that is great news now I say 🙂 Fast as always 😃

**EDIT:** \*\*\*\* LaTeX !!! Who invented piece of junk ?!!? How in da bloody hell became the standard of paper writing ?!?! Who let that happen ! I have seen physical typewriters easier to work with !!

---

<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 6, 2015, 3:32am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/891 "2015-09-06T03:32:58Z")

</div>

Sorry for the radio silence guys, been a rough week, but somehow I managed to do :  
 ![ahr4_9.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/1/6/a164e0cabf9197dc106ec5a7f702a78b84d12ec8.png)  
Once again, look the image carefuly 😉  
Should be on git by tomorrow, will let you people know.  
out.

---

<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 6, 2015, 4:05am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/892 "2015-09-06T04:05:42Z")

</div>

Ok, need to run some more tests, but it would seem _**(EARLY, EXPERIMENTAL RESULTS FOLLOW, TAKE WITH ENOUGH SALT TO CAUSE A HEART CONDITION)**_ that DX12 makes voxelization about 4 times faster. Had the feeling it could help there, and it’s quite to see that improvement without actually changing code.  
In any case, it doesn’t always translate in better fps, and profilegpu returns some strange stuff, but quite ! And should only get better as Epic polishes DX12 implementation.  
I still have a few big things to do to improve tracing performance, but after that, the bottleneck will be on voxelization (depending on the hardware/scene, it’s already there), so any improvement there is more than welcome.

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

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