Underwater Caustics - Advanced Materials - Episode 41

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ม.ค. 2025

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

  • @HylianEvil
    @HylianEvil 11 หลายเดือนก่อน +5

    Always a treat to get these videos

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

    This series is excellent. Thanks, Ben!

  • @jonascarvalhodearaujo8038
    @jonascarvalhodearaujo8038 11 หลายเดือนก่อน +1

    Yesterday I was working on adding your previous caustics shader (for the post processing underwater one) on Unity and was having a hard time on one final step, so I went to bed to try again today and I just received the notification of a this new video haha
    Gold content as always, Ben!

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

    This is awesome, thank you so much!!
    At 19:02: This "stretching" is exactly what real caustics do though and it is dependent on the angle of the sun shining into the water.

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

      In my case, I created it this way originally because it was what the art director wanted. "Hey, why aren't there any caustics over here on this side of the underwater cliff? And no, I don't want to change the direction of the sun to get them there." So it's more of an esthetic thing rather than trying to simulate the way caustics actually work.

    • @Yoctopory
      @Yoctopory 8 หลายเดือนก่อน +1

      @@BenCloward Art directors, am I right? 🙄😄
      I found out that when I put your material on a light function with a directional light, I get that shadows (no caustics in dark places, just like in real water) and the light direction / rotation can just be matched that of the sun. Also, because it's light, it gets "multiplied" with the ground and objects and looks real nice.
      Only problem, I can't seem to figure out how to only start the caustics from a specific depth - because it is a directional light, the whole world is now full of caustics 😆. And also I couldn't figure out light attenuation with this. Guess it needs some more work.. If you know something about that, I would be really happy. If I figure out something, I let you know.

  • @KC3D
    @KC3D 11 หลายเดือนก่อน +2

    Thank you so much Ben!!!
    I have a small request: I did a Borderlands Comic book style global shader for black outlines in the world, but I do not know how to control their visibility based on distance from the camera (meaning probably thickness than visibility, but sort of the same).
    Is there any videos you've done about this? You've mentioned that it is controllable as such in your old Comic style PP video, but I do not think you've covered it?
    Thank you!!!

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

    Interesting. Not sure I prefer this over the more subtle light leaks that already existed in the previous tutorial, but it's an interesting learning experience. Keep up the good work.

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

    Hi Loving your tutorials and beavering away enjoying exploring materials in Unreal, is there a way of changing the caustic texture to say, cell noise?

  • @mountain_tiger256
    @mountain_tiger256 11 หลายเดือนก่อน +1

    When using URP, the Sample Buffer node set to NormalWorldSpace returns black?
    I have also enabled SSAO to trigger the depth normal prepass which comes before the DBuffer one.

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

      I think I'm having the same issue, so the projection is always oriented to X plane. Can't find a workaround 🤔

    • @BenCloward
      @BenCloward  11 หลายเดือนก่อน +4

      Yes, the SampleBuffer node doesn't work correctly in URP. It's an HDRP node. In my next video, I show a different method for getting the world space normals that works better.

  • @mountain_tiger256
    @mountain_tiger256 11 หลายเดือนก่อน +1

    Why does the normal vector Node return the projectors direction instead of the surface normal? I could never understand this.

    • @BenCloward
      @BenCloward  11 หลายเดือนก่อน +1

      There is no normal on a decal because there is no geometry/mesh - so what the Normal Vector node should provide is a bit ambiguous.

  • @punkerspb
    @punkerspb 11 หลายเดือนก่อน +2

    Thank you very much!!!

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

    Amazing!
    And about the water shader you use in Unreal example?

    • @BenCloward
      @BenCloward  11 หลายเดือนก่อน +1

      If you're asking how I made it, take a look at episodes 36-40.

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

    I asked for this last week, I didn't think much of it since then which made this video quite the gift for me today, thanks Ben!
    I hope you can teach us more and more of this cursed wizardry that is shader graph =]
    Also, can we get a tutorial on Surface Gradient Bump Mapping? That would help me with some procedural shaders I've been making.

    • @BenCloward
      @BenCloward  11 หลายเดือนก่อน +1

      Glad I could help! Sometimes people's requests line up really nicely with the direction I'm going and it works out really nicely like this.

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

    why is your foam only visible if it's projected in front of the stones or whatever intersecting the surface? the foam just disappears when the object underneath curves out of visibility.

    • @BenCloward
      @BenCloward  11 หลายเดือนก่อน +1

      This technique is using the different between the distance to the water surface and the distance to the surface behind it to determine where to place the foam. It's nice because it automatically applies foam, but it does have the downside you pointed out. You could also just paint a mask texture to control where you want the foam to go, but that's a bit more work. So it depends on if you want an automatic solution with a few drawbacks (the one I show in this video) or if you want to use a bit more manaul labor and to make something without the drawbacks.

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

      @@BenCloward ok, I understand, there's no automatic solution for what I am talking about.

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

    rendering pipeline?

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

    Hi Ben,Do you maybe know if there is a way in unity HDRP to caustic(decal ) reduces the intensity depending on the shadows from the scene?For example,if i have some rock with shadow i want to decrease caustic intesity where is the shadow of rock or some shadow caster object.

    • @BenCloward
      @BenCloward  11 หลายเดือนก่อน +1

      I know how to create a custom code node in Unity's URP for accessing the shadow mask, so I could do it there, but I don't yet know how to do that in HDRP. It could be that it's not possible because the shadows are calculated after the decal pass. Not sure.

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

      @@BenClowardCould you post code for URP, to see how to access and sample an shadow map,i guess shadow map is atlas? I will try to buffer the shadow map from the previous frame and use in curent frame in HDRP.

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

      @@bojandronjic4658did you ever figure this out?

  • @googlefuuplayad9055
    @googlefuuplayad9055 11 หลายเดือนก่อน +1

    Uiii.. Thanks.. Lets watch it 😊

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

    any way to mask out shadows on the shader level ? (for dynamic lighting) caustic never does that much in a shadowed area

    • @BenCloward
      @BenCloward  11 หลายเดือนก่อน +2

      Yes, know how to do that in Unity using custom code. I may show it next week.

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

      @@BenCloward cool that's really interesting, I need that stuff for Unreal tho...

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

    but... why? why did you removes vertical leaks and did this terrible triplanar? Take a look on real caustic - it is leaking.. cause it is projected.. by sun. ))

    • @BenCloward
      @BenCloward  11 หลายเดือนก่อน +4

      Ouch - thanks for the feedback. Sorry you don't like it. You make some good points. If I get some time, I'll experiment with what you're suggesting.

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

      @@BenCloward I preferred the triplanar too lol

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

      Tend to agree😅 I think maybe reducing the intensity as a normal converges on the x or z planes would've looked better.
      Also, as well as the UV warping, multiplying instead of adding the scrolling caustics might help to disguise the fact they're just 2 linearly scrolling textures a bit better.☺️

    • @Shiva4D
      @Shiva4D 11 หลายเดือนก่อน +1

      @@BenCloward I sed triplanar caustic its sucks, not your tutorial. Your tutorial its good and cover a lot of trouble places. I like it. But im sure with your knowledge you can du amazing caustic. For example.. caustic have more intense warping with deep. You can generate 2-3 types of texture with bigger warping and blend by height. )