Unreal Engine 5/4 - Create Fire Light Flicker With A Light Function Material

Sdílet
Vložit
  • čas přidán 6. 09. 2024

Komentáře • 39

  • @TorQueMoD
    @TorQueMoD  Před rokem +2

    If you want to make the flicker even less random, here's my updated Node Network: imgur.com/gallery/vfPOZ3q

    • @ManaRealms
      @ManaRealms Před 4 měsíci

      Does this become expensive in performance if you have multiple light functions in the same area?

  • @nourghafarji
    @nourghafarji Před 11 měsíci +2

    i took this even further and added light flicker as well, makes change color with every pulse, amazing tip thanks!

  • @dooleymurphy
    @dooleymurphy Před měsícem +1

    Good stuff! And thanks for posting an update! Legend

  • @PatrickTheDM
    @PatrickTheDM Před rokem +2

    Very cool, I'll be giving this a try today in my maze game. Update: AMAZING! I'll have to add a video just for this change and you are definitely going in the credits.

  • @xXESproductionsXx
    @xXESproductionsXx Před 2 měsíci

    This is great! Thank you!

  • @VeeIsDead
    @VeeIsDead Před 7 měsíci

    brother I loved it. specially for it being quick to the point

  • @JeffersonDonald
    @JeffersonDonald Před 11 měsíci +1

    Brilliant. This is exactly what I needed. Thanks.

  • @mathildeheu1737
    @mathildeheu1737 Před rokem

    This was super useful! thank you - I couldn't find anywhere else (I am a beginner) how to not have to flicker go back to black x

  • @mattpierce5009
    @mattpierce5009 Před 9 měsíci

    Excellent tutorial, thanks

  • @Weifs
    @Weifs Před 9 měsíci

    really helpful tutorial! thank you so much for this

  • @AleksanderGromann-gn1el
    @AleksanderGromann-gn1el Před 3 měsíci

    i bit more randomness in the flickering would be nice

  • @user-jw9ne2hi5q
    @user-jw9ne2hi5q Před 5 měsíci

    Thanks a lot u made my day

  • @maxkutsenko7169
    @maxkutsenko7169 Před 10 měsíci

    great stuff, really helpful

  • @nordyke1345678910
    @nordyke1345678910 Před 6 měsíci +1

    I can't seem to add a color changer to this set up, when I do it just makes the light stay white

    • @TorQueMoD
      @TorQueMoD  Před 6 měsíci

      You change the color of the light in the light properties, so there's no way you can modify it with a material function. You either need to do it in the light itself, or through the construction script in a blueprint.

  • @professorfroopynoopers1171
    @professorfroopynoopers1171 Před 5 měsíci

    Thank you so much for posting this, awesome stuff man!

  • @primephasegames
    @primephasegames Před rokem

    Thanks, helped alot.

  • @vherbmedia8296
    @vherbmedia8296 Před rokem +3

    Not bad! I have one issue though, I'm noticing between the time, sine, and flac nodes, we have a repeating flicker pattern going on. it becomes pretty clear the more you look at the flickering. how can we continuously randomize the flickering so the pattern doesn't become apparent?

    • @TorQueMoD
      @TorQueMoD  Před rokem +2

      It's difficult for it to not be a repeating pattern when using a sine node as it is a perfectly repeating waveform. You would have to use some form of noise to make it less noticeably repetitive, but it's also much more expensive. You could try using a cloud texture with high contrast and a panner to move it around.

    • @TorQueMoD
      @TorQueMoD  Před rokem +5

      I actually came up with a better method to make it less random by combining 3 sine waves with different periods: imgur.com/gallery/vfPOZ3q

    • @vherbmedia8296
      @vherbmedia8296 Před rokem +1

      @@TorQueMoD Hey this is a waaay better result! Thank you for this update!

  • @da_drood-digitalart
    @da_drood-digitalart Před 5 měsíci

    This looks great! Is there a way though to randomize the flickering time so that it doesn't flicker at regular intervals? I found a tutorial showing that with blueprint but then i couldn't make it work in the sequencer, while having a simple light function material applied on the light could make it work easily. Thanks for any help you could give

    • @TorQueMoD
      @TorQueMoD  Před 5 měsíci +1

      Yeah, actually. I figured this out after I made the tutorial. Here's a link to a screenshot of my new lightfunction. I'll post a tutorial on it when I get a chance. imgur.com/a/UZoEow8

    • @da_drood-digitalart
      @da_drood-digitalart Před 5 měsíci

      @@TorQueMoD hey thanks very much for that, it's really appreciated 🤗 Will try this soon🤟🏼

    • @kristinstetz9393
      @kristinstetz9393 Před 2 měsíci

      @@TorQueMoD Did you ever post the video? Can't find it on your page

  • @NaOHNoah
    @NaOHNoah Před 6 dny

    Hey! I'm pretty new to materials, mostly been doing backend dev stuff, so maybe this is an easy question. My one issue with this type of flicker is if you've got multiple sources they all get sync-ed up. Is there a way to add some sort of random seed or something to each instance of this so they flicker at different rates? I know I can make a bunch of different materials and have it randomly select from them, but i'd like to be able to dynamically do it. I'm not sure if i can expose a variable in the material instance to BP and have each actor feed it a number?
    Any suggestions? The Material Graph is foreign to me, lol

    • @TorQueMoD
      @TorQueMoD  Před 6 dny

      Yeah, so the Flicker time is what determines the speed of the flicker (it's allowing you to make the game time faster if greater than 1 or slower if less than 1), so if you make a material instance (right click in Content browser and choose Make Instance) then you can adjust the flicker time for any instance. If you want it to automatically choose a random time you can either use the Per Instance Random node which will pick a random value for every copy you put in the world, or instead of the Flicker time, use "random float in range" and then set the min to be .5 and max to be 2 or something like that and you'll get anywhere between half as fast to twice as fast.

  • @fxbaba24
    @fxbaba24 Před 6 měsíci

    thank you

  • @eligijuspranskunas3509
    @eligijuspranskunas3509 Před 5 měsíci

    nice!

  • @kristinstetz9393
    @kristinstetz9393 Před 2 měsíci

    Does anyone know how to place several in the scene without them flickering in sync?

    • @TorQueMoD
      @TorQueMoD  Před 2 měsíci

      Two options: there’s a Per Instance node that you can use to make the time different for each instance, or you can just use a “random float in range” for the time multiplier and set the min to something like 0.9 and max to 1.2 and each one will flicker at a different speed.

  • @samohickey
    @samohickey Před 3 měsíci

    Is there a way to make it simply dim, rather than completely go black when flickering? My game is more stylized and having it flicker all the way to black doesn't quite match my scene.

    • @TorQueMoD
      @TorQueMoD  Před 3 měsíci +1

      You could use a sine node to drive a lerp node's alpha channel and then set your own values for A and B, with A being a constant of 1 and B being 0.5 for example. Then it's just going to blink between those two values rather than being derived directly from the sine's values.

    • @samohickey
      @samohickey Před 3 měsíci

      @@TorQueMoD Exactly what I needed. Thank you!

  • @GigaBraumChad
    @GigaBraumChad Před 9 měsíci

    If i wanted to added multiple torches, how do i make the flickering be at different times?

    • @TorQueMoD
      @TorQueMoD  Před 9 měsíci

      Just create an instance of the material and adjust the flicker time and choose that as the Light Function you add to your light.

    • @kristinstetz9393
      @kristinstetz9393 Před 2 měsíci

      @@TorQueMoD So we need a new instance for every light in the scene?