Blender Tip – Texturing A Lemon

Just another WordPress site

Blender Tip – Texturing A Lemon

okay guys and in this tutorial I’m gonna be showing you how I created this slice of lemon here which is on our glass so if you’ve been following along with my various tutorials on here you should already be familiar with how to create a glass how to fill it with liquid adding ice cubes and so I just thought I’d do a tutorial on this slice of lemon so it’s got a couple of small modeling challenges but nothing too difficult the key really comes into the rendering of this so this is my finished kind of model scene here so I’m just gonna skip back to previous model here okay so you can see we’ve got our ice cubes inside there if you’re not familiar with how to create the ice cubes again I have a tutorial on my channel about that and we have the glass you have the water droplets on the outside of the glass so all the elements are there what I’m gonna add in now is just this slice of lemon so a little bit tricky on the modeling side I think – too difficult though so we’re going to create an eye ecosphere and I’m gonna create that on a new layer actually so let’s just view this mm-hmm just view this layer i could’ you layer here all right so in ecosphere and I’m going to leave the number of subdivisions at – maybe up into three I think three so once we’ve done that we’re going to tab over into edit mode and face select and we’re going to need to select a a bunch of faces which basically outline this kind of semicircular shape of the lemon as if the lemons been been cut so basically going to want to go along a line of edges something like that so you’ve got this wedge shape that we’re going to form here now once we have selected those there’s this line of edges I’m going to continue it all the way over like so and same here so that we get this wedge shape we’ll just come over the top there follow this edge along to somewhere where it intersects so there that’s looking good so we’ll hit C for circle select I basically want to do now is select everything that’s outside of that wedge C for circle select again it’s going to make the circle bigger we’re going to come along and select everything around there and have this thing around here and around the bottom so really what would track what we’re aiming to do is eliminate all of the faces except for those faces that make up that wedge shape so think that’s got them all now so we’re gonna be left with just this kind of segment which is gonna be our segment of lemon so hit X delete all those faces and we’re left now with this segment like so and now here’s where a slight little tricky bit comes in because we’re going to want to create a new face along the edge here maintaining no kind of a hard edge so we’re going to select along that edge there and if you hit F it will create a new face along that edge and you can do the same on this side and hit F now we have our wedge shape but it’s looking a little blocky it’s

not looking too lemon like it would be smoother so you can turn on smooth shading that helps a little bit but it still looks a little odd we’ve got these two sharper edges here now we can add a subdivision surface modifier and you’ll see that that helps to smooth things out but now we’ve got kind of a bit a little bit of a – rounded shape it’s not looking quite right anymore so we’re going to add another modifier which would be a bevel modifier and we’re going to limit by angle and by adjusting this angle we can adjust the the limit of the bevel we can adjust the width of the bevel and the number of segments that we’re going to make in that bevel and I’m gonna move that up so it’s above our subsurf modifier so we should have the bevel modifier followed by the subsurf modifier below it and you’ll see that now that gives us a nice wedge shape to our lemon so we can adjust the the bevel width to make this sharper or more rounded so you want to have that just a little bit rounded you don’t it to be completely sharp and the greater number of segments you have them all rounded it will also become but I’m just gonna leave it at two segments and we’ll just adjust the width a little bit so we get a nice lemon wedge looking shape okay so that’s basically it for the modeling the only thing they want to do then is just size it made you want to scale a little bit make it a lemon piece bigger and then we need to position it in glass so it’s sticking over the edge of the glass there and you may just want to rotate it grab our rotation handles rotate it around a little bit depending on the angle that you want to be viewing us at so I actually want to see a little bit of the texture that we’re going to place on the lemon so I’m going to rotate it the other way and I’m then going to move it forwards a little bit like so let’s go to our camera view right so we’re still looking almost square on at the side of the lemon there so I’m going to adjust the camera a little bit I’m gonna move it up and I’m going to rotate it so it points a little bit down let’s go back to the camera view now I’ll hit G and we’ll move the camera I don’t need to move this out the way so just move that up go back to a camera view again make sure we have the camera selected okay I’m gonna rotate the lemon a little bit more let’s go back to the camera view all right so now we’re gonna be able to see a little bit of the lemon texture on the back of there as well which which is gonna be nice because this tutorial really is gonna be all in the texturing that’s basically it for the modeling now so we want to take a look at how we can texture this so it looks like a lemon so select our lemon and tap into edit mode and what we want to do first of all is select all hold down shift and select this face and this face because we want to not have these faces selected that should be about right let’s just turn off the preview in edit mode okay so we just have the back of the lemon selected which is all that we want and then we’ll go to our materials create a new material which we will call lemon skin I’m going to assign that to those surfaces then we’ll create another new material which we’re going to call lemon slice and want to select this face and this face and we’ll assign lemon slices there and this should all be lemon skin okay now we’re done with that let’s open up our node editor select the lemon slice and we’re going to add some notes to this so we’re gonna add a texture node to start with which

