Height Lerp Node | 5-Minute Materials [UE4]

Поділитися
Вставка
  • Опубліковано 19 сер 2024
  • Ay ay ay let's go! Today we're looking at the HeightLerp Node. This material function is another banger that will help your textures pop out and look 3-dimensional. It takes in a height texture and enables you to blend between 2 textures/colours using that heightmap, which allows for grass to creep in-between bricks or for snow to fill the gaps in stones. The transition can be driven by a scalar parameter, vertex paint or even by another scalar texture (or all 3!) so the flexibility is endless.
    ------------------------------
    Discord: / discord
    UA-cam: / prismaticadev
    Twitch: / prismaticadev
    Patreon: / 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 :)

КОМЕНТАРІ • 75

  • @PrismaticaDev
    @PrismaticaDev  3 роки тому +36

    First

  • @Mar-wr4fm
    @Mar-wr4fm 2 роки тому +7

    Just wanted to leave a comment saying THANK YOU for this awesome series!
    I am in my last year of game development and I don't get thought things in depth unfortunately. I personally really love to learn things more on the background in order to tackle issues or even create new things, so thank you for making this awesome series! For every video I watch, I definitely leave a like and I am also subscribed
    Fantastic job and idea!

    • @PrismaticaDev
      @PrismaticaDev  2 роки тому +2

      Thanks so much Mar :) I learn in very much the same way so I figured I’d make videos in the same style. Thanks for watching!

  • @brokenhandle
    @brokenhandle 3 роки тому +3

    Thank you so much for this series, it's been absolutely eye opening and super educating.

    • @PrismaticaDev
      @PrismaticaDev  3 роки тому +1

      Thank YOU Eden :) I've had a pleasure sharing this stuff with everyone - excited to share some of the more complex things!

    • @brokenhandle
      @brokenhandle 3 роки тому +1

      @@PrismaticaDev you’ve got a dedicated viewer here!! Can’t wait. I also sent your animation playlist to a friend - I think he’ll absolutely love it. Have a great day :)

    • @PrismaticaDev
      @PrismaticaDev  3 роки тому

      @@brokenhandle Thanks so much!! I'm really looking forward to fleshing out the animation series :)

  • @Fokkusu
    @Fokkusu 3 роки тому +4

    This is amazing, I imagine they do something similar in Genshin Impact to freeze the water when you use ice magic over water, thanks for enlightening us!

    • @PrismaticaDev
      @PrismaticaDev  3 роки тому +4

      Yeah I imagine they use it but put the output into the Opacity Mask! I don't think the ice exists within the water shader though - definitely just a plane with collision and a world position XY-aligned texture (so that they all blend into one another)

    • @Fokkusu
      @Fokkusu 3 роки тому

      @@PrismaticaDev yea thats a very nice suggestion for anyone wanting to do the same thing :) pog

  • @AcidAlfa
    @AcidAlfa 3 роки тому +1

    Easy to follow and understand 👍best channel for material and shader stuff for sure

    • @PrismaticaDev
      @PrismaticaDev  3 роки тому +1

      Glad you think so Acid :) Glad the response has been great - I just explain things how I see them haha

  • @flufflepimp2090
    @flufflepimp2090 Рік тому

    You been my savior more times than I can count good sir

  • @silverknifex
    @silverknifex 3 роки тому +1

    will be using this soon! cant wait

  • @tamwyn0018
    @tamwyn0018 3 роки тому +1

    Wow the node is so awsome

  • @Tkonpk
    @Tkonpk 3 роки тому +1

    I feel like we're printing gold at this point

    • @PrismaticaDev
      @PrismaticaDev  3 роки тому

      I think I have a tutorial stored somewhere for that ;)

  • @Xaeveax
    @Xaeveax 3 роки тому +1

    I never knew this existed. Very helpful!

  • @denizkre8111
    @denizkre8111 2 роки тому

    niceee i just subscribet! i love the format. exactly what i needed, i appreciate your work and effort

  • @cptraymond
    @cptraymond 2 роки тому

    I absolutely love your work!

  • @hpbecraft
    @hpbecraft Рік тому

    that lava shader is 🔥

  • @AE_Surowka
    @AE_Surowka 3 роки тому +1

    Thank you

  • @mannythepirate
    @mannythepirate 3 роки тому +1

    These are the things

  • @RomarioDev
    @RomarioDev 3 роки тому +1

    SUPER LATE BUT AWESOME VID BRO!!!

  • @cyberafterlife
    @cyberafterlife 3 роки тому +2

    I love these videos dude, this and the bump offset video you put out have really come in clutch in my collaborative project at uni.
    Also while I'm here, at around 2:05 you change a parameter and have it update in realtime without needing to apply the material, how do you do that? It would save me so much time rather than having to go to an instance every time I wanna dial in a value.

    • @PrismaticaDev
      @PrismaticaDev  3 роки тому +1

      Hey there! Really glad to hear that it helped you out :)
      As for the parameter, since I have the material on an object in the world it will update in real there, but not in the material viewport for some reason haha.

  • @alessioalonne4333
    @alessioalonne4333 2 роки тому

    GREAT!

  • @alinarangi7826
    @alinarangi7826 5 місяців тому +1

    Thanks, man for your tutorials, to use Height Lerp the object needs lots of Vertexes?

    • @PrismaticaDev
      @PrismaticaDev  5 місяців тому +1

      If you're using it with Vertex Paint, then it has to have "some" verts. By that I mean that a square with 4 verts wouldn't give you much control, but if you subdivided it even once it would get a lot easier. It's best to experiment and add verts where needed. For example, a lot of the Wall meshes I use from the marketplace were just 1 big plane, and wooden support beams were the same. So I divided them length-wise so the vert colour would be more detailed. But in general, the HeightLerp is there to actually hide the lack of detail haha

    • @alinarangi7826
      @alinarangi7826 5 місяців тому

      @@PrismaticaDevthanks man

  • @vi8799
    @vi8799 8 місяців тому

    How to blend 3 materials with it?

  • @AgWhatsUp
    @AgWhatsUp 2 роки тому

    tried doing this on a landscape but it didn't work, any options I need on?

  • @HomakHakerok
    @HomakHakerok 3 роки тому +1

    damn you are a fucking legend

    • @PrismaticaDev
      @PrismaticaDev  3 роки тому +2

      Not as much as you! Thanks for the support m'dude :)

  • @user-nm4gt9zx7k
    @user-nm4gt9zx7k 2 роки тому +1

    Hi! Is there a way to use the HeightLerp in conjunction with Parallax Occlusion Mapping? In fact, I'd like to blend 2 materials together (like dirt and pebbles) with POM applied to each of them. I've tried to create such msterial myself, but faced some issues.. Can you make a tutorial about it? I'd really appreciate that :)

  • @Martin00able
    @Martin00able 3 роки тому +1

    You're explaying things really good! Can you make a lesson about auto landscape material? :)

    • @PrismaticaDev
      @PrismaticaDev  3 роки тому

      Already have! Check out my landscape auto-cliffs video :)

    • @Martin00able
      @Martin00able 3 роки тому +1

      @@PrismaticaDev Missed it somehow, thank you :))

  • @danlee7923
    @danlee7923 Рік тому

    It does not work with mip maps unfortunately

  • @bakedcheese4475
    @bakedcheese4475 3 роки тому +1

    Hey man love your content, I have learned a lot from your tutorials keep it up! kind of an offtopic question, but what monitor are you using?

    • @PrismaticaDev
      @PrismaticaDev  3 роки тому +2

      Heya Cheese! I'm using an AGON as my main monitor - 35 inch, 21:9 ratio, 100Hz, 2K resolution and it's c u r v e d hahaha. An absolute game changer for productivity! As for my 2nd and 3rd monitors one is an old Samsung 720p TV and the other is an even older SoniQ 720p tv haha.

    • @bakedcheese4475
      @bakedcheese4475 3 роки тому

      @@PrismaticaDev I definitely want an ultra wide for those productivity points xD. But Thanks man, have a wonderful day.

  • @gursimransingh8726
    @gursimransingh8726 3 роки тому +1

    WHAT ABOUT THE NEW SKY ATMOSPHERE NODES

    • @PrismaticaDev
      @PrismaticaDev  3 роки тому

      Eeee I haven't used any atmosphere effects yet :'( Haha I will get around to it eventually!

  • @yiannibompotsis7219
    @yiannibompotsis7219 Рік тому

    I am trying to figure out how to make a master material with 3 blending textures. Is there any way of making it??

    • @PrismaticaDev
      @PrismaticaDev  Рік тому

      You might want to have a look at my Vertex Painting video :)

  • @pto2k
    @pto2k Рік тому

    Hello,
    I wonder where can I find this brick texture assets with alpha?
    I found some textures from Megascan but they do not contain alpha channels. How would you create height map for those?
    Thank you!

  • @MarioAndYoshi1409
    @MarioAndYoshi1409 3 роки тому +1

    Awesome! Is this node cheap on performance or should I use it carefully?

    • @PrismaticaDev
      @PrismaticaDev  3 роки тому

      Extremely cheap - it's just a Lerp and a couple of multiplies. It's essentially free if you're re-using a heightmap or packing a heightmap in your texture (like the one I'm using with it in the Alpha channel)

    • @MarioAndYoshi1409
      @MarioAndYoshi1409 3 роки тому +1

      @@PrismaticaDev that's awesome, thank you so much for answering! i think I've said this a couple of times already, but you really are the best resource when it comes to material stuff man, thank you for doing all of this!!!!

    • @PrismaticaDev
      @PrismaticaDev  3 роки тому +1

      @@MarioAndYoshi1409 No worries at all, I always reply to 100% of comments haha. Hope to see you in the next one!!

  • @YouWillDoAsYouAreTold
    @YouWillDoAsYouAreTold 3 роки тому

    great content :) +1sub

  • @Jukerlaw
    @Jukerlaw 3 роки тому

    Darn it i wanna test it so bad! Pls give the texture u use XD

  • @JieDu-yj2vd
    @JieDu-yj2vd Рік тому

    Hi,Should the grayscale images used to blend textures be linearColor or masked?

    • @PrismaticaDev
      @PrismaticaDev  Рік тому

      Either should work fine as long as the output is 0 to 1 :)

    • @JieDu-yj2vd
      @JieDu-yj2vd Рік тому

      @@PrismaticaDev Yes, I tested that they can all work, but I want to know which one is better and which one is cheaper?

    • @PrismaticaDev
      @PrismaticaDev  Рік тому

      @@JieDu-yj2vd in terms of performance they're all identical, so just have a look at the Memory usage in the texture details when you change the compression type :)

  • @Dhieen
    @Dhieen 2 роки тому

    why dont you put your textures in the A and B of the heightlerp instead of a simple lerp?

  • @lemonworm
    @lemonworm 3 роки тому +1

    I really want a hard stylized noise and or height driven edge between materials and its basically impossible to accomplish with landscape paint. The wshy washy opacity of the paint is really frustrating to have to resign to. Is it possible/viable to utilize vertex painting instead? Or do you have any other suggested methods of creating a refinable edge between materials?

    • @PrismaticaDev
      @PrismaticaDev  3 роки тому +1

      Sure do! You can use HeightBlend instead of WeightBlend to get some great blending going. Landscape painting is basically vertex paint, except there aren't many verts to play with. By using a height texture you can "break up" the grid-y-ness. I'll be doing an entire sub-series about Landscapes in the coming weeks, but feel free to google landscape HeightBlend in the meantime :)

    • @lemonworm
      @lemonworm 3 роки тому +1

      @@PrismaticaDev i have height blend w the maps set up but i still am having trouble avoiding the translucent landscape paint brush opacity. Id ideally like to have it set up so the "strength" of the brush fills in the height more, rather than controlling opacity. Even better would be if I could somehow mask the blend between painted materials, like you can with auto landscape, So i could use noise to define the edge

    • @PrismaticaDev
      @PrismaticaDev  3 роки тому +1

      @@lemonworm Hmmmmmm... Mind sending me a screenshot on Discord? I'm sure we'll be able to get it working :)

    • @lemonworm
      @lemonworm 3 роки тому

      @@PrismaticaDev will do !

  • @andrewbyrnes6389
    @andrewbyrnes6389 3 роки тому

    But how do you combine this with a world space tiling texture that uses parallax occlusion masking (like a brick wall)

    • @PrismaticaDev
      @PrismaticaDev  3 роки тому

      So, the parallax occlusion function takes in a heightmap value - you’d just use the same value there as you would here and use it for the colour/normal. If you wanted the moss to actually “fill” the gaps in the bricks, you could add a Clamp to the parallax’s height value of which you could adjust the minimum clamp from 0 to 0.5 or something using the transition value

    • @andrewbyrnes6389
      @andrewbyrnes6389 3 роки тому

      @@PrismaticaDev I’ll give it a try. Thanks for the tips.
      I think from memory there was some problems with the tiling because the worldposition needed a texture object and the height blend needed a texture sample but idk. I’ll give it a try again!

  • @TheTrickyify
    @TheTrickyify 3 роки тому +1

    Not first

  • @FerlinDev
    @FerlinDev 3 роки тому +1

    First