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"

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: alt text

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

Product Version: UE 4.9
Tags:
capture.jpg (95.2 kB)
capture2.jpg (73.6 kB)
more ▼

asked Oct 14 '15 at 08:23 AM in Blueprint Scripting

avatar image

RatBag13
11 1 2 2

avatar image Enlo Oct 14 '15 at 08:50 AM

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.

avatar image RatBag13 Oct 14 '15 at 10:07 AM

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

capture3.jpg (33.3 kB)
avatar image Lostra01 Oct 14 '15 at 12:30 PM

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.

avatar image RatBag13 Oct 15 '15 at 12:54 AM

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

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

1 answer: sort voted first

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)

more ▼

answered Oct 15 '15 at 01:26 AM

avatar image

Jacky
16.8k 671 167 677

(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