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

<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:** [October 6, 2015, 2:14pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/1033 "2015-10-06T14:14:35Z")

</div>

Double posted//

---

<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:** [October 6, 2015, 2:15pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/1034 "2015-10-06T14:15:09Z")

</div>

> [@;394081](#):
>
> Glad to see you’re liking it.  
> +1 compared to what build? Also what gpu are you using?

Ah the one 2 build before that (that makes it 4.9 I guess ? Or 4.8 something ? )

Also GTX 670 MX is the GPU.

---

<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:** [October 6, 2015, 3:50pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/1035 "2015-10-06T15:50:02Z")

</div>

> [@TAN\_;394148](#):
>
> Ah the one 2 build before that (that makes it 4.9 I guess ? Or 4.8 something ? )
> 
> Also GTX 670 MX is the GPU.

Could you make a profilegpu? Expanding the AHR options, I want to see something

---

<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:** [October 7, 2015, 8:22am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/1036 "2015-10-07T08:22:31Z")

</div>

> [@;](#):
>
> Could you make a profilegpu? Expanding the AHR options, I want to see something

Touched nothing. Just opened the scene with latest AHR build and took screenshots.

 ![2.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/4/e4511170b735b06bb092b7fbb1a7c93d54ed35cd.jpeg)

 ![1.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/6/e6b22e251f09229066ac31e65be4e7501acfd3a1.jpeg)

Also are we able to package the projects ? I want t try it as a standalone application after packaged.

EDIT: I just did. Performance remained the same though. Still felt good 😃

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2e70cb911](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2e70cb911](https://forums.unrealengine.com/u/anonymous_user_2e70cb911)\
**Post date:** [October 7, 2015, 2:14pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/1037 "2015-10-07T14:14:37Z")

</div>

Raytraced gi???

I didn’t read the full tread, but you guys did a RAY TRACED GI what I can download from ??? :o

---

<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:** [October 7, 2015, 2:52pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/1039 "2015-10-07T14:52:11Z")

</div>

> [@TAN\_;394671](#):
>
> Touched nothing. Just opened the scene with latest AHR build and took screenshots.
> 
> Also are we able to package the projects ? I want t try it as a standalone application after packaged.
> 
> EDIT: I just did. Performance remained the same though. Still felt good 😃

Great, but actually I wanted to see other part of the profile gpu ^^  
Expand under Lights -\> Direct Lighting -\> Shadowed Lights, and there you’ll see more AHR markers. Please take a screen of that

---

<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:** [October 7, 2015, 3:49pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/1040 "2015-10-07T15:49:26Z")

</div>

> [@;394881](#):
>
> Great, but actually I wanted to see other part of the profile gpu ^^  
> Expand under Lights -\> Direct Lighting -\> Shadowed Lights, and there you’ll see more AHR markers. Please take a screen of that

…

 ![b68e84cbbaf9b7fc281607b59e8738f83d5866c1.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/8/b68e84cbbaf9b7fc281607b59e8738f83d5866c1.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:** [October 7, 2015, 4:35pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/1041 "2015-10-07T16:35:12Z")

</div>

Strange, everything seems to be correctly. Odd you didn’t experienced a performance improvement, cause using one less ray cuts a bunch of the frame time ( 3.85 ms in your case).  
Most likely you were comparing the new version with the one after the 1 ray cut.  
Anyway, just wanted to make sure that the temporal filter wasn’t getting in the way and causing a performance drop, but seems to not be the case. .

Working on some performance improvements now, will have more info in a few days.

---

<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:** [October 7, 2015, 5:24pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/1042 "2015-10-07T17:24:50Z")

</div>

> [@;394962](#):
>
> Strange, everything seems to be correctly. Odd you didn’t experienced a performance improvement, cause using one less ray cuts a bunch of the frame time ( 3.85 ms in your case).  
> Most likely you were comparing the new version with the one after the 1 ray cut.  
> Anyway, just wanted to make sure that the temporal filter wasn’t getting in the way and causing a performance drop, but seems to not be the case. .
> 
> Working on some performance improvements now, will have more info in a few days.

I was using Moving Bounds. Maybe it’s trickery ???

Still you sound satisfied so… all OK I guess ? 😃

---

<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:** [October 7, 2015, 8:26pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/1043 "2015-10-07T20:26:54Z")

</div>

> [@TAN\_;395005](#):
>
> I was using Moving Bounds. Maybe it’s trickery ???
> 
> Still you sound satisfied so… all OK I guess ? 😃

Never mind, I had just confused myself. Ignore me from time to time 😃

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d76972241](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d76972241](https://forums.unrealengine.com/u/anonymous_user_d76972241)\
**Post date:** [October 7, 2015, 10:19pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/1044 "2015-10-07T22:19:20Z")

</div>

I found out I made a ray tracer Path tracer hybrid? Really Nice and fast results for a ray tracer/path tracer?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d76972241](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d76972241](https://forums.unrealengine.com/u/anonymous_user_d76972241)\
**Post date:** [October 7, 2015, 10:23pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/1045 "2015-10-07T22:23:32Z")

</div>

yeah I found Out I made a ray tracer path tracer hybrid? really fast and nice results with Extremely low performance cost. 0.3mb’s at 25% cpu usage (2 core only 4.0ghz OC). render times around 1 minuet, or two, for full GI, Just lighting/full reflections/PBR. 1\<minuet. The reflections Are multiple bounces, also does not use voxels, or any speed ups such as gpu, or cosine weighted BDRFS.

---

<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:** [October 7, 2015, 10:24pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/1046 "2015-10-07T22:24:35Z")

</div>

Ahr is growing so quickly ,I can only say wow and thank you for doing all of ,I hope ahr will get merged in the main branch 😃

---

<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:** [October 7, 2015, 10:35pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/1047 "2015-10-07T22:35:59Z")

</div>

> [@Blue man;395214](#):
>
> Ahr is growing so quickly ,I can only say wow and thank you for doing all of ,I hope ahr will get merged in the main branch 😃

Thanks! I hope so too.

> [@StopItRonStop!;395212](#):
>
> yeah I found Out I made a ray tracer path tracer hybrid? really fast and nice results with Extremely low performance cost. 0.3mb’s at 25% cpu usage (2 core only 4.0ghz OC). render times around 1 minuet for full GI, Just lighting/full reflections/PBR. 1\<minuet. The reflections Are multiple bounces, also does not use voxels, or any speed ups such as gpu, or cosine weighted BDRFS.

> [@StopItRonStop!;395208](#):
>
> I found out I made a ray tracer Path tracer hybrid? Really Nice and fast results for a ray tracer/path tracer?

Can you please take a few minutes to write calmly and explain what is it that you want to say? I’m sorry, but I don’t really follow you

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d76972241](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d76972241](https://forums.unrealengine.com/u/anonymous_user_d76972241)\
**Post date:** [October 8, 2015, 1:53am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/1048 "2015-10-08T01:53:07Z")

</div>

I’ll post my Giant thing here in a second. I have been trying to render something I have been getting some glitches

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d76972241](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d76972241](https://forums.unrealengine.com/u/anonymous_user_d76972241)\
**Post date:** [October 8, 2015, 2:57am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/1049 "2015-10-08T02:57:27Z")

</div>

Ray Tracer (With Path Traced GI)

I decided to make a ray tracer (kind of because was not getting what I was saying. An I wanted to. :P) Now I have slowly developed it. It can now do GI, Ao, Pbr, reflections, and some other things. I made a function that did AO (once most of my phong lighting, and shadows were done.) Then I transformed the function into a type of path tracer for GI. Up until point it took under a minuet to render with no GI.  
EX: p.s. picture doesn’t have GI

 ![eb42a2ad71ece888f76de710a04cdf993cd5494a.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/b/4/eb42a2ad71ece888f76de710a04cdf993cd5494a.jpeg)

Most of my GI was simple and off by a bit. Now After getting the equations more refined I have a better GI system. With no speed ups, or use of a graphics card. I have it rendering in a minuet or two. It only uses around 3kbs of ram and 10% of my cpu’s power. The GI is a little fuzzy depends on how much fuzzy’s you wan’t I can make it almost none, or a lot for effect and smoothness. None of uses voxels. The final thing uses 5kbs of ram, 25% of my cpu

EX: p.s. (Most of these are sideways planes, Because of I am having shadowing errors.)

 ![Final_Png_1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/8/08194ae1fdba75ca8cea8bf31844072bc4e40180.jpeg)

Here’s just the GI ( I think three Sample Rays) around 1 minuet. I’m getting minor GI errors because of exposure problems and also because of all the green that’s in the scene.

 ![2aad7e0e04f5e39eab0c0b4ff16726164981935d.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/a/a/2aad7e0e04f5e39eab0c0b4ff16726164981935d.jpeg)

P.s. I’m showing you because you partially inspired me to make a ray tracer/path tracer! Hopefully it will turn into a full engine, or is implemented into unreal engine 4.

---

<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:** [October 10, 2015, 4:25am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/1050 "2015-10-10T04:25:34Z")

</div>

> [@StopItRonStop!;395344](#):
>
> I decided to make a ray tracer (kind of because was not getting what I was saying. An I wanted to. :P) Now I have slowly developed it. It can now do GI, Ao, Pbr, reflections, and some other things. I made a function that did AO (once most of my phong lighting, and shadows were done.) Then I transformed the function into a type of path tracer for GI. Up until point it took under a minuet to render with no GI.  
> EX: p.s. picture doesn’t have GI
> 
> Most of my GI was simple and off by a bit. Now After getting the equations more refined I have a better GI system. With no speed ups, or use of a graphics card. I have it rendering in a minuet or two. It only uses around 3kbs of ram and 10% of my cpu’s power. The GI is a little fuzzy depends on how much fuzzy’s you wan’t I can make it almost none, or a lot for effect and smoothness. None of uses voxels. The final thing uses 5kbs of ram, 25% of my cpu
> 
> EX: p.s. (Most of these are sideways planes, Because of I am having shadowing errors.)
> 
> Here’s just the GI ( I think three Sample Rays) around 1 minuet. I’m getting minor GI errors because of exposure problems and also because of all the green that’s in the scene.
> 
> P.s. I’m showing you because you partially inspired me to make a ray tracer/path tracer! Hopefully it will turn into a full engine, or is implemented into unreal engine 4.

Looks interesting, great to see that I inspire, even partially, people to get into subject. Lots of cool stuff to do 😃

Back on topic, I’m working on improving the voxelization time, mostly with CPU side optimizations, reducing state changes and similar

---

<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:** [October 10, 2015, 7:03am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/1051 "2015-10-10T07:03:01Z")

</div>

Looking great so far, just trying your latest build now , the last compiled build i had going would not package without failing, going to try one see how it goes, since i looks so nice!

---

<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:** [October 11, 2015, 9:31am UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/1052 "2015-10-11T09:31:02Z")

</div>

Hey , did the full reflections demo with AHR now 🙂 tweaked and re-enabled the albedo just for scene as there are many reflective parts 🙂

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/b/a/2ba17a8767526ccdead9a7965e9e9034f734348f.jpeg "Unreal Engine 4 - Reflections Subway with Approximate Hybrid Raytracing") ](https://www.youtube.com/watch?v=ch-8AirlF64)

---

<div class="post-metadata">

**Author:** ![sHTiF](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sHTiF](https://forums.unrealengine.com/u/sHTiF)\
**Post date:** [October 11, 2015, 2:24pm UTC](https://forums.unrealengine.com/t/realtime-dynamic-gi-reflections-ao-emissive-ahr/11923/1053 "2015-10-11T14:24:38Z")

</div>

Hi thanks for addressing the crash with the voxel size. As for your question I had around 30-40FPS in the simple FPS example on the 660 GTX. BTW I just bought 970 GTX for my GI experiments so will play with all the GI stuff a bit more 🙂

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

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