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

<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 13, 2015, 10:16am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/792 "2015-08-13T10:16:20Z")

</div>

> [@click;354459](#):
>
> Is AHR using PBR yet? It looks great, but without PBR it can give very strange results.

It is using PBR.

---

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

</div>

> [@;352635](#):
>
> Realistic lighting that’s also easier to use and fast to get results

So; **AHR** would be very helpful in (ArchViz projects) to get rid of 2 steps which are time consuming (especially in primary design stages):  
1- Unwrapping meshes inside 3D Applications (3ds is my case).  
2- Building lighting map inside Unreal engine.

If that is true… it would be Really wonderful… 🙂

---

<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 13, 2015, 2:51pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/794 "2015-08-13T14:51:40Z")

</div>

> [@cadviz;354752](#):
>
> So; **AHR** would be very helpful in (ArchViz projects) to get rid of 2 steps which are time consuming (especially in primary design stages):  
> 1- Unwrapping meshes inside 3D Applications (3ds is my case).  
> 2- Building lighting map inside Unreal engine.
> 
> If that is true… it would be Really wonderful… 🙂

Unless you have textureless models, you’ll still have to uv unwrap

---

<div class="post-metadata">

**Author:** ![Netrve](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/netrve/32/549870_2.png) [@Netrve](https://forums.unrealengine.com/u/Netrve)\
**Post date:** [August 13, 2015, 3:12pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/795 "2015-08-13T15:12:40Z")

</div>

> [@\_cDub;354768](#):
>
> Unless you have textureless models, you’ll still have to uv unwrap

In some cases you still have to do a second UV unwrap in addition to the first UV for the textures to get the optimal result, but Epic improved the automatic Lightmap-UV so might not be an in most cases anymore.

---

<div class="post-metadata">

**Author:** ![darthviper107](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/darthviper107/32/710746_2.png) [@darthviper107](https://forums.unrealengine.com/u/darthviper107)\
**Post date:** [August 13, 2015, 3:52pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/796 "2015-08-13T15:52:17Z")

</div>

You wouldn’t have to unwrap for lightmaps though, since the dynamic GI solutions don’t use lightmaps.

---

<div class="post-metadata">

**Author:** ![Netrve](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/netrve/32/549870_2.png) [@Netrve](https://forums.unrealengine.com/u/Netrve)\
**Post date:** [August 13, 2015, 7:00pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/797 "2015-08-13T19:00:04Z")

</div>

> [@;354809](#):
>
> You wouldn’t have to unwrap for lightmaps though, since the dynamic GI solutions don’t use lightmaps.

I know, I was adding to cDubs’ and cadviz’s posts ^^

Anyways, nice to see progress , I hope everything works out like you want it to 🙂

---

<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 14, 2015, 5:23pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/798 "2015-08-14T17:23:32Z")

</div>

> [@Keiyentai;354336](#):
>
> :eek: Purdy lol. If you want testers I don’t giving it another go lol. Wana see how my new system will compile stuff compaired to my older one. Also as much I would love to use nVidia’s XVGI it would probably not be worth the potential death sentance for my vidcard lol.

Sure! Need as many people trying as posible.

> [@Blue man;354587](#):
>
> It is using PBR.

Yes it is. Attenuation is a kinda fake though, still working on that, and metals could use some more work, but overall it follows UE PBR system.

> [@Kridian;354323](#):
>
> Does mean you’re being absorbed by Epic? What are you going to spend your million dollars on? 😉

> [@;353535](#):
>
> Just wondering why Epic isnt merging powers with you and kickstart from what you have achieved, rather than doing their own from ground up GI research?

Hmm, and Audi R8 V10, an i7 5960X, and why of course, hookers and booze! Now for real, I actually havent asked Epic for integration, nor been approached by them. Want to have it more polished before I bring ahr to them.

> [@cadviz;354752](#):
>
> So; **AHR** would be very helpful in (ArchViz projects) to get rid of 2 steps which are time consuming (especially in primary design stages):  
> 1- Unwrapping meshes inside 3D Applications (3ds is my case).  
> 2- Building lighting map inside Unreal engine.
> 
> If that is true… it would be Really wonderful… 🙂

Yep, that’s one use case. Also, if you are going for hyperrealistic archviz, there’s no getting around baking, but you could use AHR for the prototyping stages, and when you have everything as you like, you unwrapp and bake.

Well, I have 4.8.3 working, will push it to the repo weekend. I made changes that increased quality, but I’m still working on them, so performance might be worst, depending on the situation. Also, re-tweak the values for grid size and initial displacement. Initial displacement needs to be like 40 or so now, but play with that.  
Also I’m adding two modes for the blur. One is standard box blur (using linear filtering to fetch to pixels at once), that with two passes ( the default) approximates really good a gaussian blur. That one is the faster, but doesn’t preserve edges. Then there is bilateral blur, that works similar but preserves edges. It looks quite better, and is the one enabled by default, but it’s expensive and have some artifacts. That’s something I’m actively working on improving.  
You can switch them with a cvar. The non-edge preserving one was originaly only as a debug, but it’s quite fast and for some specific situations, you might not notice the difference.  
At last but not least, improved voxelization performance, but still more things to do there, so should improve in the coming weeks.  
There are just a few big optimization remaining, so after that and some overall fixes, will look into the particles and bake stuff, and ask epic for integration.

---

<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 14, 2015, 8:49pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/799 "2015-08-14T20:49:45Z")

</div>

![1435050230924.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/6/86ce8b9601260d381c7ed00ea35a095efe45552b.jpeg)

> [@;355492](#):
>
> There are just a few big optimization remaining, so after that and some overall fixes, will look into the particles and bake stuff, and ask epic for integration.

You have an estimate on that ?

---

<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 14, 2015, 9:26pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/800 "2015-08-14T21:26:11Z")

</div>

> [@TAN\_;355615](#):
>
> ![1435050230924.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/6/86ce8b9601260d381c7ed00ea35a095efe45552b.jpeg)
> 
> You have an estimate on that ?

![hqdefault (1).jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/d/dd2c347fa074940fecc63e3dce3a3aeb9fc49949.jpeg)

Nope, sorry. Think somewhere early-mid september should be enough to implement the optimizations.

---

<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 15, 2015, 6:52am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/801 "2015-08-15T06:52:26Z")

</div>

HAHAHAHA 😃 Great reply , you got the sense I tell ya 😃

---

<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 18, 2015, 1:58am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/802 "2015-08-18T01:58:51Z")

</div>

> [@TAN\_;355840](#):
>
> HAHAHAHA 😃 Great reply , you got the sense I tell ya 😃

While I don’t have much knowledge of MG(S), do have contacts that know 😉

Back on topic,a bit of an unexpected delay on the update, but should be up by wednesday top.

---

<div class="post-metadata">

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

</div>

Sounds like things are moving on nicely. San i would also activly advise that why trying to get to work with 4.8 you also start on 4.9 with a preview build. 4.9 has some very nice stuff like being able to set tick intervals, and area lights. Last time i played with our test build AHR i found you can use baked lighting and AHR at the same time, Baking sky illumination with no sun, and world lights like interior lights etc worked well, But still allowed me to use a movable dynamic sun light. May well be slower but being able to achieve the photorealism of baked lighting mixed with dynamic sun for archviz will be fun to play with.

Keep up the great work.

---

<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 18, 2015, 8:17pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/804 "2015-08-18T20:17:27Z")

</div>

Hey can you put the link of Git Repo in your signature ? I think I am downloading the wrong thing. Everything seems to be updated 2-3 months ago or something.

https://.com/Mizugan/AHRUnrealEngine

Also can you remember me again how to update with .rar downloaded fro ? I am supposed to extract it over to build again ?

---

<div class="post-metadata">

**Author:** ![Netrve](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/netrve/32/549870_2.png) [@Netrve](https://forums.unrealengine.com/u/Netrve)\
**Post date:** [August 18, 2015, 8:35pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/805 "2015-08-18T20:35:24Z")

</div>

> [@TAN\_;358472](#):
>
> Hey can you put the link of Git Repo in your signature ? I think I am downloading the wrong thing. Everything seems to be updated 2-3 months ago or something.
> 
> https://.com/Mizugan/AHRUnrealEngine
> 
> Also can you remember me again how to update with .rar downloaded fro ? I am supposed to extract it over to build again ?

TAN\_, is the correct link: https://.com//UnrealEngine 😃

---

<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 18, 2015, 8:43pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/806 "2015-08-18T20:43:18Z")

</div>

Thanks mate ! 😃

---

<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 19, 2015, 2:52am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/807 "2015-08-19T02:52:14Z")

</div>

EDIT: Pushed the changes to **release** branch now, the link is **[here](https://.com//UnrealEngine/tree/release)**.  
While I want to add some more things, and fix others, they are minor changes that I should be doing along week, so you guys can start compiling and using 4.8.3  
Main changes are:  
1) Updated to 4.8.3  
2) Improved voxelization culling and performance  
3) Added the (disabled until I add a cvar later week ) new blur version. Slow, and with some artifacts, but good edge preservation  
4) Improved tracing quality by switching to 3D textures and an exact voxel traversal algorithm. Performance is about the same at same samples count, but much better quality now. Voxel size now influences quite a bit tracing speed.  
5) **BUG** Sadly, reflections are broken.

There are some minor fixes that I should solve along week, and there are some other bigger optimizations like fixing the voxelization pixel shader stage(using weird and obscure hack right now) and increasing the step size when using higher mip levels (now I’m using lower mips as the ray gets further away, but just for the emissive, the scene volume that is the one I use for the intersections remains the same. While sub-optimal, it does improve quality over only using the finest mip). Also I have not yet finished, but should’d take long, a version of anisotropic voxels, to reduce light leaking, but using some spare bits I have now. Also using spare bits on the scene volume, I plan to average the voxel with the prev one, to make movement smoother. is tricky though, given that I’m now using 3D textures and there’s a stupid limitation (that was lifted with DX 11.3/12) that prevents you from reading from a RWTexture3D if the format is not a 32 bits single component, so will have to work my way around that.  
Please test it and report findings, interested mainly in tracing and voxelization performance, and if you still have your old build around, please run a profilegpu and write down the times for all the things that start with AHR, and compare that with the new times. Would be really useful.

---

<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 19, 2015, 11:53am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/808 "2015-08-19T11:53:10Z")

</div>

OK I’ll download and try it with my character in blueprint examples levels I posted before. Not sure how it will turn out though, since she has reflective metallic parts.

Also can I also ask, do we have real time “Godrays” basically sun shafts in AHR ? Also does things like fog contribute to that ?

Thanks and keep up the work 😉

---

<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 19, 2015, 3:00pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/809 "2015-08-19T15:00:05Z")

</div>

> [@TAN\_;359067](#):
>
> OK I’ll download and try it with my character in blueprint examples levels I posted before. Not sure how it will turn out though, since she has reflective metallic parts.
> 
> Also can I also ask, do we have real time “Godrays” basically sun shafts in AHR ? Also does things like fog contribute to that ?
> 
> Thanks and keep up the work 😉

Hey, I mixed up my branches names. Updated last post, but in any case, the link is https://.com//UnrealEngine/tree/release

About sun shafts, no, but it’s something to look into, should be quite easy to implement, basically just tracing in the direction of the sun.  
EDIT: Well, screwed it, again. Updated the post, that’s the correct link

---

<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 19, 2015, 4:01pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/810 "2015-08-19T16:01:09Z")

</div>

Ok, fixed everything with Git. All the changes in release now ( https://.com//UnrealEngine/tree/release )  
Sorry about that guys, git can be a \*\*\*\*\* D:

---

<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 19, 2015, 6:11pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/811 "2015-08-19T18:11:31Z")

</div>

> [@;359195](#):
>
> About sun shafts, no, but it’s something to look into, should be quite easy to implement, basically just tracing in the direction of the sun.  
> EDIT: Well, screwed it, again. Updated the post, that’s the correct link

![11863347_10204541328475398_3133603202550897945_n.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/e/8e3e45f25e321264337fd76a50706bf42a544c43.jpeg)

You da man. I would like to contribute that part with my utmost efforts !

Also downloading now… again 😃

**EDIT:** UE4 had it’s own Fog system right ? You think that would be a problem with the overall AHR ?

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

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