Linear Interpolate | 5-Minute Materials [UE4]

Sdílet
Vložit
  • čas přidán 22. 08. 2024
  • Hey Prismaticrew! In today's episode of 5-Minute Materials we're looking at The Lerp Node, otherwise now as Linear Interpolate! This node allows us to interpolate (or blend) between two values, colours, textures, positions, and more! The Lerp Node is incredibly powerful and will be your best friend when it comes to creating awe-inspiring materials in Unreal Engine. If you're a beginner, you've come to the right place.as I'll show you several examples of what Lerp can be used for as well as some handy tips and explanations to help wrap your head around this wonderful function.
    ------------------------------
    Discord - / discord
    Patreon - / prismaticadev
    Twitch - / prismaticadev
    Twitter - / prismaticadev
    ------------------------------
    Computer Specs:
    Ryzen 3900x 12-core CPU
    MSI Geforce RTX 2080 Super
    64GB Corsair RAM
    One of those fancy nvme m.2 SSD's
    Programs of choice:
    Unreal Engine 4 - (Game Dev)
    Blender 2.8 - (Animation and Modelling)
    OBS - (Video/screen capture)
    Davinci Resolve - (Video editing)
    Adobe Photoshop - (Graphics and Texturing)
    Quixel Mixer - (Texturing)
    ProTools 11 - (Compositions and mixing)
    OldSchool Runescape - (Chillax time)
    Filmed using:
    Sony A7s2 body
    Sony 24-70mm f/2.8 GM lens
    Yonguo YN360 LED's for colour
    Yongnuo YN760 chip LED w/ Godox softbox for key
    My lovely cats names are Boycat, Girlcat and Ladycat :)

