This is NOT a Sphere! - A brief Ray-Casting overview for gamedev [UE5, UE4]

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ย. 2024
  • In this video we go through a simple implementation and use case sample of ray casting applied to material shaders.
    It is done in Unreal Engine 5, but can be applied everywhere (UE4, Unity, Godot, Shadertoy and whatnot, your choice).
    At the same time we also look at some more ways to make a plane billboard, as a followup of my previous video on that topic.
    The shader will be available for my supporters on Patreon.
    Discord: / discord
    Patreon: / visualtechart

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

  • @Salmonman0604
    @Salmonman0604 ปีที่แล้ว +39

    The irony of course being that the raycast sphere on the billboard is actually a more mathematically perfect sphere because it has infinite resolution compared to a mesh sphere that's actually just a series of flat triangles.

  • @Rupertboijedi
    @Rupertboijedi ปีที่แล้ว +13

    That is awesome! You should do a a water shader implementation like the bottles in Half Life Alyx!

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

      YAA I'd love to see your take on this Visual Tech Art!!

  • @miloszgierczak4806
    @miloszgierczak4806 ปีที่แล้ว +8

    why there is lack of jazz musik!!! whyyyy!!!!???

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

      I thought nobody was going to miss it :(

    • @lordkelvin1
      @lordkelvin1 ปีที่แล้ว +4

      @@VisualTechArt 😄 It adds so much life! Great video as always. Love the addition of the part where you're outside. I'm still struggling with a lot of this and I'm a tech artist

  • @GoatOfTheWoods
    @GoatOfTheWoods 11 หลายเดือนก่อน +3

    my dude, you are a genius. This is no longer a tutorial, it's just like watching a documentary about space-time

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

      Thanks xD

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

      @@VisualTechArt Anytime, and please do more videos!

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

    can you use your magic to make some kind of fake water fluid obstacle rock?

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

      That's definitely not an easy one, but one worth trying at some point :D

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

    i skipped the explanation pretending i actually understood the concept, which funnily helped me understand it 😂😂😂

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

      passes still feel a bit weird to me conceptually, i think because it was never taught to me, just mentioned in passing while following learning material

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

      math for game developers, algebra without the useless non game devvy things for example i need badllyy bahahaa

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

    Nice video! Can this work with particles? I tried to change object positions to particle position, but it doesn't seem to work.

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

      Yes it can be adapted for sure!
      Can't tell you exactly how from the top of my mind tho, maybe you can ask for help in my Discord Server ;)

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

    Okay, but why? Is this more performant? Wouldn't ray casting be more computationally demanding?

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

      Up to you to decide what to do with the knowledge :)

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

      @@VisualTechArt No worries. I was just curious to know what the motivation behind making it was. It's very cool and impressive.

  • @garrytalaroc
    @garrytalaroc 9 หลายเดือนก่อน

    Please do water

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

    Would it be possible to do this with a one axis camera aligned billboard making it look like a Tube/cylinder?

  • @averilongnem9873
    @averilongnem9873 6 หลายเดือนก่อน

    I can't get it to work for me :( . Does this work for UE 5.3.2? Adding the pixel depth offset makes it invisible and also the plane is not turning into a sphere for some reason.

    • @VisualTechArt
      @VisualTechArt  6 หลายเดือนก่อน +1

      Might have problems with nanite? Not sure to be honest

    • @averilongnem9873
      @averilongnem9873 6 หลายเดือนก่อน

      Never mind I got it fixed. I forgot to add values to the parameters. Other than that thanks for making this is amazing video! Definitely giving a like and sub :)

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

    'promo sm'

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

    Could this be done in terrain?

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

      To do what, exactly? :D But technically yes, you can do whatever you want to every surface

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

    ... and THIS.... is NOT what you think!

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

    A walkthrough and explanation, this is treasure.

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

    Wow, fantastic breakdown there.

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

    Woooow, such a great video as all of the other ones you have done! Thank you!

  • @xinterest9029
    @xinterest9029 5 หลายเดือนก่อน

    I love that this exists! I am having trouble imagining what context this would/should be used in, though.

    • @VisualTechArt
      @VisualTechArt  5 หลายเดือนก่อน +1

      Maybe if you want to simulate thousands of marbles this cha be useful xD
      The video is just a collection of all the basic elements you need to create fake geometry directly in shader, then it's up to you to find it some purpose :)
      I've used it in many cases

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

    really useful, thanks.

  • @7ossamMr2011
    @7ossamMr2011 ปีที่แล้ว

    amazing explanation, i've been searching for ages for someone to teach me such mathematics that deep and in action, thank you. your channel is now my favorite
    I just have a very little question, why did you dot product by itself while you could use the length node? aren't they the same formula? or the length node behaves different?

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

      Dotting a vector against itself gives you its squared length, which is what I needed :) It's the very same of doing Pitagora, but without the square root, which is the formula you use for "vector length"

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

    Great video thanks!

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

    Awesome guide as ever dude!

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

    That thing is wild, but can you use this method on tree and bush billboards?

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

      As long you can translate what you want to make to a math function, yes :D vegetation like this would be quite a challenge though

  • @cmds.learning7426
    @cmds.learning7426 ปีที่แล้ว

    cool

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

    fell in love

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

    Thank you, if I ever publish my game I will give you a %

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

    Comunque fantastico utilizzo della matematica! Mi domando se certe idee ti vengano in mente giocando con gli shader o se effettivamente stavi già cercando una soluzione ad un problema pregresso

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

      Un mix delle due :)

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

      @@VisualTechArt è molto interessante e seguendoti fin dagli inizi posso dire che sei davvero bravo

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

    Questa non è una pipa...
    🤣

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

      Ceci n'est pas une sphere ;) era l'idea iniziale in effetti xD