Linear Interpolate | 5-Minute Materials [UE4]

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ม.ค. 2025
  • 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 :)

ความคิดเห็น • 57

  • @StudioReplica_Arch
    @StudioReplica_Arch 11 วันที่ผ่านมา +1

    Instant subscription

  • @steliosstavropoulos499
    @steliosstavropoulos499 3 ปีที่แล้ว +9

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

  • @hbonin
    @hbonin 3 ปีที่แล้ว +2

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

    • @PrismaticaDev
      @PrismaticaDev  3 ปีที่แล้ว +2

      Hope they're coming in handy! :)

  • @StevenDiLeo
    @StevenDiLeo 2 ปีที่แล้ว

    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 :)

  • @Baleur
    @Baleur 2 ปีที่แล้ว +2

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

  • @CosmicComputer
    @CosmicComputer 3 ปีที่แล้ว +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  3 ปีที่แล้ว +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 3 ปีที่แล้ว

      @@PrismaticaDev will do, thanks!

  • @Xaeveax
    @Xaeveax 3 ปีที่แล้ว +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  3 ปีที่แล้ว +4

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

  • @RomarioDev
    @RomarioDev 3 ปีที่แล้ว +1

    Awesome work my dude

  • @Fokkusu
    @Fokkusu 3 ปีที่แล้ว +1

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

    • @PrismaticaDev
      @PrismaticaDev  3 ปีที่แล้ว

      Thank you! Now you can lerp your lerps!

    • @Fokkusu
      @Fokkusu 3 ปีที่แล้ว

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

  • @the_real_shoes
    @the_real_shoes 3 ปีที่แล้ว +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  3 ปีที่แล้ว +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

  • @3DWithLairdWT
    @3DWithLairdWT 3 ปีที่แล้ว +1

    Yet again, awesome content!

    • @PrismaticaDev
      @PrismaticaDev  3 ปีที่แล้ว +2

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

  • @3dstuff677
    @3dstuff677 2 ปีที่แล้ว +1

    Great tuto !! Thanks Bro !!

  • @alperenerol2299
    @alperenerol2299 2 ปีที่แล้ว

    I've started to like before even i watch.

  • @Jake-co7rt
    @Jake-co7rt 3 ปีที่แล้ว +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  3 ปีที่แล้ว +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 3 ปีที่แล้ว

      ​@@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:

  • @wasimsaifi7684
    @wasimsaifi7684 3 ปีที่แล้ว +1

    lerp node available in material function?

  • @PhantomZtryker
    @PhantomZtryker 3 ปีที่แล้ว +2

    What's the difference between saturate and clamp?

    • @PrismaticaDev
      @PrismaticaDev  3 ปีที่แล้ว +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 3 ปีที่แล้ว +1

      @@PrismaticaDev Good to know, thank you.

    • @vincenzoarnone7406
      @vincenzoarnone7406 3 ปีที่แล้ว +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  3 ปีที่แล้ว +1

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

  • @HarshilMungalpara
    @HarshilMungalpara 11 หลายเดือนก่อน

    does it work for interpolating texture in three.js?

    • @PrismaticaDev
      @PrismaticaDev  11 หลายเดือนก่อน

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

  • @sylvainhuard2133
    @sylvainhuard2133 ปีที่แล้ว

    men your are the best

  • @Hudson1615
    @Hudson1615 6 หลายเดือนก่อน +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  6 หลายเดือนก่อน +1

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

  • @JieDu-yj2vd
    @JieDu-yj2vd ปีที่แล้ว +1

    Who is cheaper between lerp and BlendMaterialAttribute?

    • @PrismaticaDev
      @PrismaticaDev  ปีที่แล้ว +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 3 ปีที่แล้ว +1

    Epic! S2

  • @wasimsaifi7684
    @wasimsaifi7684 3 ปีที่แล้ว

    This node is also not available in material editor.

  • @xabunoxx2850
    @xabunoxx2850 3 ปีที่แล้ว +5

    Today I learned to Clamp ya damn Alphas

  • @TomartStudios
    @TomartStudios 3 ปีที่แล้ว +1

    Can i have that texture file

    • @PrismaticaDev
      @PrismaticaDev  3 ปีที่แล้ว +2

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

  • @navi2710
    @navi2710 4 หลายเดือนก่อน

    Nuuu. The tutorials here and here didn't appear.

  • @christuusgnosis
    @christuusgnosis 2 ปีที่แล้ว

    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

  • @TerraTFT
    @TerraTFT ปีที่แล้ว

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

  • @dmitr6926
    @dmitr6926 7 วันที่ผ่านมา

    So lerp = cats..? Overlords! ❤

  • @Nightwolfj2
    @Nightwolfj2 3 ปีที่แล้ว +3

    I always herp, when I lerp.

  • @wasimsaifi7684
    @wasimsaifi7684 3 ปีที่แล้ว

    I am using UE5.

  • @felixmikolai7375
    @felixmikolai7375 3 ปีที่แล้ว +1

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

    • @PrismaticaDev
      @PrismaticaDev  3 ปีที่แล้ว +2

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

    • @felixmikolai7375
      @felixmikolai7375 3 ปีที่แล้ว

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