UAnimatedTexture5 icon indicating copy to clipboard operation
UAnimatedTexture5 copied to clipboard

GIFs/WebP textures don't actually emit light with Lumen

Open indu111 opened this issue 2 years ago • 5 comments

Hello! So I opened your "UAnimatedTexture5-master" test project that you have provided in UE 5.0.2 and created a new empty level in there, (no light, pitch black), made a plane and a sphere, sphere sitting on top of the plane. Drag and drop any GIF/Webp from your project onto the sphere to create material, plug the texture into emissive and crank the value up. No matter how bright I make it, it doesn't actually light the scene.

With Lumen in UE5, emissive materials actually cast the shadow so if I replace your GIFs/WebP files with any random static jpg/png file in the same material, the sphere now actually lights up the plane meaning Lumen is working and Emissives are casting light otherwise, they just don't do it with animating GIF/Webp files in general.

If I am mistaken or missing something, please do let me know but if it doesn't work on your end as well, I am guessing its a bug. Hoping to hear from you regardless.

Thanks

Indy.

indu111 avatar Jun 01 '22 07:06 indu111

UPDATE: So turns out it isn't your tool but if you take any image in a basic material and set it to emissive, if the material blend mode is set to either Opaque or Masked then Lumen casts light from that material but if you set it to Translucent, which is what I want, then it stops casting any light. Currently searching for ways to have translucent emissive materials that cast light in the scene.

indu111 avatar Jun 01 '22 08:06 indu111

hi how did you make it work with Ue5 is it 5.02 or Ea?

pasunna avatar Jun 13 '22 13:06 pasunna

UPDATE: So turns out it isn't your tool but if you take any image in a basic material and set it to emissive, if the material blend mode is set to either Opaque or Masked then Lumen casts light from that material but if you set it to Translucent, which is what I want, then it stops casting any light. Currently searching for ways to have translucent emissive materials that cast light in the scene.

Found the reason. Any kind of translucent material will not contribute to Lumen lighting and hence will not cast light in the scene if set to emissive. So the solution for now is to set it to Masked until Lumen updates. Hope this helps someone.

indu111 avatar Jun 17 '22 04:06 indu111

hi how did you make it work with Ue5 is it 5.02 or Ea?

Do you mean how I made the GIF importer work in UE5? I am on 5.0.2 and it works out of the box. Download the zip file that contains his UE5 project. Extract it and go to plugins folder and cut the entire folder of Animated Texture and paste it in your projects Root directory the same way it was in his project. Upon launching UE will ask to compile say yes and it should work. Hope it helps.

indu111 avatar Jun 17 '22 04:06 indu111

yes I already do that but my compile is failed if you success so there are some problems with my - -* solve... I need to install widow sdk 10

pasunna avatar Jun 24 '22 09:06 pasunna