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

<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:** [October 3, 2024, 3:36pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/1 "2024-10-03T15:36:16Z")

</div>

Hi everyone, I’m starting this thread for feedback and discussion about MegaLights.

MegaLights is an experimental feature developed by me and @TiagoCostaUE. Our dream is to allow artists to work playfully, placing orders of magnitudes more dynamic and shadowed area lights than they could ever before.

We’ll read through this thread and try to address your feedback.

[MegaLights documentation](https://dev.epicgames.com/documentation/en-us/unreal-engine/megalights-in-unreal-engine)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 3, 2024, 3:39pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/2 "2024-10-03T15:39:29Z")

</div>

What blew me away was the fact that it run on the _humble_ PS5. 🥇

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [October 3, 2024, 3:59pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/3 "2024-10-03T15:59:12Z")

</div>

1. Any plans to support directional lights?
2. Any plans to support backscattering for SSS/foliage materials? (I saw certain lights can be set to use VSM instead of RT shadows, which I suppose is an effective workaround for this issue)
3. Any plans for a software raytracing solution? I noticed that we can disable RT shadows via cvar which results in lights tracing the global distance field, just wondering if there are any plans to continue to try to develop this path (maybe using mesh distance fields for better detail?) or if it is just an experiment that didn’t work out.
4. Any plans to provide more granular control over which scalability of light actors? It would be cool to be able to specify certain lights to only be enabled when megalights is turned on, or to be enabled but only have shadows when megalights is turned on. (would also be nice to have scalability control over these features per-light in general, outside the context of megalights)

As always… amazing work so far 🙂 Never imagined I’d get to be able to dump shadowcasting lights everywhere, this is really the first hardware raytracing feature I’ve seen and gone “yeah… I need that”

---

<div class="post-metadata">

**Author:** ![Rawalanche](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rawalanche/32/906578_2.png) [@Rawalanche](https://forums.unrealengine.com/u/Rawalanche)\
**Post date:** [October 3, 2024, 4:34pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/4 "2024-10-03T16:34:27Z")

</div>

> [@Arkiras](#):
>
> Any plans to support directional lights?

There aren’t that many cases where it’s useful to have more than one directional light in the level, and when the case appears, it’s usually 2 of them at most. Not sure if there’s any Megalight limitation that’d make Directional Light support harder to implement, but so far this doesn’t seem like a big deal.

If all megalights have more or less constant cost, then there would usually be one directional light + all the megalights constant cost.

---

<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:** [October 3, 2024, 4:42pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/5 "2024-10-03T16:42:17Z")

</div>

There’s a big limitation with Directional lights, or the sun. They have a certain degree of soft shadows/area shadows, but if you push it further, like if the sun would be seen through thin clouds, the area shadows would be still pretty hard edged. I’m trying to address this by creating a plugin for area shadows, but it’s hard.

But apparently Megalights is able to create tons of area shadows and with very soft edges. Is this new rendering development able to help in any way the cases with a single directional light or just a few lights ?

---

<div class="post-metadata">

**Author:** ![Flak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flak/32/769441_2.png) [@Flak](https://forums.unrealengine.com/u/Flak)\
**Post date:** [October 3, 2024, 4:42pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/6 "2024-10-03T16:42:27Z")

</div>



---

<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:** [October 3, 2024, 4:43pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/7 "2024-10-03T16:43:42Z")

</div>

so… it sees the formal light of day. good job, dudes. 🤘

it’s a good one. i’ll eventually hop back on the test wagon. tied up in other projects and dealing with my cpu thermal paste giving up. can’t change it without removing the intact gpu metal. hmm… shared pipes in laptops.

---

<div class="post-metadata">

**Author:** ![useronym](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@useronym](https://forums.unrealengine.com/u/useronym)\
**Post date:** [October 4, 2024, 10:33am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/8 "2024-10-04T10:33:47Z")

</div>

Will megalights be supported by either of the forward renderers in the future? (desktop or mobile)

---

<div class="post-metadata">

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

</div>

Any plan to give support to VR. As I can see, when switching to VR, only left eye is rendered correctly, leaving right with a glitched version of the image.  
This could be really game-changing fot VR dev.

---

<div class="post-metadata">

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

</div>

Hello, ¿Does megalights works with emmisive materials? I don’t see any option in materials to turn it on, I guess is not yet supported.

---

<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:** [October 4, 2024, 2:34pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/11 "2024-10-04T14:34:46Z")

</div>

you do a basic emissive material, disable shadows on the emissive mesh and put a light there - with texture or light function on it or not. works for light bulbs and approximate shapes that can be represented with point, spot or area lamps and works for screen panels. does not work for complex shapes. complex emissive materials are and will most likely not be supported for a bit. the trace precision is not there, yet. it’s not sampling textures (or does it?). it’ll improve, but gonna take a while til everybody has a gpu of a caliber that can do that.

---

<div class="post-metadata">

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

</div>

Am I missing something or does it need to have raytracing capable GPU? I have GTX 1660S, but I think UE has turned raytracing off on it, even when Nvidia supports it. I tried with only RectLights and SpotLights, but it looks worse when MegaLight is turned on.

I am getting horribly pixelated ghosting when shadows are in motion and reflections are sparkling all the time. No such issues when MegaLights are turned off. Virtual Shadow Maps for Shadow Method make the shadows more accurate with my GPU, but doesn’t fix the ghosting.

 ![Screenshot 2024-10-05 003651](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/4/c/44cfb367a3a634438ca5dd7f922a19de35985272.jpeg)  
 ![Screenshot 2024-10-05 003731](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/f/49f625423b0c83fcfc0024673f57bb7cbb849787.jpeg)

---

<div class="post-metadata">

**Author:** ![Frenetic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frenetic/32/1142542_2.png) [@Frenetic](https://forums.unrealengine.com/u/Frenetic)\
**Post date:** [October 4, 2024, 11:45pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/13 "2024-10-04T23:45:57Z")

</div>

Just a question, but does megalights support skeletal meshes? I didn’t see the character casting any shadows in that tech-demo video…

If ‘no’ is this something technically achievable, on the roadmap?

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [October 4, 2024, 11:57pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/14 "2024-10-04T23:57:49Z")

</div>

It works with skeletal meshes

---

<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:** [October 5, 2024, 12:35am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/15 "2024-10-05T00:35:45Z")

</div>

> [@Arkiras](#):
>
> Any plans to support directional lights?

Yes, we want to support directional lights at some point. It’s not a big priority, as VSM handles those relatively fine in games and having BVH covering entire scene is problematic on consoles. Still it feels like a necessary step in order to be able to remove RT shadows, also like mentioned in this thread, sometimes it’s cool to have nice area shadows from the directional light too. So on the todo list, but will need some larger work to get there.

> [@Arkiras](#):
>
> Any plans to support backscattering for SSS/foliage materials? (I saw certain lights can be set to use VSM instead of RT shadows, which I suppose is an effective workaround for this issue)

Yes, it’s on the todo list too.

> [@Arkiras](#):
>
> Any plans for a software raytracing solution? I noticed that we can disable RT shadows via cvar which results in lights tracing the global distance field, just wondering if there are any plans to continue to try to develop this path (maybe using mesh distance fields for better detail?) or if it is just an experiment that didn’t work out.

With 5.5 ray tracing push it’s unlikely that we will invest much in the software solution. Still it was easy to add, maybe someone will find use for it for scalability and it allows us to debug MegaLights using RenderDoc, which doesn’t support HWRT.

> [@Arkiras](#):
>
> Any plans to provide more granular control over which scalability of light actors? It would be cool to be able to specify certain lights to only be enabled when megalights is turned on, or to be enabled but only have shadows when megalights is turned on. (would also be nice to have scalability control over these features per-light in general, outside the context of megalights)

Yeah, that’s a good point and we have same questions internally. Likely at some point we’ll work on a light scalability tool allowing to override/change lights per platform/scalability settings. Though it’s nothing concrete at this point.

---

<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:** [October 5, 2024, 12:38am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/16 "2024-10-05T00:38:54Z")

</div>

> [@useronym](#):
>
> Will megalights be supported by either of the forward renderers in the future? (desktop or mobile)

No. MegaLights runs its own lighting pass, which requires a GBuffer as an input and can’t be really run as a part of rasterization.

Still, I’m curious what are you after here? Is it performance of the forward renderer? MSAA? I don’t think we can roll new features into a forward renderer, but maybe deferred renderer can be extended to match VR needs.

---

<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:** [October 5, 2024, 12:52am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/17 "2024-10-05T00:52:18Z")

</div>

> [@miguline](#):
>
> Hello, ¿Does megalights works with emmisive materials? I don’t see any option in materials to turn it on, I guess is not yet supported.

No. It only works with analytical lights (spot, point, sphere, rect). At least at the moment we don’t have mesh light (aka emissive analytical light) support, nor we don’t support skylight. Those two are still handled by Lumen.

> [@Frenetic](#):
>
> Just a question, but does megalights support skeletal meshes? I didn’t see the character casting any shadows in that tech-demo video…

Yeah, like Arkiras wrote, it does work with skeletal meshes or more specifically anything what’s in the BVH.

If you look at the demo you can self-shadowing all the time:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/9/da991760af5026aff22ae1a9f9f7dcb960df554e.jpeg)

Shadows on the environment are harder to spot due to camera angle and large area lights, but they are there (easier to see in motion):

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/8/b486afc4839354e757a9980630ef2563f7f26686.jpeg)

> [@tarmo888](#):
>
> Am I missing something or does it need to have raytracing capable GPU? I have GTX 1660S, but I think UE has turned raytracing off on it, even when Nvidia supports it. I tried with only RectLights and SpotLights, but it looks worse when MegaLight is turned on.
> 
> I am getting horribly pixelated ghosting when shadows are in motion and reflections are sparkling all the time. No such issues when MegaLights are turned off. Virtual Shadow Maps for Shadow Method make the shadows more accurate with my GPU, but doesn’t fix the ghosting.

10xx series don’t support HWRT. I guess you are getting shadows from distance fields, which likely don’t even exist for that car, so everything fallbacks to screen space contact shadows. Likely won’t work well.

Selecting VSM as a shadowing method will fix it, but it’s pretty expensive as VSM still need to compute shadow maps upfront and have other various CPU/memory costs. This doesn’t really scale well.

As for the ghosting, I need to take a look at a moving car, but yeah, I imagine things may be broken in a such scenario.

> [@KiPLean](#):
>
> Any plan to give support to VR. As I can see, when switching to VR, only left eye is rendered correctly, leaving right with a glitched version of the image.  
> This could be really game-changing fot VR dev.

@TiagoCostaUE is fixing it for 5.5 (no pressure :)), so it should work in the next 5.5 preview/release. It won’t be an optimal VR oriented solution, but should work.

---

<div class="post-metadata">

**Author:** ![sanemaat](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sanemaat/32/1110800_2.png) [@sanemaat](https://forums.unrealengine.com/u/sanemaat)\
**Post date:** [October 5, 2024, 4:37am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/18 "2024-10-05T04:37:50Z")

</div>

Hi,

Currently, megalights do not render properly in Virtual Reality. After changing to Deferred Rendering and then enabling megalights, everything works fine in the editor, but does not render correctly in both eyes in the headset. The lights will render corrently in one eye, but not the other. With the same lights in the scene, if selected and ‘allow megalights’ is toggled off, those same lights will render correctly again.

Initially I thought this might be an issue with Instanced Stereo, but I disabled this, and it was the same result. I am using a Meta Quest 3.

EDIT: I see someone else has reported this, thanks for your response

---

<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:** [October 5, 2024, 4:43am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/19 "2024-10-05T04:43:02Z")

</div>

you can do soft directional light using the source parameters. source angle and source soft angle for the reflections part of it. be aware that the reflection shadows will be rather noisy in a straight mirror scenario. but does fairly well on semi rough materials.

good old cp test shot

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/3/d03d6dc3a7039abc507a0362203f59abf0320765.jpeg)  
note: those are raytraced shadows, not vsm.

---

<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:** [October 5, 2024, 6:35am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/20 "2024-10-05T06:35:45Z")

</div>

I’ll post again this image. As far as I know you can’t do shadows this soft. And these shadows are from a regular sun size, it’s not even a cloudy sky. With some clouds the shadows would be even blurrier.  
In this image the plant closer to the ground projects sharper shadows, while the leaves higher up will project blurry shadows. And the sharp shadows should intersect and overlap like this with the softer ones.

 ![soft_shadows_](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/a/8/ca8e0cfb885df976180de53e26235d140f4820c1.jpeg)

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