will be a Veroni texture and this Veroni texture we plug it into a mix RGB so good color mix RGB so the color of this is gonna be plugged into here and plugged into the factor and for the colors we’re gonna select two shades of yellow for the lemon so one will be a lighter shade and the other will be a darker shade of yellow so we have these two shades now and tap back out of edit mode here I’m gonna go into rendered view and I’m just gonna view this one layer only so we only have to view this lemon part okay so I’ll make our rendering a little faster so the color output of this goes into our diffuse now it’s not looking very lemon like just yet you need to scale up this Veroni texture now if I use Shift + ctrl and select that texture it isolate the Veroni texture only now to do that you need to make sure that in your user preferences you have node Wrangler turned on so make sure node Wrangler is turned on in your add-ons and that means then if you shift ctrl and select it will show you one of those nodes and it will isolate it so you can kind of go along your node tree and see the effect that each one is having so what I want to do the Veroni texture is scale this up until it’s pretty large this is going to make the the texture of our lemon skin so if we come over then to the mix shader’ you’ll see that it’s mixing those two together and finally the diffuse here now you’ve got an idea how this looks we can increase the scale a little bit more and now what we’re going to do is plug the factor of our Verona texture into the displacement of the material output and that should give us a little bit of a bumpiness now to everything now I’m going to add a color invert to this the reason being if you want the bumps to come out not in and that is starting to look rather like some lemon skin just play around with the scale until you get the right type of bumpy surface and texture that you want and so it looks something like a lemon skin now a lemon skin has a little bit of shine to it as well so what we’re going to want to add in is another mix shader’ which will drop in at the end of the diffuse and then we’re going to plug into this a glossy shader oops the other side of that needs to go into here okay so I shada I’m going to drag back a little bit of the roughness to make it a little bit more shiny and then our factor we’re going to want to drag forwards quite a long way because we don’t want to have too much of the gloss we just want to have a little bit to see if I bring it all the way back here is 100 percent gloss and if I bring it all the way forwards is a hundred percent diffuse so we just want to pull it back just a little bit so we have a small amount of shininess to this surface that will probably be enough let’s see if we get closer into this may just want to knock down the scale about texture a little bit there we go so now we get a little bit more bumpiness in okay I’m happy with that so the next

thing we’re gonna want to do then is the lemon slice so for this we’re gonna do a very very simple UV mapping so come out our UV image editor now what we’re going to want to do here is load in a new image so I’m going to go to open image and what we’re going to need for this you can download in the package that comes with the link below this video I have a 1/2 lemon slice so we’re going to want to map this onto our surface here so the way we’re going to do that is we try and get it about square onto this surface here we’re going to come back out into solid view so will tab into edit mode and we’re going to select this face just drag this open here so we’ll select this face here and then we’re just going to go to mesh UV unwrap unwrap and that gives us our unwrap mesh over here now we want to rotate this around and basically what we want to do is match this up to our texture much as close as we can so we’re going to get a hold of vertices and we’re gonna drag them out – approximately follow the contours of this lemon slice that we have something like that it’s good for us to start with think okay now once we have done this we’ll come back over then to the node editor look at our lemon slice selected and tap out of edit mode we’ll go back to rendered view so what we’re going to add here is a texture and image texture so once you’ve added this image texture hold down ctrl + T and it will add in the other elements that we need for that which is our UV mapping mapping image texture oh good now we’re gonna plug the we need to open our texture first so go to that texture again that we had a moment ago which is our lemon slice and plug that into the color of the diffuse and you’ll see it comes up over there nicely mapped on and then we plug the Alpha into the displacement and that will help to give us a little bit of texture a little bit of bumps to this now I’m going to add in a glossy shader we’re going to add a mix shader’ and we’re going to mix these together like so we’ll drag that back a little bit we don’t want to have too much glossiness just a small amount give that a little bit of shine in the color of our gloss we’ll drag that over a little bit towards the yellow so there’s a little bit of reflection coming from this slice and that is basically it now you can also texture the backside of the lemon unnecessary though you’re not gonna see it in this particular render but if you wanted you can use exactly the same method to texture the backside you would just need to do a UV unwrap on that and the same methodology so now we can bring back

over the layers and we’ll go to our camera view and there we have our slice of lemon on our glass so the key to this really is down to the texturing some very simple UV mapping and you’ve also seen there how we can begin to produce procedural textures that will cover things such as citrus fruit skins using the Baroni texture node etc so I hope you found this quick tutorial useful on how to create a slice of lemon for your cocktail glass thanks for tuning in don’t forget to hit like and you can also subscribe to the YouTube channel to keep up to date with all my latest videos here and in the links below this video you can download the project file as well as the texture that I’ve used