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

<div class="post-metadata">

**Author:** ![Aresias](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aresias](https://forums.unrealengine.com/u/Aresias)\
**Post date:** [February 4, 2025, 8:23pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/248 "2025-02-04T20:23:13Z")

</div>

i have and i have a 4K screen so i can obviously see it.  
my point is you don’t have more errors that the lack of AA already produce (stairs effects) but the distribution of errors is less regular that’s it. so basically you are asking for oversampling shadows.  
You just can’t without oversampling, you’re asking for magic.

---

<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:** [February 4, 2025, 8:33pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/249 "2025-02-04T20:33:03Z")

</div>

i’m not asking for anything. i’m fine with it. mr. anti antialisaing wanted his point proven. there you go.

i use taa. that keeps it clean and stable. atleast at native. with lower screenperc and with actual textures it doesn’t look that nice, tbh.

> **rather offtopic**
>
> (on that sidenote: i’m starting to lean too. was just building a test case today. and f\*ck was taa ghosty in that setup. tsr solved it but darn does it cost frames. ohh well…)
> 
> (on another sidenote: motion blur is currently breaking in my test scene too. i dunno wth…)

---

<div class="post-metadata">

**Author:** ![Aresias](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aresias](https://forums.unrealengine.com/u/Aresias)\
**Post date:** [February 4, 2025, 8:39pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/250 "2025-02-04T20:39:04Z")

</div>

i have disabled motion blur, bloom, ambient occlusion and all other sh\*t you can see it in the settings of my video.  
Edit : sorry you mean yours.

---

<div class="post-metadata">

**Author:** ![Filipmas1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Filipmas1](https://forums.unrealengine.com/u/Filipmas1)\
**Post date:** [February 23, 2025, 7:34pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/251 "2025-02-23T19:34:42Z")

</div>

Hey, not sure if this is the right thread but - does anyone know why there is a difference in shadows when the viewport is simulated? The darker version is how it looks in a viewport as it is, the lighter is when i simulate is /or render it/.

Thanks! Its an amazing feature!

 ![UE_MEGALIGHTS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/9/5/095a2f273a4aad9fd84a7df1f9f23884c229fa8b.jpeg)

---

<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:** [February 24, 2025, 12:59am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/252 "2025-02-24T00:59:20Z")

</div>

It look like light going through the “cylinder”. Is should be opaque? Maybe related to one side geometry, but one side material?

@Krzysztof.N and @TiagoCostaUE , I remember an user reporting this and you asked him more details, but not sure if you were able to find and fix this?:

RT shadows:

 ![Captura de pantalla 2025-02-24 01.56.11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/3/d23b0504ec710209cbf2d0019618ea8b502e4da8.jpeg)

ML shadows:

 ![Captura de pantalla 2025-02-24 01.56.18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/3/7/c37141e5535e01121b64c45825eb6493b24d89db.jpeg)

---

<div class="post-metadata">

**Author:** ![haohahabu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/haohahabu/32/1032257_2.png) [@haohahabu](https://forums.unrealengine.com/u/haohahabu)\
**Post date:** [February 24, 2025, 5:36am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/253 "2025-02-24T05:36:57Z")

</div>

maybe fix in UE5-main

---

<div class="post-metadata">

**Author:** ![haohahabu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/haohahabu/32/1032257_2.png) [@haohahabu](https://forums.unrealengine.com/u/haohahabu)\
**Post date:** [February 24, 2025, 5:37am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/254 "2025-02-24T05:37:14Z")

</div>

fixed

---

<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:** [February 24, 2025, 9:07am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/255 "2025-02-24T09:07:10Z")

</div>

So fast! Thank you so much for confirming 🙂

---

<div class="post-metadata">

**Author:** ![Filipmas1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Filipmas1](https://forums.unrealengine.com/u/Filipmas1)\
**Post date:** [February 24, 2025, 11:29am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/256 "2025-02-24T11:29:51Z")

</div>

so in future updates it will have the same behavior regardles if the engine is simulating? The feature is awesome and for some scenes, the overall softness of the shadows is amazing! Great work!

---

<div class="post-metadata">

**Author:** ![DBCS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DBCS](https://forums.unrealengine.com/u/DBCS)\
**Post date:** [March 5, 2025, 11:09am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/257 "2025-03-05T11:09:32Z")

</div>

Did you establish any improvements for using Megalights & MRQ? I’m getting tiling issues, very similar to what @moody.by.name was saying.

---

<div class="post-metadata">

**Author:** ![aimbotRaz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aimbotRaz](https://forums.unrealengine.com/u/aimbotRaz)\
**Post date:** [March 6, 2025, 2:41pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/258 "2025-03-06T14:41:10Z")

</div>

Hello, we are using megalights with raytracing shadowing method. Our animations cast a shadow that “lags” behind the mesh itself, this does not happen if we swith to VSM instead of RT.  
If we exclude SkeletalMeshes from the RT, only the “border” of the shadow gets rendered (the only thing in this gif not “lagging” behind)

Is this a known issue? How to fix it?

![GIF 06-03-2025 15-36-06](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/5/80523a9ff2bd108ffc76f023c77ab59a6d97dc9c.gif)

EDIT: These are our rendering settings

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/a/e/faeec045fb66f651a4212249ed77da791a837516.png)

---

<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:** [March 6, 2025, 3:13pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/259 "2025-03-06T15:13:20Z")

</div>

Megalights does the direct lighting and shadows, so you shouldn’t need VSM or raytraced shadows with it (except for the directional light, which is hopefully getting support soon)

---

<div class="post-metadata">

**Author:** ![aimbotRaz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aimbotRaz](https://forums.unrealengine.com/u/aimbotRaz)\
**Post date:** [March 6, 2025, 3:39pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/260 "2025-03-06T15:39:59Z")

</div>

But the documentations states

> MegaLights exposes two shadowing methods, which can be selected per light using light component’s properties:
> 
> - **Ray Tracing** is the default and recommended method. It doesn’t add any extra cost per light and can achieve correct area shadows. The downside is that the quality of the shadows depends on the simplified Ray Tracing Scene.
> - **Virtual Shadow Maps** traces rays against a [Virtual Shadow Map](https://dev.epicgames.com/documentation/en-us/unreal-engine/virtual-shadow-maps-in-unreal-engine). Virtual Shadow Maps are generated per light using rasterization and can capture full Nanite mesh details. The downside is that it can only approximate area shadows, and it has a significant additional per light cost in terms of memory, CPU, and GPU overhead used to generate shadow depths. This should be used sparingly.

And in the editor you can choose the default method via `r.MegaLights.DefaultShadowMethod`.  
Am i missing something in how to set it up?

---

<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:** [March 6, 2025, 3:42pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/261 "2025-03-06T15:42:19Z")

</div>

Oh my bad, I thought you were talking about the older raytraced shadows in the project settings.

---

<div class="post-metadata">

**Author:** ![aimbotRaz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aimbotRaz](https://forums.unrealengine.com/u/aimbotRaz)\
**Post date:** [March 6, 2025, 4:25pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/262 "2025-03-06T16:25:55Z")

</div>

Changing `r.SkinCache.RayTracing.MaxUpdatePrimitivesPerFrame` to 0 fixed it, but i gotta test more with this cvar

---

<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:** [March 6, 2025, 4:43pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/263 "2025-03-06T16:43:29Z")

</div>

mega lights is off in your render settings. are you enabling it per light? i’d flip this around so you have it always on and flip it off if you don’t need it for particular reasons.

you can also choose the shadow method per light. i for example have raytraced off in the options. megalights always uses raytracing anyway. if you disable megalight on a specific lamp you get your default shadow method and can still change it to raytraced shadows for singular lamps. it may hit performance a lil bit, cause it renders an extra light/shadow pass for itself. i use it for this very dirty raytraced glass effect that megalight does not support. yet.

---

<div class="post-metadata">

**Author:** ![uJelleh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@uJelleh](https://forums.unrealengine.com/u/uJelleh)\
**Post date:** [March 12, 2025, 1:07am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/264 "2025-03-12T01:07:32Z")

</div>

Aha! Glad I found this reply! 🙂

We have started using megalights on a digital twin project with a very, VERY high number of lights (over 30,000 in one scene). Megalights has massively improved performance! However, we are definitely hitting this 4095 cap. After this amount is hit, random lights start flickering off as the camera moves around. Control over this cap would be great, and/or a solution for the issue of random lights in the scene flickering off if the cap is hit.

Thank you for all the replies, this is a great thread!

---

<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:** [March 12, 2025, 1:48am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/265 "2025-03-12T01:48:14Z")

</div>

Light limit is fixed in UE5-Main, not sure if we’ll be able to get it into a 5.5.x as we have now a bunch of other work.

---

<div class="post-metadata">

**Author:** ![uJelleh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@uJelleh](https://forums.unrealengine.com/u/uJelleh)\
**Post date:** [March 12, 2025, 2:36pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/266 "2025-03-12T14:36:10Z")

</div>

“…but it’s a relatively simple change in code”

Would you be able to give any help on how to adjust the limit, like what to edit and in which files?

---

<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:** [March 12, 2025, 9:13pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/268 "2025-03-12T21:13:58Z")

</div>

Well, it actually wasn’t that simple 🙂

You need this:

1. [https://github.com/EpicGames/UnrealEngine/commit/7c65424078817fa35acdeaf1ea80d83a37af3b5](https://github.com/EpicGames/UnrealEngine/commit/7c65424078817fa35acdeaf1ea80d83a37af3b5)
2. [https://github.com/EpicGames/UnrealEngine/commit/70036e888a45a66f7245237b2419aed91b6dc62c](https://github.com/EpicGames/UnrealEngine/commit/70036e888a45a66f7245237b2419aed91b6dc62c)
3. [https://github.com/EpicGames/UnrealEngine/commit/1be3adf60bf10f727664c5829259f6ca3f4aab82](https://github.com/EpicGames/UnrealEngine/commit/1be3adf60bf10f727664c5829259f6ca3f4aab82)

I think first two should be already integrated into the latest 5.5.x, but last one certainly didn’t make it.

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

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