# MegaLights feedback thread

**URL:** <https://forums.unrealengine.com/t/megalights-feedback-thread/2051575>\
**Category:** Rendering\
**Tags:** unreal-engine, MegaLights, Rendering, Lighting\
**Created:** [October 3, 2024, 3:36pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575 "2024-10-03T15:36:16Z")\
**Posts on this page:** 20\
**Page:** 5

<div class="post-metadata">

**Author:** ![DLR.O\_Ken](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DLR.O\_Ken](https://forums.unrealengine.com/u/DLR.O_Ken)\
**Post date:** [October 30, 2024, 6:11pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/82 "2024-10-30T18:11:39Z")

</div>

I updated a project to 5.5 and Megalights is completely greyed out and untickable? I’ll just enable it in a new blank project and get the config out of the new project, but I think you guys should fix it to work with old projects, of explain the reasons why it might be greyed out?

---

<div class="post-metadata">

**Author:** ![jblackwell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jblackwell](https://forums.unrealengine.com/u/jblackwell)\
**Post date:** [October 31, 2024, 4:57pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/83 "2024-10-31T16:57:39Z")

</div>

Is it enabled in the project settings? I also found I had to run the command r.MegaLights.allowed 1 in order to make it work; there are also per-light and PPV settings that play a role.

---

<div class="post-metadata">

**Author:** ![Andre\_S\_G\_Soares](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Andre\_S\_G\_Soares](https://forums.unrealengine.com/u/Andre_S_G_Soares)\
**Post date:** [October 31, 2024, 5:15pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/84 "2024-10-31T17:15:39Z")

</div>

While spotlight direct illumination is visible in mirror reflection, the rectangle light direct illumination isn’t visible in mirror reflection. Both of them megalights enable (default shadow)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/a/c/cac9bdbf3cf3e8d57355a56c9c3f22539e5f3c53.jpeg)  
rectangle lights seems do not lit the scene in reflections

---

<div class="post-metadata">

**Author:** ![BananableOffense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BananableOffense](https://forums.unrealengine.com/u/BananableOffense)\
**Post date:** [November 1, 2024, 5:05am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/85 "2024-11-01T05:05:02Z")

</div>

This isn’t exactly MegaLights specific, more just general RT shadow related… but any chance to have distance field shadows with RT enabled - or is there something else in the works for distant shadows? One of my biggest issues with RT shadows is the lack of shadows on distant objects and terrain due to culling from the BVH.

Virtual shadow maps handle this case very well and I was quite pleased with having basically infinite shadow draw distance, and DF shadows can take over with VSM when dealing with non-nanite for example. Fortunately I can just use VSM on the directional light as this is a non issue for local lights, but if MegaLights is going to be handling the sun in the future too, there needs to be a solution for this imo.

---

<div class="post-metadata">

**Author:** ![Miguel1900](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/miguel1900/32/1010694_2.png) [@Miguel1900](https://forums.unrealengine.com/u/Miguel1900)\
**Post date:** [November 1, 2024, 1:52pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/86 "2024-11-01T13:52:13Z")

</div>

Thank you @Krzysztof.N , so anything to expect regarding that silhoutte issue? (I think it will be quite usual to have shadow casting actors placed on top of a tessellated surface).

Confirmed it’s due to the tessellation behind (the floor), but for me it looks like tessellation is supported by MegaLights (which realies on RT, if I’m not wrong), isn’t it?

Thanks

---

<div class="post-metadata">

**Author:** ![jblackwell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jblackwell](https://forums.unrealengine.com/u/jblackwell)\
**Post date:** [November 1, 2024, 3:56pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/87 "2024-11-01T15:56:41Z")

</div>

Infinite shadow draw distance was a phenomenal feature- everything in the scene handled without extra setup. Part of me was wondering what about RT shadows with a VSM fallback for maximum quality, baring in mind enormous expense. I’m happy megalights can use screen traces because it does a lot to disguise the limited BVH range, although some artifacts are simply impossible to fix.

---

<div class="post-metadata">

**Author:** ![Resolve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Resolve](https://forums.unrealengine.com/u/Resolve)\
**Post date:** [November 2, 2024, 9:28pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/88 "2024-11-02T21:28:25Z")

</div>

Can it be confirmed whether or not the bug of Geometry Collections not casting shadows from megalights will be fixed for 5.5 release?

---

<div class="post-metadata">

**Author:** ![Krzysztof.N](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Krzysztof.N](https://forums.unrealengine.com/u/Krzysztof.N)\
**Post date:** [November 5, 2024, 2:42pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/89 "2024-11-05T14:42:40Z")

</div>

> [@glitchered](#):
>
> it does masked materials to some degree using screen traces, like decals, works for close range, like hair cards and things. the screen trace distance is adjustable. does not change much for big scale models, tho. it’s screen space. worldspace traces just hit geometry in the bvh or mesh distance fields. it does not sample the textures (yet).

There’s `r.MegaLights.HardwareRayTracing.EvaluateMaterialMode` but turns out it was broken in 5.5. Just fixed it, but it’s already after 5.0 cutoff.

> [@haohahabu](#):
>
> In the current test, more than 4096 lights in the cone will appear light loss, is there any parameter that can extend this upper limit, which is important for the night scene of super cities, if not, will the future consider expanding the number of lights to support more?

It was increased to 65.5k in ue5-main: [https://github.com/EpicGames/UnrealEngine/commit/7c65424078817fa35acdeaf1ea80d83a37af3b52](https://github.com/EpicGames/UnrealEngine/commit/7c65424078817fa35acdeaf1ea80d83a37af3b52)

> [@glitchered](#):
>
> i’ve not worked with grooms yet. are the strands full cylinder geo or screen aligned/“billboarded” loops with a gradient? aka some sort of “line” geo.

The main issue is that they run their own deferred lighting pass, as strands are pretty thin and need higher resolution than main view. So we need to integrate MegaLights into that pass.

> [@DLR.O\_Ken](#):
>
> I updated a project to 5.5 and Megalights is completely greyed out and untickable? I’ll just enable it in a new blank project and get the config out of the new project, but I think you guys should fix it to work with old projects, of explain the reasons why it might be greyed out?

You need SM6 and ray tracing support to enable MegaLights, which is mentioned in the tooltip.

> [@Andre\_S\_G\_Soares](#):
>
> While spotlight direct illumination is visible in mirror reflection, the rectangle light direct illumination isn’t visible in mirror reflection. Both of them megalights enable (default shadow)

Hmm, I tried to place a rect light and seems to work fine in reflections. Maybe it’s too close to the ceiling or something? Do you have a simple repro, with like boxes and rect light so that we are looking at the same thing?

> [@BananableOffense](#):
>
> This isn’t exactly MegaLights specific, more just general RT shadow related… but any chance to have distance field shadows with RT enabled - or is there something else in the works for distant shadows? One of my biggest issues with RT shadows is the lack of shadows on distant objects and terrain due to culling from the BVH.

We plan to support Far Field in order to extend BVH distance at a low cost.

> [@Miguel1900](#):
>
> Confirmed it’s due to the tessellation behind (the floor), but for me it looks like tessellation is supported by MegaLights (which realies on RT, if I’m not wrong), isn’t it?

RT doesn’t support tesselation (even path tracer).

> [@Resolve](#):
>
> Can it be confirmed whether or not the bug of Geometry Collections not casting shadows from megalights will be fixed for 5.5 release?

I see that it was fixed in ue5-main, but didn’t make it to 5.0. BTW if you disable Nanite then it hould work, as this is a Nanite specific bug.

---

<div class="post-metadata">

**Author:** ![glitchered](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/glitchered/32/768299_2.png) [@glitchered](https://forums.unrealengine.com/u/glitchered)\
**Post date:** [November 5, 2024, 3:24pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/90 "2024-11-05T15:24:25Z")

</div>

> [@Krzysztof.N](#):
>
> There’s `r.MegaLights.HardwareRayTracing.EvaluateMaterialMode` but turns out it was broken in 5.5. Just fixed it, but it’s already after 5.0 cutoff.

so it’s gonna be in 5.5.1?!? okay. ima throw the cvar in my launch command tho.

---

<div class="post-metadata">

**Author:** ![doyoureadme](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@doyoureadme](https://forums.unrealengine.com/u/doyoureadme)\
**Post date:** [November 5, 2024, 3:35pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/91 "2024-11-05T15:35:48Z")

</div>

We’re testing out this cool technology.

Currently, Megalights works even without hardware ray tracing support in my project settings.

Is it mandatory to use hardware ray tracing?

I am curious about the difference and structure between hardware ray tracing and software ray tracing.

---

<div class="post-metadata">

**Author:** ![glitchered](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/glitchered/32/768299_2.png) [@glitchered](https://forums.unrealengine.com/u/glitchered)\
**Post date:** [November 5, 2024, 3:44pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/92 "2024-11-05T15:44:49Z")

</div>

software raytracing uses screentraces and distance field shadows. i’ve not tested it with many lights tho, so i’ve no idea about performance with lots of that.

welcome to the forum, btw. 👋

---

<div class="post-metadata">

**Author:** ![Ibtesam\_Sadiq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ibtesam\_Sadiq](https://forums.unrealengine.com/u/Ibtesam_Sadiq)\
**Post date:** [November 10, 2024, 12:03pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/93 "2024-11-10T12:03:40Z")

</div>

Is **MegaLights** using the same tech as **real-time path tracing**?  
if not then, Are there any plans for implementing this in the main branch because it seems impressive?  
**Realtime Path Tracing** works really well even when there are a lot of moving lights in a close distance. which seems like a bad scenario with **MegaLights**.  
**Realtime Path Tracing** also works well with small emissive surfaces. The emissive surface feels like real light source without any size limitation of the emissive surface.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/0/8e0d572191014a3f7733dfb9181dad8c89f3f6b2.jpeg "Real-Time Path Tracing in Unreal Engine 5 | Unreal Fest 2024") ](https://www.youtube.com/watch?v=zD9kS1nOuyU)

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [November 10, 2024, 12:20pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/94 "2024-11-10T12:20:58Z")

</div>

> [@Ibtesam\_Sadiq](#):
>
> Is **MegaLights** using the same tech as **real-time path tracing**?

Yes and no. They are very similar approaches executed slightly differently. They both handle direct lighting and shadows in essentially the same way. Nvidia’s path tracing also handles most GI (but not yet from the skylight so it looks kinda terrible outdoors) and some rough reflections, which megalights is falling back onto lumen for.

> [@Ibtesam\_Sadiq](#):
>
> **Realtime Path Tracing** works really well even when there are a lot of moving lights in a close distance. which seems like a bad scenario with **MegaLights**.

I bet the difference is mostly due to Nvidia using ray reconstruction for that demo and if that was off they’d behave very similarly with moving lights

---

<div class="post-metadata">

**Author:** ![Ibtesam\_Sadiq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ibtesam\_Sadiq](https://forums.unrealengine.com/u/Ibtesam_Sadiq)\
**Post date:** [November 10, 2024, 12:26pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/95 "2024-11-10T12:26:08Z")

</div>

And don’t think megalight handles emissive like Realtime path tracing.  
On top of that, the real-time path tracing branch also has the option to fallback at lumen for some use cases.

---

<div class="post-metadata">

**Author:** ![Miguel1900](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/miguel1900/32/1010694_2.png) [@Miguel1900](https://forums.unrealengine.com/u/Miguel1900)\
**Post date:** [November 10, 2024, 12:27pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/96 "2024-11-10T12:27:37Z")

</div>

You are comparing two different things. MegaLights only handle direct lighting/shadowing

---

<div class="post-metadata">

**Author:** ![Ibtesam\_Sadiq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ibtesam\_Sadiq](https://forums.unrealengine.com/u/Ibtesam_Sadiq)\
**Post date:** [November 10, 2024, 12:37pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/97 "2024-11-10T12:37:21Z")

</div>

I am just curious to know if there is any chance for integration of real-time path tracing into lumen and megalights.

---

<div class="post-metadata">

**Author:** ![jblackwell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jblackwell](https://forums.unrealengine.com/u/jblackwell)\
**Post date:** [November 11, 2024, 11:19pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/98 "2024-11-11T23:19:19Z")

</div>

You can’t integrate path tracing into lumen and megalights because they are _two ways of doing the same thing_. Path tracing and lumen/megalights are fundamentally about integrating radiance within a scene, determining what lighting should look like from the system perspective. Path-tracing is totally accurate to real life, whereas lumen and megalights take some shortcuts. They aren’t systems that can eb added to each other.

---

<div class="post-metadata">

**Author:** ![jblackwell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jblackwell](https://forums.unrealengine.com/u/jblackwell)\
**Post date:** [November 11, 2024, 11:22pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/99 "2024-11-11T23:22:17Z")

</div>

To be clear, I don’t blame you for the confusion. There is so much noise out there in the lighting space nowadays. Think about virtual lighting like a spectrum: There is true, unbiased path tracing on one side, which no production renderer actually uses because it’s terribly slow. Then on the other end are shadowmaps and cubemaps and all that super hacky stuff, which runs super well but looks terrible. And in between you have techniques like lumen, which blend ray-traced radiance gathering with a ton of filtering and probes and magic tricks to create something that looks _mostly_ like path-tracing but actually runs in real-time.

---

<div class="post-metadata">

**Author:** ![Sebastian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sebastian](https://forums.unrealengine.com/u/Sebastian)\
**Post date:** [November 11, 2024, 11:57pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/100 "2024-11-11T23:57:14Z")

</div>

> [@jblackwell](#):
>
> You can’t integrate path tracing into lumen and megalights because they are _two ways of doing the same thing_.

But in the Real-Time Path Tracing Unreal Fest 2024 video, they are making a comparison between “Lumen only” and “ReSTIR enhanced Lumen”.  
At minute 16.

---

<div class="post-metadata">

**Author:** ![Ibtesam\_Sadiq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ibtesam\_Sadiq](https://forums.unrealengine.com/u/Ibtesam_Sadiq)\
**Post date:** [November 12, 2024, 2:26pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/101 "2024-11-12T14:26:24Z")

</div>

let me know if I am wrong but real-time Path Tracing seems superior compared to the lumen and MegaLights in following areas:

1. “Realtime Path Tracing” can light a whole scene with just emissive material without any actual light source. And there is no emissive surface size limitation large or tiny.
2. “Realtime Path Tracing” can support 1000s of moving lights very close to each other without compromising the performance. and there is no attenuation limit. so readius can be as large as we want.
3. “Realtime Path Tracing” doesn’t produce shadow and reflection noise. So high quality shadows and reflections.

[Previous page](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575.md?page=4)

[Next page](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575.md?page=6)
