Procedural Marble Material (Blender Tutorial)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in this blender tutorial i'm going to show you how to create these three procedural marble materials now if you'd like to purchase the project files and also help to support me you can do that over on my gumroad and patreon with the links in the video description huge thank you to sketchfab for sponsoring this video sketchfab is an awesome 3d model site where you can upload buy and sell 3d models and assets one of my favorite features of sketchfab is that you can upload and view your 3d models in your browser and even view them on your phone or tablet sketchfab also has a huge 3d model store where you can purchase 3d models and assets for your 3d work you can also apply to become a seller on the platform be sure to check out sketchfab with the links in the description so in this tutorial we're going to be creating three different procedural marble materials so the first one here that we're going to be creating is this white one here and this is a pretty uh basic standard one and i have these cubes here with a bevel added and that way you can see what the material would look like if it were used for something like a kitchen scene or something like that or like a table top or a flooring or something like that because for most things that you're going to be using this for you probably wouldn't actually use it for just a sphere but i like a sphere as well to preview the material so we're going to be creating this white one here first and this is a pretty standard uh typical marble material then we're going to be creating this other one here and this is kind of a dark one with some little light bits and you can see if you zoom away and there's a lot of little detail in there and here's what it looks like if it were going to be used for like a tabletop in a kitchen scene or something like that and then right over here we're going to be creating this third one as well and this one has a lot more detail if i zoom in here you can see it has all that little noise there and so those little white areas and it also has a little bit of detail right in there in the black and then again here's what it looks like if it were on like a tabletop or something in some kind of architecture scene or something like that all right and before we start i did just want to show you the setup that i have so i have these uh three cubes here and i just kind of scaled them down and i added a bevel modifier on them so that it has a smooth edge and then i just have these ico spheres here which when i added the icosphere down here on the settings right behind me when you add an icosphere there will be those little settings and i just turned these subdivisions up to a pretty high amount so that they were very smooth and then i just added a camera and i put the camera right there so that you can see the objects and then as far as the lighting goes i added this autoshop zero one 1k hdr on hdri haven there will be a link in the video description if you'd like to download the same hdri that i'm using so i just downloaded the 1k version so i just added this hdri as an environment texture into the world and then i just left the strength at one and i think it gives some really nice lighting for these marble materials and then before we start make sure you have the node wrangler add-on enabled because that's a really great add-on for working with nodes if you don't have that enabled you can go edit and go to preferences and then click on the add-ons right here and then right here on the search you can start typing in node and then just check box the node wrangler and then close this and i'll also have timestamps in the video description if you just like to make one of the materials let's get started so i'm just going to select this and i'm going to click on new and i'm going to call this marble light okay because we're going to be making the light one first and then what i'm going to do is right here i'm going to click on this and drag and drop it down here and that way when i go into rendered mode we can preview the material and these are both going to have the same material you can see if i change the color they're both going to have that material so as we build the material we can preview what it's looking like all right so this first light marble material is actually going to be pretty easy to make we're going to press shift a and i'm going to search for a noise texture just click on the noise texture and drop it right here so using one of the features of the node wrangler i'm going to click on this noise texture and make sure it's selected and then i'm going to press ctrl t so what control t does is it's going to add this mapping and texture coordinate and what i'm going to do is plug this object up to the vector and that way this noise texture is going to be placed around the object more evenly now using another feature from the node wrangler if we hold down the control and shift key while we click on nodes it's going to add this viewer node and we can preview just what that node is seeing so i can just hold down the control and shift key and click on these different nodes to preview what it's seeing but i'm just going to click on the noise texture because that's what i want to see alright so i'm going to leave everything to the default except the detail the detail i'm going to turn to the max which is 16. and you can see if i zoom in here it's kind of subtle you can't really see it because of how gray and light it is but there is now a lot more detail in that texture now if i plug this noise texture factor up to the base color and then hold down the ctrl and shift keys and click on the principle you can see what it's looking like doesn't really look like marble yet what i want to do is actually want to distort this so that it acts a little bit more like marble so what i can do is i can click on this noise texture press shift d to duplicate it and drop it right behind here in between the mapping and texture coordinate and as you can see it's warping that texture so now instead of just looking like a noise texture it looks a lot different if i control shift and click on this you can see now that's what it's doing and already i think this texture looks a lot more like marble so now i'm just going to ctrl shift click on the principle and you can see this is what it's looking like now right now it is still pretty light and gray so i want to change those colors a bit so i'll press shift a search for a color ramp and then just drop this color ramp right in here and then i actually want to switch these so i'm going to put the white over here this white tab so just click on the white tab and put it somewhere around here and then the black one i'm going to kind of move it until it's more over here and you can see now that marble material is a lot darker now this black here i actually want to make a very very slight blue you can make it any color that you want like if you want to have green marble or brown marble or something like that i just want to have a very very slight blue so i'm going to change it to kind of a bluish-grayish color and then make it very dark so it still looks pretty black but just has a very very slight blue color right in there alright so that is looking a lot better but i think that the texture is a little bit too detailed right now so what i can do is over on this noise texture the one that's going through the texture coordinate the scale here i'm going to turn this to like 2 and that way now the texture is a lot bigger alright so it's looking a lot like marble but it needs to be a lot more shiny because marble is very shiny so you can see over here on the principle this roughness value i'm just going to turn this way down and it'll be a lot more reflective and i'll turn it down to something around a point one something like that maybe just a little bit more like a 0.15 let me just try that .15 yeah that looks pretty good and you can see that now it's reflecting those different lights there from the hdri alright now before we finish this material i just want to add a little bit of bump so let me just drag these over so we have a little bit more room i want to take this color and plug it into the normal so that we have just a tiny little bit of bump now when we plug that in something is wrong here and you can see there's like those shading issues that's because this is a yellow one and this is a purple one so this is color data and this is normal data because it's purple so we need to actually add a node to convert that so to convert it we'll press shift a i'm going to search for a bump node and then just drop the bump node right in here and then this actually needs to go up to the height so the color to the height and then the bump to the normal now if you look at it you can see that it looks really rough now and really bumpy and marble is pretty smooth but i think it does look a little bit nicer it just has a very very subtle roughness but that's way too big so we need to turn this strength way down so i'm actually going to turn the strength to .02 and that way it's just very very subtle you almost can't see it because marble is very very shiny and smooth but if you zoom in here really close you can see there's just a tiny bit of roughness you may even want to turn this down to a .01 if you want to but i think that looks pretty good it just adds a little bit more detail to this material and that's the material so it's actually pretty simple and easy to make and i think the result looks pretty good all right so let's move right over here to the middle one i'm just going to select this and we're going to add a new material and i'm going to call this material marble dark so we're going to start off kind of making it similar to the other one but then we're going to change it a bit to make it look dark and make it look better for the dark material so i'm going to press shift a and i'm going to search for another noise texture just drop it right here and then the detail size i'm going to turn that all the way up to 16 and then leave everything else how it is so i also want this material to be on this bottom one right here so what i can do is just drop color it so i can just drag this drop it over and then drop it on there and now we can preview the material on the sphere as well as the cube all right now remember with the node wrangler add-on if you select a noise texture or any other texture and you press ctrl t it's going to add this texture chord and mapping and then the object i just want to plug this up to the mapping and that way the noise texture is going to be placed around the objects a little bit better and then once again i'm going to do the same thing so i'm going to select this noise texture press shifty to duplicate it and drop it over on this one and then the scale here i'm going to change this to 2. so now if we plug this factor here into the base color you can start to see what it's looking like and so far it looks pretty similar to this material what i want to do though for this material is add some very very fine small detail so what i'm going to do is i'm actually going to press b and box select all of these nodes and just kind of move them up and then i'm going to press shift d to duplicate them and bring them down and then i'm going to hold down the control and shift key using the feature from the node wrangler and just click on this and now we can preview it and then what i'm going to do for this bottom one is the scale here i'm going to change this to 200 so now it's way more detail than if you zoom in here you can see it's really detailed but because this noise texture right here is plugged through the texture coordinate and mapping it's warping it and making it look a bit more like marble so i can control shift and click on this one you can see here is the larger detail and then if i control shift and click on this one here is the more fine detail so what i want to do is i want to add these together but before i mix them together i do want to play around with the colors because right now they're both just a light color and i want to make them dark so i'm actually going to box select these and just move them over so we have a little bit more room and then i'll press shift a and i'm going to search for a color ramp just drop the color ramp node right there and then this factor here i'll plug this up to the factor on the color ramp and then i also want that same color ramp to be on this one so if i control shift and click on the principle bsdf then i can select this color ramp press shifty to duplicate it and just drop it right here and then it will plug it up into the principled so let's first work with the top color ramp so i'm going to first select this black one and i'm going to plug this black tab over to somewhere right here then this white tab i'm going to select it and kind of move it over here and just kind of put it somewhere about here you can see that when i add more or less it's going to get stronger or less strong like if i move it really close here you can see that white is really strong but if i move it way down you can see it's starting to fade out a little bit so i like it somewhere around here and then i want there to be a little bit more gray so i'm going to click on the plus to add a new tab and this tab i want to be pretty close to the black one somewhere around here and then i'm going to make it if i just zoom out i'm going to click on this color right here and i'm going to change the color of the tab and just make it a bit more gray colored so now if i control shift and click on this you can kind of see what it's doing so this black one here it's making everything black and you can kind of push this in to the amount that you want and then this gray one here it's adding more gray but then this white one here just those light parts the really light parts of the texture it's making that even brighter and then the gray is kind of going around the white and then one more thing that i'm going to do this black one here i'm going to click on it go to the color and then move my mouse up here and just scroll wheel one up and that way it'll just bump it up a little bit you could even go two i'm just gonna go one and that way it's not fully black it's just very very slightly gray but it's mostly black alright so let's go do this bottom color ramp now so i will control shift and click on the bottom color ramp right here and for this one i'm going to switch these so i'm going to put the white over here and the black over here just put the black one somewhere around here you can see if i bring it bigger there's going to be more black and if i bring it farther this way there's going to be less black so i'm just going to bring it somewhere around here and then this white one here i'll just bring it kind of over here and i'm going to change this to a gray color so click on the color right here and just make it gray kind of a light gray something like that and then i want to add one more so i'll click on the plus here to add another one if i just zoom in here you can see what it's doing so it has the black and then it's going to gray and then to lighter this one i'm going to bring this one a little bit more towards the black and make it a little bit darker so just click on this if it's if you're zoomed way in and you click on this you're not going to be able to see it because it's too big so if you just zoom out then you can just make this a little bit darker all right so just a little bit darker there we go you can see this is what it's looking like alright so now we have this texture and this texture so i want to now mix these two together so i'm going to press shift a and i'm going to search for the mix rgb because we want to mix the colors together so i'm going to click on this and then just drop it right here and then i'm going to take this color and put it into color 2 and then this one here is in color 1. now if i control shift and click on it you can see what it's doing so i'm just going to leave this set to mix because i think that looks pretty good so what it's doing is taking this very small texture and mixing it with the bigger texture and if you want to you can also play around with the factor so if you turn the factor all the way over here which is going to be the bigger texture and if you turn the factor all the way up to 1 it's going to be the small texture i like to leave it somewhere in the middle but you can play around with it so now i can control shift and click on this and you can see there's the texture now you can see that it's not very shiny so just like the other material the roughness i'm going to turn this way down to something like a .15 so that's very shiny and because we added that hgr for the lighting it's adding some very realistic lighting and it's adding in all those little reflections and stuff and that really helps to make it feel more photorealistic so we're almost done with this material the last thing that i want to do is just add another bump and just make it very very subtle i just think that it helps a little bit so this color here i'm going to drop this color into the normal and then once again just like with the first material we need to convert it to normal data so i'm going to press shift a search for a bump node drop the bump node right in here and then this color needs to go into the height and then the purple needs to go into the purple and now that is converting it to normal data now the strength is way too large right now if you kind of zoom in here you can see that really doesn't look good it's just really a bumpy so we need to turn the strength way down and for this one i'm going to turn it to like a .01 and that makes it very very subtle and you may not really notice anything because it's so subtle but if you zoom way in you can see there's just a tiny little bit of detail here sort of like if you were in a kitchen and there's like a marble surface and you just rub your hand over it you might just feel some very very subtle noise it's very subtle because marble is pretty shiny but i do think that it helps to make it look a little bit better so there we go there is the second marble material so i'm just going to head over here to the third one just click on this and then i'll click on new and this one i'm going to type in marble swirl because it kind of has some swirls so marble swirl and then i'm also going to click on this and drag the material over to here so these both have the same material let's do this last marble material so i'm going to press shift a and this time i'm going to click on the search and instead of adding a noise texture like the other ones i'm going to add a veroni texture and i'm going to start with that so i'll add that in right there and then just like we did for the other ones i'm going to click on this and using the feature from the node wrangler i'm going to press ctrl t with that selected and that'll add those and then i'll just plug the object up to the vector now if i ctrl shift and click on it you can see what it's doing and then instead of this being f1 i'm going to change this to distance to edge and you can see that now it adds all these cracks right here and then the scale here i think i want to turn this up to about eight and that way everything is scaled down just a little bit now right now this doesn't really look like marble so what i'm going to do is use a similar technique to what we did for the other ones so i'm going to press shift a search for a noise texture and this time i'm going to drop the noise texture right here before the verona going through the vector and you can see that now it adds noise to that mapping and you can see that now our veroni texture has a bunch of noise and it looks a lot more interesting now right now the scale is a little bit too big so i'm going to change this to somewhere around a 1.6 i think that looks a little bit better and then the detail right here i'm going to turn this all the way up to 16 and you can see that now we have tons of detail in that texture now to add even more detail what you can do is you can actually turn up the roughness here on the noise texture so if i just turn this up maybe to somewhere around a 0.7 you can see that now it adds even more detail all right so now let's plug this distance here into the base color and ctrl shift click on the principle and you can see what it's looking like so i want to make it a lot darker because this marble material is dark so once again i'll press shift a and search for a color ramp drop the color ramp right in here and then this black one i'm going to just pull it out a little bit i think i'll actually control shift and click on this while we're editing it so we can see a little bit better so i'll just pull the black out a little bit and then this white one i'll pull to about here and then i'll make it a little bit more gray just because if it's fully white that's a little bit too bright so i'm just going to make it a little bit more gray and then i want to add one more because i want to kind of have a gray in between the black and the white so i'll click on the plus right here and i'll just leave that about where it is and i'm going to make this even more gray a little bit darker something like that so you can see that now most of it's black some of it's gray and then just a few little parts are white maybe i just pull this over it's not actually white it's a very light gray but if i pull this over you can start to see that there's even more white just in the lightest areas all right that looks very good so i'm going to control shift and click back on the principle and we can see what this is looking like so that's very good for our base but we don't have all those little cracks and swirls so now i'm going to add all those white little streaks and white cracks so what i'm going to do is press b for the box select select these nodes and just move them up so that we can make our next texture right down here so i'm going to press shift a and search for a wave texture just drop the wave texture underneath the noise and then we can actually use the same texture coordinate and mapping so i'm just going to plug the vector right up to this vector because they're really just the same thing so we can just use the same nodes for this one as well i'm going to ctrl shift and click on the wave texture so we can preview what it looks like now the scale here i think i'm going to turn this to somewhere around three i'm going to turn up the distortion to somewhere around 22. i think that looks pretty good and then the detail i'm gonna turn this all the way up to 16 because i like to add as much detail as i can all right and that looks pretty good so now let's play around with the colors so i'll press shift a search for a color ramp node and just drop the color ramp node right here and then what i want to do is these lines here or these swirls or cracks i want to make those light and then i want to make everything else dark so i can click on this and pull it way down and you can see that now it just shows those little white areas and then this is really contrasty so i want to add something in the middle so that it kind of has a fading point so it goes from black to gray to white so i'll click on this plus here to add a new one so this one is going to actually be overlapping this one here this tab but i'm just going to turn it really really close just zoom way in and make it really close and then this gray here i'm going to turn it down and you can see that when i turn it down now it has black and then gray and then white right there and if i zoom out you can see those white parts are actually a little bit too thick so i'm going to zoom way in here and pull this gray one super super close and that way that white little part right there is going to be even thinner and then to make it even thinner the gray tab you can make this a little bit darker and that way they're going to be even smaller and there's going to be more black i just want them to be pretty thin i don't want them to be very big so just like that all right so this is cool but you can see that all of these are kind of rotating like this because before we added all that distortion the wave texture was kind of starting up here and it was going in circles around right here and so what i want to do is add some more of these and mix them together so there are some different lines going different directions because like you can see this one all the lines are kind of going back and forth and this one all the lines are kind of circulating around the circle so to do this i'm going to zoom out and i'm going to box select the texture coordinate and mapping as well as the wave texture and color ramp i'm going to press shifty to duplicate them and just move them down here and maybe i'll just reorganize this a little bit okay that looks a little bit nicer so how i rotate these streaks here is i'm going to zoom into this mapping and the rotation z i'm going to start to turn this up and you can see it doesn't look like anything's happening that's because i need to control shift and click on this and now if i start to turn this up you can see that it's rotating around so i'm just going to turn it up to something that i like and then you could also change the x and the y so just kind of rotate it around so you can just play around with these values and change it to the rotation that you like but i'm just going to actually turn the x and y both to zero and then turn the z value to somewhere around 238 and that way you can see that now they're kind of rotating over like this so now we have this one and we have this one so what i want to do is actually mix these two together so to do that i'm going to press shift a and search for the mix rgb just drop it right here and then this color i'm going to plug this one up to color one and then this one i'm gonna plug up to color two and then if i control shift and click on the mix you can see it's adding them together and what i'm gonna do is turn this mix to add and that way you can see it's a little bit brighter because when it's set to mix it's just kind of blending these together so one of them has to be a little bit faded so i'm going to change this to add and now you can see it's just adding both of them together on top of each other so now you can see we have the swirly texture right here and then if i control shift and click on this we have this base texture right here so i want to mix them together so i'm going to use this same node right here and just mix it the way that i've mixed these so i'll press shift d to duplicate this add drop it right here and then this color is going to go to color 1 and this one is going to go to color 2. and then if i ctrl shift and click on this ad you can see what it's doing now what i want to actually do is take this factor here and turn it down a little bit because i want these swirly bits to be even more subtle because you can see right here they're actually pretty bright so i'm just going to turn this down a bit just because i really don't want them to be super bright because if they're too bright they're just going to look way too strong and they're going to just stand out way too much so i'm just going to turn it down and just make it more subtle so it's still there you can still see it but if i change this to somewhere around 8.25 you can see that now it's a lot more subtle and that actually looks really cool that is a really cool texture all right so let's control shift and click on the principle and you can see there it is so once again this roughness here i'm going to turn this way down so i'm just gonna turn this down to like a point one something like that you could turn it down even more if you wanted but i feel like that's a little bit too shiny but if you turn it up too much you can see that definitely looks too rough so somewhere around point one or point two something like that looks pretty nice for this one i think i'm actually going to turn this to somewhere around a point two i think i just like that a little bit better and then one last thing before we finish this just like the other materials i want to add a very very slight bump so i will click on this color drop it into the normal now we need to convert this because this is yellow which is dealing with color and this is purple which is dealing with normal so i'm going to press shift a search for a bump node drop the bump node right in here and then the height i need to take the color put that up to the height instead of the normal and then this normal is going to go down into this normal now the strength here is way too strong again you can see that's like really bumpy so i'm going to turn the strength way down do something around 8.01 so it's very very subtle because marble is pretty shiny and smooth but you can see if i zoom way in here there's just some very very slight bump like right there you can kind of see it this is a little bit smoother and that's a little bit more rough so there we go there is the finished swirly marble material so there we go there is the three marble materials so you now have three really nice marble materials that you can use for your projects thank you so much for watching i hope you enjoyed this video and i hope it was helpful and again if you'd like to help support me you can purchase the project files for this tutorial from my gumroad and patreon links will be in the description thank you for watching and i will see you in a future video
Info
Channel: Ryan King Art
Views: 24,775
Rating: undefined out of 5
Keywords: Ryan King Art, Blender Tutorial, Blender, Ryan King, Art, Marble, procedural, material, shader, blender, tutorial
Id: wTzk9T06gdw
Channel Id: undefined
Length: 24min 58sec (1498 seconds)
Published: Sat Feb 06 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.