Emit Dynamic Material at Night

I’ve created a day/night cycle, but I’m also looking to make an object start glowing at certain points on the timeline.

I have made a street lamp turn on at certain times of the day but I can’t seem to figure out how to slowly increase the glow value rather than having it immediately turn on.

Here is my level blueprint for the day/night cycle:

And this is the blueprint used for the dynamic light material to just flick on:

I guess you could use an other timeline/matinee, which increases/decreases the lamp’s glow value over time at a certain time of day.

I’ve tried but it still thinks it’s a constant value. :frowning:
This is what I’ve got going on the timeline that’s used for the light given that 24s is 24 hrs:

Instead of setting the intensity, you could spawn your light source on the correct time of the day. This way you can put in a timeline in the construct script of this light, and it will give you the correct result you want.

I will try that and let you know if it works!

You need to use that Lamp Val variable directly instead of comparing it if you want to achieve transition. I.e. the default value of the glow is 15, and Lamp Val is 1 at night > 15 x 1 = 15 - when it is day time Lamp Val is 0 in timeline so 15 x 0 = 0 meaning no glow. So you’ll just multiply Lamp Val with 15 and connect it to set scalar parameter node(you only need one, since you wont be using Compare anymore)