x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Can I create a dynamic lighting with emissive material?

As captured. We now have a checkbox to turn on/off "Use Emissive for Static Lighting" in component detail panel, and if I check that, there will be a static light in the color of build-time material and won't change. That is to say, if I create a component with red emissive material and build light, the environment around it will become under red light. But when I trigger something to change it to blue, the environment light is still red.

What I wanna have is an emissive light change when material change, or so-called dynamic emissive light. Dunno if there's anyway to achieve that yet?

Product Version: Not Selected
Tags:
more ▼

asked Mar 20 '15 at 10:08 AM in Rendering

avatar image

PhoenixThrough
101 18 23 30

avatar image Aron Visciglia Jan 19 '17 at 04:16 PM

I am also experimenting with the same problems. I am using emissive shapes to bake the lighting but would love to have the option to change the colour at runtime.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Hello PhoenixThrough -

You can achieve that effect by implementing the LPV system. You will need to add 'r.LightPropagationVolume=1' to your consolevariables.ini file (in the Engine \ Config directory). This will require you restart your project. Then you can go into the material (not the mesh as in static) and in the Material Attributes check Emissive (Dynamic Area Light) to true.

Thank You

Eric Ketchum

more ▼

answered Mar 20 '15 at 06:18 PM

avatar image

Lovecraft_K ♦♦ STAFF
36.7k 702 260 735

avatar image PhoenixThrough Mar 24 '15 at 03:10 AM

Hi Eric, I've followed your suggestion and checked "Emissive (Dynamic Area Light)" to true, but when I updated the emissive material to blue one, the light cast was still the original red color. The update was during play so I was not able to click "Build" again. Did I miss any setting so that there was not in game dynamic light? alt text

avatar image Lovecraft_K ♦♦ STAFF Mar 24 '15 at 03:48 PM

Hi -

Have you enabled LPVs in your engine's ConsoleVariables.ini file? I have included a sample project that renders correctly and changes a cube emissive material from green to red on pressing "k" on the keyboard. Look at my settings in this project to help you out. BUT, you will need to enable LPV's in the engine before it will work correctly.

Test_Project

Thank You

Eric Ketchum

avatar image PhoenixThrough Mar 26 '15 at 04:12 AM

Hi Eric, maybe I didn't make things clear... I am able to change the color of emissive material, just like in your test project, but I cannot change the light color it casts on environment walls, as stated in above picture.

When the origin of light - the emissive material, turns from red to blue, the light it casts is still red and not changed. I used a new feature called "Use Emissive for Static Lighting", which you can find in detail panel of material blueprint. As it is named as "static", I think it perhaps can only cast static light without change over time? But now I need some function to make environment light change once emissive material color changes. Is there any way to achieve that now?

avatar image Lovecraft_K ♦♦ STAFF Mar 26 '15 at 01:28 PM

Hi PhoenixThrough -

You are correct the only way to dynamically change the light from an emissive material is using the LPV method in my test bed above. Using the Emissive as Static option will only work (change) at build time and cannot be changed at runtime. To change the environment color, you can have the Skylight in your level be Stationary or Movable and then use a blueprint change to adjust the light color at runtime which will result in a change to the total environment color (I would also suggest un-checking Lower Hemisphere is black.), but that will not overwrite the backed lighting generated by the emissive material.

Hopefully that clears up the confusion, my apologies for not understanding your question up front -

Eric Ketchum

avatar image FlashFreak Apr 09 '15 at 03:39 PM

Hi Eric,

Love the Light Propogation Volume solution, but I'm having problems getting it to work. I'm using build 4.7.5.

I've modified the .ini file and your content example works perfectly (thanks!). But when I create a new project, even if I migrate the material and the material instance, the effect doesn't seem to work. I've set up the post process volume and turned on the LPV settings to match the settings you had in your example. No avail.

I tried it in the reverse, and my static mesh that I migrated to your example file from my project also lit up perfectly, so it's not the mesh. I applied the material instance to it directly, it works just fine.

I'm probably missing something obvious, but it's driving me crazy.

Suggestions?

avatar image FlashFreak Apr 09 '15 at 04:00 PM

Found it! (Sort of...)

What is it about the Directional Light? The moment I cut 'n pasted that over as well, it worked.

Would love to know the answer (because it will continue to drive me crazy).

:)

avatar image Tim Hobson ♦♦ STAFF Apr 09 '15 at 05:45 PM

Currently with LPV only Directional light is supported as a light source. There are plans to add Point and Spot light in a future release as well (UE-3138).

When using the LPV option in a Material for "Emissive (Dynamic Area Light)" enabled will not actually treat the material as a light source, but instead will just inject the emissive color into the bounce generated from the directional light.

Here is an example with LPV enabled for the directional light:

Emissive Dynamic enabled in material: alt text

Emissive Dynamic disabled in material: ![alt text][2]

Right now, LPV is still not in a "Production-Ready" state. It's still a "hidden" feature that needs to be enabled outside of the editor. There are changes coming soon from Lionhead Studios that may be in 4.8, but I'm not entirely sure at the moment if that will be the case.

I hope this helps.

Tim

avatar image 隐形匆匆 Jun 27 '16 at 08:25 AM

Hi, Tim Hobson. I followed your way and succeeded in making the dynamic emissive light. But I dragged a cube beside the emissive sphere, I found that there was no shadow behind the cube. Is there any ways to make shadows for other actors? Thank you very much.

avatar image Tim Hobson ♦♦ STAFF Jun 27 '16 at 03:34 PM

The LPV only injects lighting in the scene but doesn't actually shadow cast. The object, such as your cube, would need to have cast its own shadows from any nearby light sources, such as a point/spot/directional light.

avatar image hynzla Dec 11 '17 at 10:27 PM

4.18.2

  1. Add r.LightPropagationVolume=1 to my console variables .ini and restart.

  2. enable Emissive (Dynamic Area Light) in the material.

  3. Add a directional light, enable Dynamic Indirect lighting, set Dynamic Shadow Distance StationaryLight to 10, and set intensity to .004

  4. In World Settings, I check Force No Precomputed Lighting.

  5. Add a post process volume and set to Infinite Extent (Unbound)

I see the LPV section with parameters. I attempt to rebuild the lighting, and it fails. Solutions?

https://forums.unrealengine.com/development-discussion/rendering/6116-light-propagation-volume-now-works-with-emissive-material?6914-Light-Propagation-Volume-now-works-with-Emissive-Material!!=

https://wiki.unrealengine.com/Light_Propagation_Volumes_GI

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

There all take care of. :)

more ▼

answered Oct 27 '18 at 04:48 AM

avatar image

porckchop
56 2 5

avatar image Alex Chozabu P-B Nov 06 '18 at 01:37 AM

This question is about dynamic lighting - so that checkbox should be checked.

avatar image porckchop Nov 07 '18 at 09:32 AM

Wow you are absolutely right, i seemed to have posted in wrong section this is what happens when you have a bunch of tabs opened. Sorry about that. This goes in light building section. But ill erase my post here.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question