UE5: World Position Effects in Materials // Unreal Engine Tutorial

Поділитися
Вставка
  • Опубліковано 16 вер 2024

КОМЕНТАРІ • 26

  • @MrChisnok
    @MrChisnok 3 роки тому +12

    I'm so happy to see you uploading videos again after such a long time.
    I've learned a lot from you, excited to learn more!
    Thank you

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

    You just cant imagine how happy I am to see your videos again. Right now I cant watch because of work, but I am watching little by little.

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

      Fantastic! I found the joy of it again. Streaming every Thursday, talking to others in the chat, added spontaneous energy :)

  • @maxleveladventures
    @maxleveladventures Рік тому +1

    This was absolutely fantastic. I'm just getting started in UE. Nearly every tutorial I come across that's "beginner" is just a paint-by-numbers with no technical explanation of why each decision is being made. I appreciated this video soooo much. I hope to catch a stream soon! Cheers

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

    Awesome stuff, helped me understand position materials better and gave me some new ideas.

  • @malindurashmika8386
    @malindurashmika8386 6 місяців тому

    Great video man. You are such a honest and talented man. Thank you so much

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

    Thank you for the tutorial. Found exactly what i needed (planar mapping).
    Cheers!

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

    thanks!

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

    This helped alot, thanks!

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

    Dzięki 👏

  • @cmds.learning7426
    @cmds.learning7426 3 роки тому

    cool

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

    51:20 Would it be possible to make this work horizontally? I want to make buildings with different colors by moving them in x/y

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

      You can do that by using XY coords to sample 2D noise. It can be a texture (e.g. Clouds from Photoshop or anything from Substance Designer). If pure randomness is okay, you can use a cheap 2D noise instead: ua-cam.com/video/jtABrURpEc8/v-deo.html

  • @lilouhaefner3352
    @lilouhaefner3352 2 роки тому +1

    12:00 Isn't it actually barycentric interpolation between the triangle's vertices? (It would be linear if we were only rendering lines)

    • @TechArtAid
      @TechArtAid  2 роки тому +1

      Actually yes, thanks. And there's the perspective correction (unlike the PlayStation 1)
      stackoverflow.com/a/24460895
      "the depth of the fragment is not linear in window coordinates, but the depth inverse (1/gl_Position.w) is. Accordingly the attributes and the clip-space barycentric coordinates, when weighted by the depth inverse, vary linearly in window coordinates."

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

    Right now, i am working on worldaligned uvs. I am dividing the Y of the absolute world position with the X of the vertex normals to neutralize the scaling when projecting the textures on a flat surface. This works great, but at a specific angle the world position is divided by 0 and unreal does not like this :). Normally a mask and another projection from another axis would solve this problem. I had the idea to offset the worldspace (and vertex normals) by a few degrees, so you would never notice the scaling issue while working with the grid. This would allow me to half the amount of texture samplers for a XY projection.
    My only problem is I do not know how or if this is even possible in the shader editor.
    And thank you for the videos. They are awsome! :)

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

      Thx :) Hmm. Maybe remap the normal X so that it never reaches zero? Lerp (0.2, 1.0, normalX) for example

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

      @@TechArtAid Thank you, great idea! I tried it.... and came to the conclusion that I have nothing to divide it with (because of the projection). So there was this cheap rotate function in unreal (yes the "cheap" function you liked so much in one of your streams :)). I took and modified what i needed from it and now the shader works like a charm :).

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

      Great :D

  • @ABentPaperclip
    @ABentPaperclip 4 місяці тому

    hrm.. in the 'burning ghost' example, what happens when you have more than one? is there any smart way to handle multiple ghosts contributing their own radius/position to this effect?

    • @TechArtAid
      @TechArtAid  4 місяці тому

      If you need a few, pass them as separate parameters, calculate their radial masks then combine it via Max nodes (the greater of 2 masks always "wins" - which is nicer than Add).
      If you have dozens, you can generate a little 32-bit (HDR) texture, with their positions written as pixel values. Then HLSL to loop over that

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

    I have tried a few tutorials and none of them and same with. I have tried all the RBG colors in the mask and only one axis works.

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

    saturate is not clamp -> Values less than 0 are raised to 0; values greater than 1 are lowered to 1;

    • @TechArtAid
      @TechArtAid  2 роки тому +1

      Yup? therefore it's Clamp(x, 0, 1)

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

    why not use fmod instead of frac ?