Komentáře • 54

  • @steliosstavropoulos499
    @steliosstavropoulos499 Před 3 lety +8

    Please tell me why this video has 2 dislikes!! Who did that? Those are the best tutorials on the internet!!!!

  • @Baleur
    @Baleur Před rokem +2

    Lerps are life, lerps are love.
    My kingdom for a lerp.

  • @hbonin
    @hbonin Před 3 lety +2

    5-Minute Materials. What a nice idea. Thanx again, Charlie!

  • @Xaeveax
    @Xaeveax Před 3 lety +2

    I've found the lerp node is one of most useful and versatile nodes. It's got so many applications that people tend to overlook.

    • @PrismaticaDev
      @PrismaticaDev  Před 3 lety +4

      Absolutely - it's one of the most simple AND most complicated nodes on the block!

  • @xabunoxx2850
    @xabunoxx2850 Před 3 lety +5

    Today I learned to Clamp ya damn Alphas

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

    Note: Saturate > Clamp 100% of the time unless you're gonna go out on 0 - 1 range. Saturate is free to and doesn't add toll on graphics computation.

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

      @@Hudson1615 yep - although I’m pretty sure the compiler will convert a 0-1 static clamp to a Saturate under the hood

  • @CosmicComputer
    @CosmicComputer Před 3 lety +4

    Excellent as always! Thanks! Would you ever consider “5-minute” blueprint nodes/behavior tree tasks etc reviews? I really enjoy your content and this format. Either way, love your channel man!

    • @PrismaticaDev
      @PrismaticaDev  Před 3 lety +3

      Heya Logan! If you're looking short Blueprint videos I HIGHLY recommend Mathew Wadstein's channel. He's already covered every single BP node in short videos and that's what inspired me to create this series :) I think he also covers Behaviour tree things

    • @CosmicComputer
      @CosmicComputer Před 3 lety

      @@PrismaticaDev will do, thanks!

  • @3DWithLairdWT
    @3DWithLairdWT Před 3 lety +1

    Yet again, awesome content!

    • @PrismaticaDev
      @PrismaticaDev  Před 3 lety +2

      Thanks legend :) Glad you're finding it useful!

  • @Fokkusu
    @Fokkusu Před 3 lety +1

    Amazing, my materials already use lerps but now I can level up the game with the lerps :D, thanks ^^

    • @PrismaticaDev
      @PrismaticaDev  Před 3 lety

      Thank you! Now you can lerp your lerps!

    • @Fokkusu
      @Fokkusu Před 3 lety

      @@PrismaticaDev I can lerp each option and the alpha for _extra fun_

  • @StevenDiLeo
    @StevenDiLeo Před rokem

    I'm always sure to like your videos before I even watch them, cause I know it's gonna be good. Keep it up dude, I love your teachings :)

  • @RomarioDev
    @RomarioDev Před 3 lety +1

    Awesome work my dude

  • @the_real_shoes
    @the_real_shoes Před 3 lety +1

    I love these vids so much. They're so useful! Would you consider making a video explaining the shortcuts in the material graph?

    • @PrismaticaDev
      @PrismaticaDev  Před 3 lety +2

      That's an amazing idea! I'll have to brush up on all of them haha especially since when I go to type something in, they're all out of order with the latest patch haha

  • @3dstuff677
    @3dstuff677 Před rokem +1

    Great tuto !! Thanks Bro !!

  • @alperenerol2299
    @alperenerol2299 Před 2 lety

    I've started to like before even i watch.

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

    men your are the best

  • @TerraTFT
    @TerraTFT Před rokem

    Beware the mighty thumbs-up Charlie, come to destroy this side of the universe.

  • @JieDu-yj2vd
    @JieDu-yj2vd Před rokem +1

    Who is cheaper between lerp and BlendMaterialAttribute?

    • @PrismaticaDev
      @PrismaticaDev  Před rokem +1

      BlendMaterialAttribute is like a Lerp but for every single material attribute at once. So it "might" be cheaper to use it if you're blending entire materials together (if they do some funky stuff under the hood) but otherwise a Lerp will be cheaper.

  • @wortnes
    @wortnes Před 3 lety +1

    Epic! S2

  • @PhantomZtryker
    @PhantomZtryker Před 3 lety +2

    What's the difference between saturate and clamp?

    • @PrismaticaDev
      @PrismaticaDev  Před 3 lety +6

      A clamp allows you to choose what values you want the clamp to be (presumably by using Min and Max functions) so you'd be able to clamp negative 1 to positive 2, for example. Saturate, on the other hand, always clamps 0 to 1 but it completely free on most GPUs according to the tooltip :)

    • @PhantomZtryker
      @PhantomZtryker Před 3 lety +1

      @@PrismaticaDev Good to know, thank you.

    • @vincenzoarnone7406
      @vincenzoarnone7406 Před 3 lety +3

      The "saturate node" tip to clamp a value it's really cool, but accordng to the 'Performance Guidelines for Artists and Designers' the Clamp node has a different performance cost when using 0 and 1 values, so I think it is using a similar (if not the same) algorithm in the background with those values.
      docs.unrealengine.com/en-US/TestingAndOptimization/PerformanceAndProfiling/Guidelines/index.html

    • @PrismaticaDev
      @PrismaticaDev  Před 3 lety +1

      @@vincenzoarnone7406 Good pickup! I imagined Clamp 0-1 would get optimized to do that. The saturate node is nice and small though :P

  • @Jake-co7rt
    @Jake-co7rt Před 2 lety +1

    My Materials Lerps don't seem to work... AT ALL.
    Always looks like the alpha is at 0, no matter what I use for input,
    or even if I just change the number without plugging anything in.
    Might there be a setting I'm overlooking?

    • @PrismaticaDev
      @PrismaticaDev  Před 2 lety +1

      Hey Jake! Sounds very odd indeed... You might be using a Material Instance of the material which has its alpha setting at 0? And the Master materials changes might not propagate. That would only be the case if you were using parameters though... Would you mind sending me a screenshot on Discord?

    • @Jake-co7rt
      @Jake-co7rt Před 2 lety

      ​@@PrismaticaDev, Thanks Very Much.
      For anyone who might have a similar issue:
      Make sure your color parameters have DIFFERENT names, or Lerp treats them as just ONE parameter even though they appear to be different.
      Charlie spotted it immediately, and it fixed the problem completely.
      Bravo, Dude. (c:

  • @christuusgnosis
    @christuusgnosis Před 2 lety

    I wish I had found this a year ago
    its one of the strangest things in unreal to figure out because its everywhere and there is no real instruction from unreal about how it works
    good tut

  • @user-ot4ww5by3r
    @user-ot4ww5by3r Před 6 měsíci

    does it work for interpolating texture in three.js?

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

      Hey hey - not sure what you mean. What is three.js?

  • @wasimsaifi7684
    @wasimsaifi7684 Před 2 lety +1

    lerp node available in material function?

  • @Nightwolfj2
    @Nightwolfj2 Před 3 lety +3

    I always herp, when I lerp.

  • @wasimsaifi7684
    @wasimsaifi7684 Před 2 lety

    This node is also not available in material editor.

  • @TomartStudios
    @TomartStudios Před 3 lety +1

    Can i have that texture file

    • @PrismaticaDev
      @PrismaticaDev  Před 3 lety +2

      Here you go :) www.dropbox.com/s/7equ32073rkox54/PackedClouds.png?dl=0

  • @wasimsaifi7684
    @wasimsaifi7684 Před 2 lety

    I am using UE5.

  • @felixmikolai7375
    @felixmikolai7375 Před 3 lety +1

    You need to add the links for other tutorials otherwise u just point the corner ;)

    • @PrismaticaDev
      @PrismaticaDev  Před 3 lety +2

      Haha I add little annotations via CZcams but they mustn't show up on Mobile possibly?? I will add the links now that you mention it though, thanks! :)

    • @felixmikolai7375
      @felixmikolai7375 Před 3 lety

      @@PrismaticaDev possible my phone then yeah but thanks :)