Procedural Rusty Metal (Blender Tutorial)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in this blender tutorial we're going to be creating this procedural rusty metal material now if you'd like to help support me and also get the project files for this tutorial then you can do that over on my gumroad and patreon with the links in the video description now before we get started i just wanted to show you the setup that i have so i just have a sphere right here in the center of the scene and then i just added a camera and pointed it right at the sphere and then for the lighting i also added this photo studio 0 1 1k hdr and this is on hdri haven so i'll leave a link in the video description if you'd like to download the same hdri that i'm using so i just added this in as an environment texture in the world and then just added this hdri so right over here i'm going to go into rendered mode just so that we can see the preview of the material as we create it and then right over here are our shader nodes so i'm just going to click on new and i'm going to call this material rusty metal and then one more thing before we get started i am going to be using the nodewrangler add-on so if you don't have that enabled you can go to edit and then go to preferences and then right over here on the add-ons you can just go to the search here and start searching for a node and then just check mark this node wrangler add-on so this add-on is built into blender so you can just check mark that and then i'll show you how we're going to use it while we're setting up this material so we're going to be creating two different shaders we're going to create the metal shader and then we're also going to create the rusty shader and then we're going to mix them together and tell blender where we want the rusty parts to be and where we want the metal parts to be so let's go ahead and make the metal first so what i'm going to do is turn this metallic all the way to one and you can see that that already looks more shiny and looks more like metal now i want to make the base color kind of a gray color so i'm just going to turn it down make it a gray color but you can really make it any metal material that you want i'm just going to go with gray and then the roughness here i'm going to change this to somewhere around a 0.25 so 0.25 and you can see that now that metal is a lot more shiny and i think it looks a bit nicer so the metal is really smooth right now but i want to add just a very very tiny bit of bump or warping just to make it a little more realistic so to do that i'm going to press shift a and i'm going to search for a noise texture just drop the noise texture right down here and then using a feature with the node wrangler add-on if i have this selected and then press ctrl t that's going to add this mapping and texture coordinate now from generated i actually want to change this to object so i'm going to plug the object into the vector mapping right here and that way the noise texture is going to be placed around your object a little bit better and then using another feature from the node wrangler you can hold down the control and shift key and click on nodes and then it's going to give a preview of what that node looks like so i want this scale to be a little bit smaller so i'm just going to change it to maybe around a 6 just so that we have a little bit more detail and then i'm going to plug the factor into the normal now when we do that if i now ctrl shift and click on the principle to preview it you can see that it's black and that's because we need to convert this to normal data because you can see this is a gray circle whereas this is a purple circle and so this needs to be converted to data that the normal can use so to convert this to normal data i need to press shift day and i'm going to search for a bump node i'm just going to drop the bump node right here and then we don't want it to go into the normal we want this to go into the height now you can see that it looks like the metal is really bumpy now it's way too bumpy right now i just want to make it very subtle so the strength here i'm going to turn this way down to something like a point zero one five so very very subtle but if you look really up close you can see that it's just a little bit warpy whereas if i just unplug this you can see without that just kind of smooth and simple it's very subtle but it just adds a little bit more detail makes it slightly warpy so that's going to be it for our metal material i think that looks pretty good um so what we could do is we could actually join these together in a frame this is totally optional you don't have to do this if you don't want to but i thought it'd be pretty cool to do in the tutorial so i'm going to press shift a and i'm going to search for a frame just drop the frame right here and then what we can do is we can actually add nodes in this frame it'll just make it kind of easier to kind of move it around now this texture coordinate and mapping i want to use this for other textures that we're going to be using later on in the video so i'm actually going to drag these two up here but then i'm going to box select all these three nodes and i'm going to drag them and drop them inside the frame now if i click on the frame i can drag it around and it's going to drag all these nodes around and then right now it says frame but we can actually edit what this is called so if you press n that's going to open up this side panel here and if you select the frame you can see it has a name and a label i'm going to call this metal and then i'm going to also make the label metal as well so now you can see that it says metal right there and we can kind of drag this around so using frames is just a really great way to keep your nodes organized but it's totally optional you don't have to use it if you don't want to if you want to you can just select it and delete it i just like using it sometimes to organize my nodes but it's not going to change the look of the node setup alright so we've made the metal material now i want to make the rusty material before we add them together so i'm going to press shift a and i'm going to search for another principle bsdf and i'm just going to drop it right here and then again i'm going to press shift a and add a noise texture i'm just going to drop the noise texture behind this principle and then again i want this mapping to be plugged up to this noise texture because i want it to be using the object coordinates so now i can control shift and click on this noise texture to preview what it's looking like now the scale here i'm going to turn this up to like 60 because i want to be very small and then the detail i'm going to turn this all the way up to 16 because i want it to be pretty detailed and then the roughness i found that something like 8.6 looks pretty good just adds a little more roughness okay let's take the factor and plug this into the base color and then ctrl shift and click on the principle so you can see that it doesn't really look like rust because it's just white and gray so what we need to do is add a node in here to edit the colors and tell it what kind of colors we want to have so to do this i'm going to press shift a and i'm going to search for a color ramp node i'm just going to drop the color ramp node right here and now we can go ahead and edit these tabs we can also slide the tabs around so i'm also going to control shift and click on the color ramp just so that we can preview what that's seen so i'm going to take this black tab and just kind of drag it out just to make there be a little bit more black you can see the more i drag it out the more black is there's going to be so i'm just going to give it a little bit more black so i'm just going to bring it to somewhere around there that's pretty fine and then um this i'm going to click on the white tab and i'm going to bring this out a little bit as well now this one i kind of want to be a light brown so i'm going to click on this tab right here and that's going to bring up the colors and i'm going to bring this down kind of to the orange and then make it a lot darker so that way it's kind of a nice light brown color not super saturated you can see if i bring it up here it's a lot less saturated whereas if i bring it down here it's going to be way more saturated so a little bit desaturated just kind of a light brown something like that okay now i want to add another tab in here and i want to make this one a little bit more of a reddish brownish so i'm going to click on the plus right here and that's going to add a new tab i'm just going to bring the tab a little bit closer over here and then i'm just going to click on the colors and this one i want to be slightly more red so i'm going to pull this a little bit more towards the red because i found that uh rust does usually have a little bit of red it's kind of a brownish reddish color so i thought that would look nice if we just added a little bit more of a red color it's still pretty brown but just a tiny bit of red and then you can just kind of make it a dark color okay so if you look at it you can see this is what mine looks like and i think that looks pretty good so now i'm going to control shift and click on the principle then you can see what it's doing now right now it doesn't really look like rust but if i click on the color and drag it into the normal it's going to add a lot more bump and we'll make it look a lot more like rust now again we need to convert this to normal data so i'm going to press shift a and i'm going to search for another bump node and just drop the bump node right here and then we don't want to plug this up to normal we want to plug it up to height and then it will convert it to normal data and now you can see that's bumping out and it looks a lot better now it's way too strong right now so the strength here i'm going to change this to like a 0.16 i think that looks a lot better and now you can zoom in here and you can see that there still is bump but it's a lot more subtle all right now one more thing i do want to adjust the roughness because you can see there's this roughness value here i'm going to take the color and plug it into the roughness now when i do that you can see it makes everything really shiny um so i'm going to actually edit those colors to make it a lot less shiny so i'm going to press shift a and i'm going to search for another color ramp and i'm just going to drop the color ramp right in here now when i drop it in it doesn't really do anything but i'm going to actually switch these so if i pull this out and then pull the white one in you can see now i've flipped it and so now it's very very rough if i control shift and click on it you can see that it's very white and if i drag this over you can see it's going to start to add more and more of that black color so where it's white it's going to be very rough and where it's black it's going to be very shiny because if i control shift and click on this you can see right now it's white so now it's going to be very rough but if i drag this way down you can see now it's going to be more and more shiny and if i control shift and click on this you can see those black parts are going to be more shiny so i'm going to control shift and click back on the principle and really just play around with it and get it to how i like i want to be pretty rough but some parts i want it to be just a little bit shiny and it just adds more detail and makes it look more interesting so i think that looks pretty good that's pretty good for me now later on in the video i am going to play around a little bit more with the shader and just make it look a little bit more interesting but for now that's gonna be great okay so i wanna put this in a frame so i'm gonna select this frame press shifty to duplicate and just drop it right up here and then i can just box select all these nodes and i can drag them and drop them into the frame and that's going to add it in the frame and then again if i press the n key it's going to open up this tab right here i can just change the name i'm going to call this rust and then right down here rust as well and then i can press n to close that frame so now we have the rust right up here and then we have the metal right down here so now i want to mix them together so to mix these two together i'm going to press shift a and i'm going to search for a mix shader so mix shader i'm going to drop it right down here and then i'm going to take this bsdf plug it up there and then this one down here so you can see that if i zoom in it's actually kind of blending them together evenly and that's really not what we want uh if you drag the factor here it's going to make it all metal or all rest what we want to do is we want to tell that some areas are going to be rust and some areas are going to be metal so to do this we're going to need to add another texture so i'm going to actually drag this up so there's a little bit more room in between them and then i'll press shift a and i'm going to add another noise texture and just drop the noise texture right there and then again i want the vector to be plugged up to the vector right here okay now i can control shift and click on it to preview what it's looking like so i want the rust to be very detailed so i'm going to turn this all the way up to 16 and then the roughness i'm going to change this up to 0.9 and we will play around with this value later but for now i'm going to change it up to 0.9 so now what i can do is i can take this factor and plug it into the factor of the mix shader and then if i control shift and click on the mix shader you can see it's starting to do something because what's doing is taking the values of this noise texture and is telling it that some of the values are going to make it the metal and the other values are going to make it the rust but right now it's still way too subtle so what we want to do is we want to make this noise texture very contrasty so to make it very contrasty i'm going to press shift a and search for another color ramp just drop the color ramp right here and then i'm going to ctrl shift and click on it to preview what it's looking like so i'm actually going to drag these two values out towards each other and you can see that as they get closer and closer it's going to be a lot more contrasty so what's going to happen is wherever it's black that's going to make it the rust and then wherever it's white that's where the metal is going to be so if you want to have more rust you can drag this kind of out this way and there's going to be more black if you want there to be less rust you can drag it over here and make the black more subtle so really just get it to whatever value you want you could play around with this now i can control shift and click on it and you can see that's what it's looking like so now some parts are the metal and some parts are the rest so just play around with the value and get it to the amount of rust that you like okay so that's looking pretty good now if i zoom way in it kind of just looks flat so what i want to do is i want to make the where the rust is actually kind of going down into the metal so what i can do is i can actually take this color ramp and add it into the bump of the rust and then that will make the rest looks like it's going down into the metal so i'm going to click on this bump here press shifty to duplicate it and just drop it right in here and that's going to connect it up then i can take this color and stick it into the height and then the strength here i need to turn this all the way up to one now you can see if you kind of zoom in here like right over here you can see now it looks like the rust is going down into the metal and if you control shift and click on this bump you can see that's what it's looking like so it's adding all that detail in there and it looks pretty cool and if i control shift and click on the rust now you can see that's what the rust is looking like so i'm going to ctrl shift and click now on the final mix shader and just see how that's looking so there are some things you can play around with of course you can play around with this color ramp right here and that's going to tell it how much rust and how much metal there's going to be you can also play around with this roughness right here so if i turn it down you can see that it's going to make more bigger patchy areas of rust so if you want to have bigger areas like that you could totally do that if you want to turn this value up you can see that it's going to make everything more subtle and the rust is more evenly placed around the metal so if you just want a tiny little bit of rust just some little grainy rust you could turn this all the way to one you can see that's what's looking like if you want to be just patchy you could turn it down i like somewhere around point nine i think that looks pretty good that way there's some rust just in little bits and there's also some patchy areas but you can really play around with this and do whatever you like alright so i really like how that's looking so i'm going to render this out and show you the final image and there we go there is the final procedural rusty metal material again if you'd like to help support me and also get the project files for this tutorial you can do that over on my gumroad and patreon with the links in the description so that's gonna be it for this video thank you for watching and i hope this video was helpful and i'll see you in a future tutorial
Info
Channel: Ryan King Art
Views: 7,285
Rating: undefined out of 5
Keywords: Ryan King Art, Blender Tutorial, Blender, Ryan King, Art
Id: YTMdF6lOOsw
Channel Id: undefined
Length: 15min 2sec (902 seconds)
Published: Sat Mar 06 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.