Extremely useful lessons for people who are just starting out on shaders, like myself. Thank you Ben, you are awesome!
@DawnBriarDev Жыл бұрын
Hi Ben, I wanted to drop by and apologize for having not contributed any views in a while. Was going through my subscriptions and pruning them, but decided to stay subscribed here for the value you'd given me when I learned from you. Sadly, the nature of an educational channel is that your userbase eventually learns enough from you that they may ultimately lose the need to watch by coming to understand the underlying principles which you have taught quite thoroughly. See, where in similar channels or guides, people will explain HOW to make a specific shader, you instead delve into explaining WHY the math works. And after a few tutorials, I found it became easier and easier to use those mathematic principles to design my own shaders without needing to ask someone how to do so. (Coupled with other development work I was doing, this process escalated even more quickly overall.) And this is a sign of a great educator: To haven your students to not need your help anymore. So thank you, Ben. I'll stay subscribed and every now and then pull you up in the background for the added metrics, but it's been almost 2 years since I think I've actually needed your help, and I greatly appreciate how much you helped me with getting familiarized in the beginning.
@BenCloward Жыл бұрын
Thanks a lot for this! I’m really glad I could help you!
@mridulsarmah5974 Жыл бұрын
One of the most important shader lessons till date. Thanks Ben.
@cmitchell6927 Жыл бұрын
Thank you for this and for including the normal map even!
@tommygunn278215 күн бұрын
This was AMAZING!!!
@vlad.serbanescu Жыл бұрын
You really need to make a video on why you're making all these videos for free. I almost never comment on YT, but I watched most of your videos over the years and... 10/10 content. Thank you! I especially enjoyed the procedural grid and texture tiling break-up series. I'm currently looking for ways to combine your break-up technique with a 3D Voronoi mask (preferably cached) or a seamless Voronoi cube map (preferably from 6 cached projections), but I haven't figured out a way to index the Voronoi cells and edges yet. I thought it was a cool idea to share.
@Bl1tzkriegx Жыл бұрын
I'd say he puts it out for free to help those interested in technical art achieve what they're looking for. Definitely some fantastic content from him, my one and only gripe is how he grabs a constant variable by searching rather than holding 1 and clicking lol.
@LoopSkaify Жыл бұрын
This is the pearlescent shader blackbox used for the old need for speed games (this is just in shader but they precalculated some parts in code, but it still works). Here is the pseudocode: FVector ViewDir = Normalize(CameraPosition - WorldPosition); float VDot = Dot(ViewDir, VertexNormal); //Here happens the sRGB conversion for Unreal float VDotN = Max(Pow(VDot, 2.2), 0.01); FLinearColor DiffuseMin = FLinearColor(0.794, 0.974, 1.01); float DiffuseMinLevel = 0.697; DiffuseMin *= DiffuseMinLevel ; FLinearColor DiffuseMax = FLinearColor(0.142, 0.157, 0.951); float DiffuseMaxLevel = 1.798; DiffuseMax *=DiffuseMaxLevel ; FLInearColor DiffuseRange = DiffuseMax * DiffuseMaxLevel - DiffuseMin * DiffuseMinLevel ; FLinearColor DiffuseColor = DiffuseMin + DiffuseRange * VDotN; FLinearColor PaintColor = FLinearColor(0.351, 0.045, 0.045); FLinearColor FinalColor = PaintColor * DiffuseColor ; They did he same thing with specular colors, just influenced the VDotN with a Pow(VDotN, SpecularBlend); As Unreal doesnt allow Specular Color you can add this simply on top of the paint color to achieve another layer with the a SpecularBlend value of eg. 2.0; Example for the specular ranges that fit here: FLinearColor SpecularMin = FLinearColor(1,0, 0,15, 1,7); float SpecularMinLevel = 1,476; FLinearColor SpecularMax = FLinearColor(0,165, 1,237,1,0); float SpecularMaxLevel = 1,273; float SpecularBlend = 1.918; They also used this range thing to colorize the reflection texture but that is in UE just for reflection captures and i assume barely anyone uses them for performance reason. But that could be another layer for the diffuse color in UE.
@LoopSkaify Жыл бұрын
Btw., it may be enough depending on the model to move this entirely into the VS like they did it then. A simple 'VertexInterpolator' after that would suffice.
@retronexusnet Жыл бұрын
This series is just endlessly helpful
@GherardoMartin Жыл бұрын
Thanks a lot for the great tutorial! Really helpful
@jhebadiasprunklefunk9243 Жыл бұрын
Nice. It's also possible to gradiate the fresnel using a colour curve asset, which acts like a gradient map in Photoshop & SBS. Where as with lerps you are limited to the number of points defined in the shader.
@MRRadioactivNEx Жыл бұрын
I would really like to see 2 tutorials from you: 1) Blending Normalmaps from different UV Channels (eg the second UV Channel contains a Decal Atlas) 2) A Fluid in a Bottle. Maybe you know the Bottles from Half Life Alyx, if you move them around, the shader simulates how the fluid react to the movement. Thank you for your great Tutorials Ben! I really like them! 😊
@1MOLNH3 Жыл бұрын
As always, great video master. Thanks a lot. Btw I just wanted to say that Unity have that Coat Normal option too but only in the StackLit shaders.
@RAM_industrial_death_metal Жыл бұрын
Great video. Thank you
@knowercoderАй бұрын
Thank you!
@Gorongirl Жыл бұрын
Ok I have a lot of questions!! Also, what a great video!!! 1 - Could you use the voronoi effect to generate a glittery normal map? I guess you would need to seed a new value in each cell across the different normal channels. Is that viable? 2 - Is it just a real-world physical property of car paint to have a fresnel color effect? Also thank you for giving me a name for the chameleon effect paint. 3 - Is the effect of adding the clear coat sort of like creating a specular layering effect, adding the specular highlights together instead of overriding them? So that we get both the unique effect of the sparkly specular in the lower layer combined with the specular of the clear coat? I’ve always wondered what this effect was for and how it worked. 4 - Is the process of converting the carbon fiber from tangent to world and then applying a fresnel similar to the process some programs use to generate an AO map from a normal? It reminds me of it a bit, especially before the one-minus, but I never made the connection. 5 - Are gradient maps (for color remapping) basically like daisy-chained Lerp functions? The Lerp step in the Unity instructions for some reason made me make that association. Thank you again for these videos!
@BenCloward Жыл бұрын
1 - yes, although procedural Voronoi is a bit expensive. It would probably perform better to just sample a small texture for that, but you’d need to try it and see to know for sure. 2 -Not all car paint has a Fresnel effect. Just the fancy, show-off kind. 3 - yes. We’re trying to mimic the fact that the surface has a thin coat of transparent wax on it. So the top surface is very smooth, so some of the light gets reflected as a very tight specular highlight. But since it’s transparent, the light also passes through and bounces of the main surface underneath - which has a different set of reflective properties. 4 - We transform the normal from tangent to world because when you use two vectors together - such as with our dot product, both vectors need to be in the same space. Our camera vector is n world space, so we need to get our normal vector there two so that the dot product operation between them will make sense 5 - yes, gradients are pretty much exactly Daisy-chained lerps. Great questions! Makes me happy to see your excitement for understanding.
@AhmedHasan91 Жыл бұрын
Amazing. thank you ♥
@antoniosuarez7881 Жыл бұрын
thanks, grate tutorial
@naht4963 Жыл бұрын
Hello! Thank you for the amazing videos Ben! I realize I'm kinda late to the underwater post-processing effects party, but could you do a tutorial on creating realistic lighting underwater ?
@TruckerJoeOfficial Жыл бұрын
Thank you for the tutorial! Do you have an idea how I can make it that the color is changeable from the material inspector? I can only take colors as input. That is not that problem, but how can I make the gradient from 2 input colors?
@mysteriousanayasman5416 Жыл бұрын
use two "Color" nodes instead of "Gradient" and use "Lerp" node instead of "Sample Gradient", then you can change color from inspector.
@Jimmy-jw9tf8 ай бұрын
Is there a technique to darken those super bright edges without tweaking the reflections and smoothness?
@666nevermore Жыл бұрын
Ben there are gradient atlas and curves and the material can access it on unreal engine. I don’t remember exactly the name but for sure was “gradient” something
@hossamshafer4100 Жыл бұрын
Awesome can u make all kind of volumetric eff like fog and smoke
@povilaslondon Жыл бұрын
what about using anisotropy for carbon fiber to really bring the look to the higher standard? Currently it looks like carbon veneer and not real carbon.
@iMikOo2 ай бұрын
Is that work with URP?
@Yaroslav_Tselovanskyi Жыл бұрын
No need for the "one minus" node if you're using Lerp right after it, you can just swap the values in the Lerp node.
@zenofar4761 Жыл бұрын
i hope if u make tutorial for performance with unity and unreal with better in visuals staff , as particles system, shading system which is better for performance
@oviniandrade11 ай бұрын
Unreal Engine @ 15:00
@astroid-ws4py Жыл бұрын
I have seen you shader books recommendation list, Can you suggest which one of the books is best to start with for really diving in into shaders? (My level is: I know prety well C++, Calculus and Linear Algebra). Thanks.
@BenCloward Жыл бұрын
I have this book on my desk right now and reference it at least once a week. It's a great one! amzn.to/33UuCho
@astroid-ws4py Жыл бұрын
@@BenCloward Thank you very much ❤
@meowyang4823 Жыл бұрын
Hello, why hasn't it been updated this week?🤔
@BenCloward Жыл бұрын
I was sick this week, so I didn't make a new video. But there will be one on Thursday.
@meowyang4823 Жыл бұрын
@@BenCloward Wish you a speedy recovery.
@fddesign Жыл бұрын
do you plan any ''strata material'' tuto? :)
@BenCloward Жыл бұрын
You mean like this one? kzbin.info/www/bejne/mXjQiJRjnKqHsLc
@jhebadiasprunklefunk9243 Жыл бұрын
@@BenCloward There's actually a new shader toolset in UE5.1 called Strata, it allows you to create a pseudo custom shadermodel in the material graph. So you can finally do stuff like separate Specular colour from Metallic Albedo etc, very useful for NPR stuff. It may or may not be what this person is talking about but either way I'd be keen to see anything cool you come up with from it Ben :)
@mahnomix Жыл бұрын
Or you can make a tutorial with car painting and stripes or decals.
@Sky-iv8zm Жыл бұрын
Wish you'd showcase your materials on relevant geometry. For example, car paint on a car, rock materials on rocks, grass on ground, etc. Bit easier to visualize the result.
@BenCloward Жыл бұрын
Yeah, 'that's a really good suggestion. These would look a lot better if I had a nice sports car mesh for sure.