Create a Photorealistic Fruit Splash in Blender

Creative 3D objects
9 followers
G'day this is Andrew Price here from BlenderGuru.com and in this video tutorial I'm going to be showing
you how to create this image right here. So of course we're going to be using Blender's built-in
fluid simulator and we're going to be dropping in some virtual fruit into a virtual tank of water.
So this is sort of a take on a popular photography method. A lot of photographers like to do it,
they drop fruit into stuff and then they take photos of it. In fact they drop all sorts of
stuff into everything and they create what's called, I think it's splash photography, I think
it's even got a name. And it looks cool because I guess, you know, although the naked eye sees a lot
of splashes, you rarely ever get to see the detail. So when you use a camera and you can
photograph that exact moment when a splash happens, it looks very interesting and it's
very appealing to the viewer. So this is essentially using 3D software to mimic that effect
and give you a lot more control over it and yeah it's a lot of fun. Although the fluid simulator
can be a little bit frustrating at times, it is overall a lot of fun. So there's not really any
rocket science to the fluid simulator. I've essentially just been working on this over the
last week and a half or probably about a week. These are some of the original images that I
started with. I originally was going to make this a topography tutorial using logos and stuff,
so I experimented with that. I was going to make it an animation, but as you can see,
it didn't really turn out all that great. You can see that the bubbles start to peel away very
easily and I thought, I don't know if that's really going to work. I tried it with a light
up logo, this one you can see right here, and you can see the varying different levels of effects
and stuff you can get. But essentially this whole process was just trying out different fluid
settings and just seeing how it works. So if you've never used the fluid simulator before,
it takes a while to bake things. So it's a really good learning technique. You just set up something,
try some different settings, and then you bake it and you see how it goes. So these are some
of the images that I went with. I was experimenting, here we go, getting into some fruit,
some lemons and some limes, until I finally landed upon this final image that you can see
right there. So I'll show you what the finished scene looks like. It's this one
you can see right here. It's just a big tank of water. It goes really slow moving around here
because there is a lot of polys right there. Underneath all that, we've got three pieces of
fruit with some particles that are peeling off it. So I'll show you how to model an orange,
just to give you sort of a fruit introduction, I guess. It's not really part of the tutorial,
so I'll sort of speed over that. But then we'll get into some particles as well to create these
little fake air bubbles there, just to give it a little bit more appeal. And then of course,
the big old fluid simulator as well. So go ahead and download the starter file for this project.
Now the starter file, it's essentially, it's got these three pieces of fruit in it. However,
I'm going to show you very quickly now how to model an orange, because I know some people like
to learn these things and other people just want to get to the meat of it. So I'll show you very
quickly now modeling an orange as quickly as we can. So it's really simple. We're just going to
add in a UV sphere like this, and we want to UV unwrap it because we're going to be adding in some
bump mapping to get the kind of the nice effects, the little dimples and stuff over the orange.
So I'm just going to select those two seams like that. And then I'm going to hit,
what am I going to select? Nope, not extrude. Oh dear. I forgot what I'm doing. Oh, control E.
There we go. Mark seam. Okay. So selecting mark seam, you can see it's got a red line around it.
Then I'm just going to split this view right here. I'm going to hit U unwrap, and I'm just going to
just scale that up to be about there. We don't need to put an image there because we're actually
going to be using procedural textures. Okay. So then going over to the material panel right here,
I'm going to add a new material to it, and I'm just going to leave that set as diffuse.
Now I'm going to split this view, go into the node editor, and this is where I'm going to
have a lot more control over the material. So the first thing I want to do is to get that nice sort
of dimply ripple, sorry, bump effect. We're essentially trying to mimic the look of an
orange skin. Okay. I guess we should turn on smooth shading for this. I'm also going to add in
a subsurf modifier as well. And while I'm at it, I'm also going to add in some lighting just so
that we can see how this looks as we're creating it. It's always good to see what's happening.
Okay. Like that. And I'll just give this emitter. Oh, I made the orange in emitter. Okay. That
wasn't right. Make that diffuse and make the light emitter set that to five. All right.
Okay, cool. So what I want to do now is to add in that bump map. So we're going to be using a
Voronoi texture. So go ahead and add that in. And I want to set the scaling for this to be about
400. And then we also want to set the vector. So it needs to be using the UV texture
vector thing. Now, I think previously in early versions of Blender,
by default, it set it as UV. But anyway, now I actually have to set it. So I'm going to go
texture coordinates, and I'm just going to set that to UV, just like that. Plug that in there.
So that was input texture coordinate, by the way, if you missed that. And now I'm going to add in
a mix node, drop this into the bottom input, set this to be multiply. I'm going to leave the top
blank, but I'm going to set it as pure white, just like that. This is how you do bump mapping,
by the way, if you weren't aware. And then I just take that output of that multiply node,
and I put that into the displacement right there. And voila, you can see you've now got some bump
mapping. And if I wanted to get even more fancy, which we should, I suppose, I'm going to invert it
like that. And now you can see you've got the bumps that are sort of going in the right direction.
And you can change how much bump mapping you want by turning down that multiply factor amount,
just like that. And so, although that's not perfect, it's pretty good for procedural textures.
Now, if you wanted to, you can actually duplicate this for my texture,
set this to be a scale of 140, and then add in a mix node, like so. Whoops. Take the output of that,
put that in there, set that multiply, oh yeah, change this mix type to be multiply,
then take the output of that UV node, and then put it in there, like that. And now that's going
to give you some more sort of bigger, chunkier, I don't know how to say it, bigger bumps and stuff
like that. So actually, let's try screen. I'm not sure which one it is supposed to be. I think
screen might be right. Yeah, that would make sense. And if you want, you can turn that down
if it's too much as well. I might set it to 0.3 or something like that. But that's essentially it,
that is the, that's the sort of the bump mapping of the orange. And then if you want to give it
some color, which I'm assuming you do, I'm going to give that a nice orange color like that,
turn the brightness all the way up to one, or that slider all the way up to the top.
And then you've got the basic skin of it. Now, this should be, there should be some shine to
this. So if you wanted to make it shiny, then all you do is add in a glossy node,
drop this in right here, then go to shader, then mix shader, make sure it's not a mix node,
but it's a mix shader node. Drop that in right there, then take the output of the glossy node,
put it in there. And now we've got some shininess to it. You don't want it to be too shiny, of
course. So maybe turn that down to about there. And you can turn down the sort of how much
reflectivity you want that orange to have, sort of how clear you want that. And you can sort of
experiment with those results. I think the bump mapping is a little bit too much as well.
But you get the gist of it. So that is the basic material of that. Now there's a little bit of
modeling to do as well if you want to create that top part of the orange. So I'm just going to go
hit O, and this is going to go into proportional editing. And now I'm just going to move this down
slightly, just like that. And I'm going to grab this ring of vertices right there. And I'm going
to scale that in. And then I'm going to pull that one in there as well. You could create another
edge loop here, which I think I might do, actually. Get a little bit better of a look.
Another one there as well. You could fix up the UV mapping if you wanted to, but I'm not really
going to worry about it. It's not that big of a deal. And now I'm just going to select about five
sort of seams along here, just like this. So that's four. And I'll create another one right
there. And then I'm just going to move that down, just like that. So you can see what we're doing
now. We're just creating that top part of the orange. And then I'm just going to go into top
view mode. I'm just going to unselect those ones right there. And then I'm going to move those up
slightly, just so that it's sort of fading off a little bit. And you can see the sort of effect it
has. And then to create that stem, it's pretty easy. I'm just going to duplicate that ring right
there. I'm going to make it a separate object by hitting P. I'm going to select that. Let's go
Control-Alt-Shift-C, the most awkward key combination ever. Then select origin to geometry.
And then if I just extrude that inwards like that, then up and up, and then create a face
just like so. And you might have to, of course, recalculate those normals because it's all been
screwed up. Nope. So this is obviously a very basic introduction to creating an orange.
I really only wanted to show it to you because I know some of you might want to be creating
some different types of fruit or, I don't know, you want to sort of feel as though,
you know, you're not starting with a starter file. I know some people, myself included,
when I'm doing a tutorial, I don't like to start with somebody else's work. I like to do everything
from scratch. So for those people, I'm just giving you a very basic look at creating an orange.
So this is the stem right here. I'm just going to give this a very dark green color like that.
Something around about that. That's diffuse as well. If you want to change the viewport color,
just select that little eyedropper tool there and then select that. Might do the same for the
orange as well. That way it's sort of easier to tell in 3D viewport what you're looking at.
You can add some more detail to that stem if you like. But that's basically it. There is actually
one more thing if you wanted to, to give the orange a little bit more realism. You don't want
it to all be exactly the same one color. So what I'm going to do is just add in a noise texture
right here and I'm going to add a mix node in, change this type to be overlay, and then I'm going
to drag the output of that noise texture into the bottom input there and then put this into the
diffuse right there. The color has now completely changed, but I'm just going to make this now the
color of my orange. So just changing that like that. And you can see you've now got some slight
pinkish and different colors happening in that orange. So it's not all the, you know, the same
color. And the lower you set this to, then the less of that variation color is going to be showing
through. But it does help to have, you know, little things like that can just make it go from looking
average to looking more realistic. So you can see the difference it's made and it looks quite cool.
And also one other thing as well, if you wanted to add a displacement modifier,
whoops, what happened there? All right, there we go. Just like that. And this is just going to get,
yeah, just going to give it a little bit more variation. So this is the texture panel. If you
want to change the displacement, just go change that type to displacement right there. And then
you can change sort of the rippling of that orange because you don't want it all to look exactly the
same. You know, oranges aren't completely symmetrical. They've got little bumps and
nooks and crannies and stuff happening. So this is just essentially just replicating that type
of effect very quickly with very, very minimal modeling. Anyway, you can experiment with that,
but that's the gist of it, guys. I'm sure you get the hang of it. So if you want to go ahead now and
create those three other fruit. So on this last layer here, if you've downloaded the file, I've
a lime, I've got a lemon, which is sliced. And that lemon, by the way, has just got this image,
if I can find it, that one right there. So that was off CG textures. So you'll have to download
that if you wanted to use that. But you can see the fruit are very basic and that is the gist of
it. So without further ado, let's get into the rest of the tutorial. So I'm actually just going
to go ahead and delete my orange right here. You can keep yours if you want, but I've already
created three over here that are ready to go. So it's all good and fine. Okay, so now we can
finally get into the fluid simulation. So if you've never used the fluid simulator before,
for any simulated work, the first thing you need is a domain box. So the domain box is essentially
just a cube. So if we add a cube in right here, and this cube will act as the boundary box for
the simulation. So all of the water simulation is going to be, yeah, happening inside this box
right here. So you want to make it as small as possible because the larger you make the box and
the more fluid bake time you'll have to wait for. But you also want to make it large enough that the
sides of the boundary box aren't visible for the shot. So I'm just going to scale this up right
here so that it fits all of our fruit into it. And I'm going to go into edit mode. And I'm just going
to move that cube upwards like that, just so that origin point is in place right there. So it's on
the grid floor. And then I'm going to exit the edit mode like that. Now is actually a good time
to be positioning the camera because a lot of sort of or yeah, a lot of the sizing of this boundary
box right here is going to be defined by what the camera can see. So if I just go to the layer one
over here and just grab the camera, and then if I go into front view, then hit control alt number
pad zero, and that's going to snap the camera to that location right there. Now I'm just going to
change some of these camera parameters, I guess. So I'm going to change the camera preset to be a
Canon 7D. And that just changes this sensor width information. So you can see it looks kind of
zoomed in a little bit more now. I'm not sure if that changes too much on how the actual image
looks when it's rendered, or if it's just purely for camera tracking. But anyway, I like to fiddle
with these presets because they're kind of fun. And the focal length, I'm going to make that 90,
which as you can see, is really, really zoomed in. But I found that it looks nicer because instead
of having that, you know, sort of three dimensional feel with lots of stuff happening
and foreground and a background and stuff like that, having a high focal length allows it to
focus on just sort of one part. And you can see that it's very clean, very cut, and all you're
seeing is the fluid. And it just, I found it looked a little bit nicer. So that's why I'm using
a focal length of 90. And also I found that photographers, if they're going to be photographing
splash effects and stuff like that, often the camera is far away from where it's happening,
because obviously they don't want to get water on the camera. So it's sort of a little bit more
realistic that way as well. Okay, so positioning this camera right here, I'm just going to move
this to be about there. So you can see that this is the boundary box of our domain, the fluid
domain. So provided that the camera is not so far out that you can see the edges of the box like
that, it should be fine. Now then you want to scale down the height of the box, because if you've got
it too high, then it's just going to be wasting a lot of space. I think you can also scale it.
Actually, I'll leave the width of it like that. That should be fine. You get some ripples and stuff
like that. But scale that down to be about there. But yeah, just leaving a lot of room at the top
there, just so that the splash can sort of splash upwards without it looking as though it's just
hit the ceiling of something. So that's why we've got that. And so now that we've got the boundary
box, the next step, of course, is to add in the fluid object itself. So this is just as you can
imagine, if it's a fish tank, this is just the glass shell. So now you actually need some water
in there. So I'm just going to duplicate that cube right there. And I'm just going to scale that down
just slightly, looking at this right here, just like that. And then I'm going to scale that to be
around about, actually, let's move that up. Okay, so the camera should really be in line with
that level right there. So you should be able to look across the water to be about there,
if that makes sense. All right, so if I scale that down. Okay, cool. So provided that that top part
there is level, that should be fine. And then you also, you don't want there to be too big of a gap
between this edge there, and then this, or otherwise when the simulation takes place,
you'll see that this fluid drops, and it kind of splashes around and stuff like that.
So you might have to bake out more of the fluid simulator. But if you make it as close as
possible, and then use a high enough resolution of the fluid itself, then you shouldn't have
too many problems of the, you know, the water sloshing around and stuff like that when the
simulation starts. But anyway, that's the basics of it right there. So I think I just might scale
that down just a little bit more as well. But I think now we are just about ready to, to start
the fluid, get into the fluid settings and whatnot. Just check everything's looking good.
Okay, cool. So starting with the boundary box or the domain object, which is really where most of
the settings take place. So selecting that cube right there, if we go to the simulation tab up
there, or the physics tab, as they call it, then click on fluid, and then change the type to be
domain. Alright, so the biggest one that you want to pay attention to is the resolution. So essentially
that defines how clear and how realistic or, you know, the resolution of the fluid. It's pretty
self-explanatory. So for my final animation, I used an amount of 245 or 246, something like that.
But for this particular one, I'm going to be using something low just so that we can experiment with
it a little bit. I'm just going to use 85 for now, just to see how it looks. And then down here,
underneath the fluid world, you can see you've got real world size. Now this actually fits. So this
is in meters, that's 50 centimeters. So this fish tank, if you can imagine, it's 50 centimeters
across. I'd say that's pretty accurate, so that's fine. But if this was a bigger scene, then you need
to increase the meters to match that, basically. Now the fluid boundary, this is going to change
sort of, so when the fluid interacts with that edge of that fish tank,
it's going to change if it sort of sticks to the edge or if it slides completely off.
So I'm going to make mine free slip so that you don't get any of the, you know, the water hitting
it and then kind of staying there for a little bit. Now if you've got a newer version of Blender,
I think in 2.43, I'm not sure which one this is actually, hang on, let me just have a look,
splash screen 2.63. So this is a new build, but I think the early versions, they don't have this,
but there's one there that says remove air bubbles. So this is a new feature for the
fluid simulator, so I'm going to uncheck that because we actually want there to be as many
air bubbles as possible, because that's obviously going to make this scene look very realistic.
Now down here underneath the fluid particles, I'm going to change this generate particles to be
0.1, and that's just going to create some really sort of finer and more detailed looking droplets
than what is normally possible with just, you know, the standard resolution fluid. So it's
kind of like faking extra little water droplets. But if you set it too high, then it can look a
little bit chaotic. I found 0.1 worked quite well for this, so that's what we're going to use.
However, keep a note that whenever you use the generate particles amount there,
you have to change the subdivision amount to 2 as a bare minimum. So if you don't set that to 2,
then this generate particles thing won't happen, basically. In fact, if it were up to me,
if I was a coder, I'd make it so that this is grayed out until that is at least 2,
because it's very confusing for new users, and myself included. I had no idea why this
wasn't working. But anyway, subdivision 2, and then generate particles, yeah, 0.1.
Now the smoothing amount, you can leave that if you want. I set mine to be 1.2.
That just sort of smooths out the fluid just a little bit more than usual,
so it doesn't look too kind of chaotic. For this scene, I found that 1.2 worked quite well.
Everything else is pretty good. You want to set this, the file baking browser. This is essentially
where it's going to save your baked files. So I'm just going to give this a new name here.
I'm going to call this cache tutorial, and I'm going to hit accept. Now, whatever you set that
to, like if you set a name that previously exists, you can see I've got a few here. If you set one
that previously exists like it was before, then it's going to load in that bake data for you,
which is why that suddenly changed to look like fluid. Now that I've set it as a different folder,
you can see that it's now snapped back to its original domain box. Now the big one that we
need to pay attention to is this one right here, the time field. So for this animation or this
simulation, we're just creating a still image. So essentially, we can get away with using a
timeline of a very small amount of frames. So I'm just going to use 25 frames. Now,
if this was an actual animation and you want it to be in slow motion and show the fruit
sort of slowly coming down into the water, then you want to set that to be quite high.
I think I originally set one of mine to be like 350 frames, and I slowly baked it, and it was
really, really long time. Yeah, it was a lot of work. But anyway, because this is just a still
image, you can get away with as few frames as possible. And essentially, what that does is it
saves you all of that bake time. So I'm going to set that to be 25 frames. Then you want to set
this time field to match the length of this timeline right here. So I would set this end
amount to be one. Now this is in seconds. So 25 frames, if you're familiar with video footage,
25 frames make up one second of footage. So that's why this time field, setting it at start as zero
and then end at one, means that it's now baking one second of fluid simulation. So that would
mean that if you played it back in real time, it would look and behave exactly the way real fluid
should. However, because this is sort of a more dramatic shot, and you want to get more detail
and stuff like that, I'm actually going to go ahead and I'm going to set this speed to be 0.3.
Now, actually, the speed really behaves in a similar fashion to the way the time is. So in
if you set this amount here to be, I don't know, 0.3, then it would essentially be doing the exact
same thing. And then if you set that to be one, so if that makes any sense, but just for the sake
of keeping things sort of accurate and the way things are, I always set the time to match exactly
what's in my timeline here. And then I changed this speed so that it's, yeah, if I want to make
something slow motion, then I just change that speed right there. So I'm saying that to be 0.3.
So it's going to be essentially like one third of the speed of normal fluid. And that'll just give
us a lot more detail and allow us to see things and whatever, etc, etc. Okay, cool. So we've got
the boundary box now set up. So you've got this little cube in the middle there. And that is,
of course, acting as our water. So again, in the physics panel, I'm going to select fluid
and set the type to be fluid. And that's it. That's all you need to do for that. Very easy.
Now, these fruit objects right here, this is another important one. If you want them to be
interacting with the fluid, which we do, then you also need to make them a fluid object. So
selecting that line right there, I'm going to select fluid. And then from the type drop down
field, I'm going to select obstacle, like so. Now it's important also, like at one point I set,
this is the slip type sort of like how much friction the water is going to have against this.
I once I set this to be no slip or like zero like that. And it created like this weird vortex
effect because the friction was so high on it that it was creating like this bubble around the
entire thing. It was a very weird result, but I guess it's kind of accurate to the way it would
happen in the real world. If something was so grippy on the water, it would kind of create this
vortex around it. Anyway, so point is just leave it at point two. You don't need to change anything
there. I just thought I'd share that random useless piece of information for you. So I'm
just going to do the exact same thing for these ones right here. So that do obstacle. And then
this one right here as well. Now my lemon and my lime, you can see that they've got a subsurf
modifier applied to them. Now you don't need to worry about that sort of slowing down the fluid
sim because there's too many vertices or anything because the fluid sim always comes first. So it's
actually just going to be operating off this basic mesh right here. And then when it renders it,
it's going to have that nice subsurf look to it. So you don't need to worry about, you know,
turning any of this stuff off or whatever, because it's just going to, it's going to look fine as it
is. So don't worry about it. Okay. So now that we've got that set up before, obviously we start
baking it, we need to animate this fruit falling into this fluid here. So, um, essentially we want
these fruit to be starting outside of the field and then slamming down there so that on frame 25,
you've got them in essentially the position that you want to be photographing them.
So, um, at frame one, I'm going to position this orange to be about here and I'm going to select
eye and then select lock and rot. So that stands for location and rotation. So it's making a key
frame for that position right there. Um, I should also point out by the way, the way that we're
doing this is this orange is flying down from the top left and it's going to go there. This lemon
is coming down straight from the top and is landing there. And then this, this lime is coming from the
right. So essentially it creates a more nicer looking composition because you've got splashes
going from left to right and the whole thing has got kind of bubbles and stuff happening. And it
looks a lot nicer than if you had everything just dropped from the top. At least that was sort of
the, my method to the madness or whatever. So, um, so I'm just selecting, so I've set the key
frame for that frame right there. So it's on frame one. Um, and also if you want to change
the rotation of that orange, you can go ahead and do that right now as well. So I might position
that, let's say about there. So I want this stem, that little green point right there to be visible
to the camera. So I'm setting that right there. And then on frame 25, now, oh, I didn't create
the extra key frame. All right. Do that again. Move that up. Location rotation. Now on frame 25,
if you go shift left arrow, shift right arrow, it jumps from the first frame to the last frame.
By the way, that's a little key, um, shortcut for you. Um, so on frame 25 from the camera view,
I'm going to position the orange exactly where I want it to be, um, for the final render. So
something around about there should look nice. By the way, if you go down too far underneath the,
uh, underneath the fluid, then what happens is the fluid bubbles actually start to separate.
So if I just show you again, um, how it was, uh, for this one right here, yeah, you get this effect
right here. So as you can see, as this, um, this text starts to separate from the surface,
you can see that that fluid starts to peel away and then go towards the top there. And it looks
quite ugly. And you can see that by that point, it doesn't look like a fluid simulator. It looks
quite boring. So you want to get it photographed so that it's in that kind of state right there.
So you want to make sure that this orange and the fruit isn't too far away from the surface,
or else you won't get that, um, that rippling or that sort of splash effect going down underneath
the surface. So somewhere about there, I think should be fine. So I'm going to select eye,
lock, and rot like that. Okay. Now for this lemon slice right here, I'm going to do the
exact same thing. Um, I'm going to rotate this so that it's about there like, so,
and I'm going to hit location, rotation, and then frame 25. I'm going to move that down.
I'm going to position that about there and I'm going to hit location, rotation. So now when
animate it, you can see that is what's happening. Final one is this lime right here. Pretty basic
stuff again. I'm just going to move this around a little bit, location, rotation,
and then down here, just move this a little bit further, rotate that some more, and then location,
rotation again. So now you can see you've got the fruit moving into the fluid simulation like that,
and it's looking kind of cool. Um, now when this fruit, um, you can see that at the start,
it's actually outside of the boundary box. That's actually not a problem. I originally thought it
would be. And so I tried to position mine so that it wasn't, you know, so that they were way out
there, but I don't think it actually matters if you've got obstacles that are outside of the
fluid box and then they enter into it during the animation. I think the, uh, the blender devs have
done a good enough job that it doesn't really matter about that too much. Um, now there's one
other thing you can see that at the start of the animation, that it's slow, it's slow to start. So
kind of like it starts and then it speeds up in the middle and then it slows down towards the end.
Now, um, anybody that's been using blender for more than a couple of months probably already
knows the reason for that. That's because keyframes automatically have this, uh, these smoothed off,
um, what do you call them, anchors, whatever, I guess. So, um, a quick way to fix that,
if you just select those, um, those, uh, those ones right there, you can change it in two ways.
You can go, um, if you hit V and then select vector, then you're going to be creating some,
um, you know, harsher looking, um, points like that. So that when this orange here starts,
you can see that orange starts off really quickly and then it dips into the, um, the water there.
However, you'll notice that you might have to also adjust these handles so that it kind of
creates the right sort of look. So oftentimes I find it's, um, well, this is something I've
started doing at least, is I just select S, then X, oh hang on, these ones right here.
Let's just change them back to be automatic. Then S, X, is this even working? S, X,
zero. Okay, there we go. So now you've got a lot more accurate looking fall off. So essentially
it's starting off really quickly and then it's slowing down as it enters the fluid.
And I actually want it to slow down as it enters the fluid because I figured that's what would
happen with real fruit. If you drop it in a bucket of water, it would slow down towards the
end. So that's the effect that we're going for. And I'm going to do the same with these ones right
here and you as well. And there you go. Okay. So everything else is set up. So just going over
these settings again, just making sure that we've got everything the way it is. Um, again,
I've only got my, um, where is it? Yeah. The final resolution I've set that to be 85.
I might actually just increase that to be, I don't know, 115, just so we can see how much
resolution, um, you know, a clear enough resolution that we can sort of guess if it's going the, um,
you know, the simulation is working or whatever. But anyway, let's go ahead and give this a bake
right now. Um, depending on how long your machine is, it'll take longer. Um, my machine should be
done within a couple of minutes. So I'm just going to pause the recording and then we'll see how it
Okay. So that took about 10 minutes, I guess, a little bit longer than I expected, but anyway,
it's all right. Um, you can see that, um, the fluid simulation has baked and, uh, it's looking
very, very low res. Now the reason for that is that over here, actually, I can get rid of this
now, um, over here in the physics panel where it's got viewport display, um, it's set to be
preview. So currently it's actually using this amount of resolution 45. So if you actually
change that now to be final, um, then what you'll see is you've got the, uh, obviously the more
final looking fluid, which looks obviously a lot nicer. Um, so with that fluid there selected,
we can actually now just turn on smooth shading. And that's going to give us obviously some
smoother looking fluid. Um, okay. So the next step now that the fluid simulator is baked and
we can see that actually, if we just cycle through these frames here, um, that, that, uh, what would
you call it? That splash, that bubbling effect is, um, I originally wanted it to be so that it would
be on frame 25 or 26 so that it works, but you could see just here where it's sort of breaking
away from that line there. So I'm just going to turn it back to be maybe frame 24. I think that
might be okay or frame 23, depending on what sort of thing that we want. Um, but that's looking
pretty good. Um, so that's looking fine. So the next step is to set up the lighting, the materials
and, uh, essentially create the final image because, uh, the fluid simulation is now completely
baked and, uh, it's ready to go. So, um, yeah, so for the, uh, setting up the lighting. So let me
just grab the fruit. Where are the fruit? Okay. So we put the fluid on the same layer as the fruit.
That was silly. Okay. I'm going to move this fluid here to be on frame number one, right there.
And I'm going to move this fruit to be on frame number two,
along with these stems as well. I've created these little stems. I'll put them on frame two as well.
There we go. Okay, cool. So, um, so for the lighting, um, I think currently we've got,
uh, this big lamp overhead. Uh, we actually don't want that lamp to be exactly overhead
because it's going to create some sort of unnatural looking lighting. Um, sort of very
cold, very just, uh, yeah, by the way, I'm moving the camera and the lamp to a different layer now,
just so that I can focus on the fruit. Um, yeah. So having an overhead light,
it kind of looks like it's been shot in just an indoor area because lighting is, you know,
especially like white lighting, like a fluorescent lamp or whatever. If it's coming directly from
ahead, it just reminds people of just, uh, just very bland overhead lighting from an interior.
So, um, if you have the lighting from the side, then it looks a lot more dynamic,
dynamic, and, uh, it looks a lot better. So that's what I'm doing right now. So you can
see if they've got the fluid right there. So if I just scale that down to be about that size,
that should be good. So that's roughly about the same size as the width of that box there, I guess.
That's good. And I'm going to set the emission amount. I'm going to set that to be 15.
And I'm going to duplicate that plane. I'm going to create another one on the other side,
and I'm just going to set this one to be one. So I'll set that, uh, make it a separate material,
set that to be one. So that one's 15 and that one is one. So that lighting on the other side there,
it's just going to give some very, very soft, very subtle highlights just on the left side
so that it's not completely pitch black, because otherwise that can look a little bit bland and
yeah. Okay. Now for the, uh, the world material, I'm going to set that to be black, just like that.
So the background is now completely black as well. Um, now for the fluid itself, um,
this material is actually quite easy. Just give it a surface type of glass and then set the IOR
to be 1.333 or 1.33, 3, 3, 3. Yeah, I think that's right. All right. 1.333. I keep forgetting like
anyway. Okay. That right there. Um, now the color I'm going to set that to be white
so that it's not tinted in any way. It's a solid, completely clear, transparent color.
Um, this index of refraction, by the way, the way you get that value,
um, if you just go to Google and you type in index of refraction,
then it's going to give you a list of real world values of how light bends in different things.
So if you have glass, I think it's better as 1.1. And then if you have different materials,
then you change that value according to that. So there's like a real world value. So you just
Google what the real world value is, and then you get it. So it's kind of cool. You can just
get a very accurate, very easy, um, material just by, um, by Googling something. So that's really
cool. Um, okay. So just having a look at the fruit itself. So I just go to frame two, sorry,
layer two here, and then just turn on the layer with the lamps as well. Now, if I give this a
render right now, we can see just how this looks with just the lights and see if we need to change
anything. Um, but that looks pretty good to me. The materials for these, um, this fruit here is
obviously already in place because, um, we've just used that from the starter file. Um, but I'm sure
you know how to set them up. It's pretty easy, or you can just download it and have a look at how
the materials are set up as well. Um, okay. But that's looking pretty good. So now let's give it
a render, um, with the fluid as well. And I'll just see how that looks. Um, I'll just set the,
uh, the sampling. I'll change that to be 500. Um, just so that we can, um, get rid of a little bit
more of that noise. Cause once you add in the fluid and stuff like that, it can get a little
bit noisy a little bit quickly. So let's just have a look at that now. All right. That's not too bad.
It's pretty good. Um, you can see that the fruit actually is, um, uh, it's actually hidden
underneath the fluid there. So I'll just cancel this now and I'll just show you how to correct
that. Um, oh, by the way, you want to make sure that this box, by the way, this fluid box is not
rendered ever. So this is the, uh, that fluid type object. So make sure that's on a separate layer
and that it's never rendered. Otherwise the render is just going to turn out pitch black. So just,
um, yeah, give you a reminder of that. Um, all right, let's get in here. All right.
What am I doing? Where's the fruit? Select a fruit. Okay, cool. So the reason that, um, the
render looks kind of weird and it looks like you've got some kind of glass bubble around it
is because the fluid is actually sort of encasing it, I guess. So the way around this is just really
easy. Just scale up the fruit like that. So that's what I did for mine. So I just basically baked the
fluid and then I just, once it finished baking, when it's time for rendering, I just scaled up
the, um, scaled up the actual fruit objects just like this. Um, and that just ensures that it looks
a little bit more realistic, I guess. Get that down. And I'm not going to have to move that one
over a little bit as well. And because we've got key frames, I'm actually going to have to edit it,
go into edit mode and do that. Otherwise it's just going to change whenever I
change a frame or whatever. All right. And I'll scale this lime up as well. It should be the last
one. You want to make sure that it's not too big. So you want to kind of get like a mix between,
you know, a few bubbles on the outside is okay, but you don't want there to be too much. So
something like that should be fine. So I'll just give this another render right now and let's see
how that looks. Okay. So there you go. So as you can see, that's looking a lot nicer. Um, the, uh,
the fluid is where it should be. You've got a few little bubbles on the outside there, but that's,
that's fine. That sort of adds to the effect there. So it looks quite nice. And, um, now there's only
one more thing to do, and that is where we're going to be adding in some fake bubbles. Now,
the reason that we're going to be adding in some fake bubbles is because currently, um, yeah,
there aren't that many bubbles. So if you have a look at a real fruit splash photo,
these are some photos that I pulled off Flickr under the creative commons license for some
copyright. There you go. Um, if you have a look at some real photos right here, you can see that
there are a lot of little tiny little bubbles. Some of them are like tiny little specks, but
they're still there because obviously when something splashes into the water, it kicks up
a lot of these bubbles. Um, and, uh, if you wanted to create, um, you know, that level of,
uh, of bubbles in blender, um, you would have to turn up the fluid resolution to a really
insanely high amount. And even then I'm still not sure that you'd get, um, that amount of bubbles.
So the easiest and quickest way around that is to use a particle system, um, to create
particles coming off it and then create little tiny spheres, um, to those particles and then
render that basically. And it'll look, um, obviously it looks a lot nicer. So
I'm just going to go to this, um, yeah, layer two here, just focusing on the fruit.
This is really super easy. Just add a particle system right here. You want to set the start and
the end frame to be something suitable. So the end frame is obviously 25 and the start frame
should be the frame in which the fruit enters the, uh, enters the, um, the fluid. So if I just circle
through this, uh, it's about frame 10. So I'm just going to set the start frame to be 10. So that's
when the particles are going to start generating like that. There you go. So it's, uh, yeah,
it's sort of raining down. It doesn't look good at all. So the next step is to change the, uh,
field weights. I'm going to turn the gravity of that all the way down to zero, something I don't
usually do. And I'm going to set the normal amount of that to be 0.1 and the random amount for that
to be 0.5 and the Brownian amount to be 0.1 so that it kind of disperses a little bit as well.
And now when you render that, you should get that effect there. I think the random amount
is too much actually. I'll set that to 0.3. Let's try that again. I mean, it's a still frame anyway,
so it's not really going to matter all that much if it, um, yeah, if the particles are moving too
fast because it's not, um, obviously it's not going to be visible in a still frame. Also,
you've got some particles that are outside of the water there. That's okay. It doesn't matter that
much because it's not really going to be that, um, that visible because you've got a lot of
splashing and stuff going up there anyway. So you're not going to be able to, um, see those
particles anyway. Uh, now I'm actually going to set the amount of these particles to be,
let's go for something a little bit higher. I'll go for 3000. I think originally for my
final image, I used 1000, but then I realized they weren't enough bubbles and didn't look
realistic enough. So I went into Photoshop and I duplicated groups of bubbles and then I started
duplicating them and placing them around to essentially fake the look of more particles.
So learning from my mistake, turn that up to be 3000 and, uh, we'll go with that.
Okay, cool. So, um, obviously if we would have rendered that, you wouldn't see hardly, uh,
hardly anything. Oh, go ahead. I'll just add these particles to these ones right here as well.
Get this particle name. Let's call it bubbles. Do this one here as well. And there you go.
One cool thing you might've noticed is that the, uh, the particle colors match the fruit because
of the materials. Something, I guess, um, a new feature in blender, I guess the particles
change color. I don't know. I thought it was kind of cool. Anyway, I just noticed it. Um,
okay. So, um, we obviously want these to be rendered as tiny little bubbles. So the way
we do that is we need to create physical spheres for that to happen. So I'm going to go to a new
layer, completely new layer, and I'm going to add in a UV sphere and you want to turn down the
number of these, uh, these segments and stuff so that it's a lot smaller than it currently is.
So I think segments of eight and six will make it low poly enough that it's still a smooth looking
bubble whilst still, um, you know, being low poly. Um, then I'm also going to move that up
to the, so that it is, um, on that base origin right there. And then I'm going to rotate that
by 90 degrees. The reason for that is that we're going to be creating a separate particle system
soon. Um, that's going to be using the particle type of hair. So that's why we're doing that
anyway. Okay. So we've got that like that. Um, and we want to actually create some variations
of this bubble. So I'm just going to set that to smooth. I'm going to duplicate this. And now for
this separate, this variation bubble, because again, having a look at those, um, you know,
these bubbles right here, you can see some of them are like different shapes that kind of like
oval shaped and like jellyfish shaped or whatever. Um, I don't know if that helps jellyfish. I don't
know what image that brings to mind, but anyway. Um, so I'm just going to go into proportional
editing mode here and I'm just going to create one of those kind of jelly bean. That's a better
word for it. Jelly bean shaped bubble, just like that. And that's going to make it look a little
bit cooler. And then I'm going to duplicate both of those and create some smaller ones.
Now for these ones here, I'm going to call this one here, big one. And then this one,
I'm going to call this big two. I'm not going to bother renaming those because I'll just show you
why I did this, by the way. Um, if we go to this layer right here, I'm going to go down
underneath where it says render. I'm going to change the type to be group. And then I'm going
select, Oh, I have to set them as a group first. Okay. So select all of those hit control G then
in the sidebar here, I'm going to set that group name to be bubbles. Okay. All right. Render. Okay.
Now I'm going to set that to be bubbles like, so now I'm going to turn down the size amount here
to be, let's go 0.07, something like that should be fine. Okay. 0.007. There we go. Like that.
And then I'm going to turn the randomized size to be all the way up to one as well.
And you can see those bubbles are now looking quite cool. Um, now I'm going to create a separate
particle system. And, uh, the reason for this is that I want there to be some bubbles that are
stuck to the outside. So currently they, there are a lot of bubbles and they look like they're
stuck to it, but I want to create a few more. So I'm creating a separate particle system right here.
Um, I'm going to change the type to be hair like that, set the type of, uh, render type to be
group again, selecting bubbles. And then I'm going to turn that size amount down to be 0.07,
like, so turn that randomized size up as well. And I think I might have to make that even smaller.
Oh, actually, no, that's right. Ah. So the reason that I renamed those bubbles before
getting different names is I'm going to check use count. And the reason for this, um, is so
that we can now make it so that the smaller bubbles appear a lot more than the bigger ones,
because you want there to be big ones, but you don't want them there to be too many of them.
So I'm going to increase the amount of these smaller bubbles to be 50 like that. And then
that will ensure that there are a lot more smaller bubbles than there are bigger ones, obviously.
Okay, cool. So I'm just going to turn, let's go the render type, turn the size of that down.
Cause I think that's way too much as well. Okay. A little bit more just like that. And if you
wanted to, you could also paint on, if you went into like control tab, you can sort of paint on
here, which parts of it, if you want to like just the under part of it to have the bubbles and you
can just sort of paint like that and then go down to the vertex groups and then select group. Um,
I'll also setting the let's click advanced and go random distribution. There you go. And then
you've got, you've got the bubbles appearing where they should, I guess, but you don't have to do
that. So I'm just going to do the exact same thing I did for that one. So I'll just call this bubble,
bubble static. There we go. Okay. So there we go. And then this final one here as well,
bubble static, just like so. Okay, cool. So now I'm just going to go ahead and give this a render
with the fluid. Everything else is in place. You've got the lighting, you've got everything
else the way it should be. So now we give this a render. It should be ready to go. Let's see.
Oh, okay. So there's one more thing you can see. Um, those bubbles are showing up,
they're showing up as like hard clay looking objects. The reason for that is we forgot to
give, or I forgot to give them a material. So I'm just going to give it a material.
Let's give it glass. And then I'll set that to be 1.33 and make sure all of them have the exact
same material. So I'm going to hit control L then control, uh, then select materials.
Okay. And I can call that material type bubbles. Okay. All right. Let's give that another render.
Now see how that looks. All right. And there we go. So that just about sums up the tutorial.
Um, you've now got the completed scene. You've got some nice splash effects. You've got some
bubbles. It's a little bit noisy. I only let it render for about three minutes, but obviously the
longer you let it render, the better it's going to look. Um, also of course, the fluid that I
used here to save time just for this tutorial, I only set the resolution to be 115. For my final
image, I used, uh, 245, which is why the fluid looks a lot more clear and cleaner here and, um,
overall looks a lot better. Um, but that's essentially it guys. So I'm really looking
forward to seeing the results that you guys create. So maybe some of you guys can create
some different types of fruit splashes, maybe some pineapples or some bananas or other cool
stuff like that. Whatever you do, if you do something cool, make sure to send me a link.
Um, uh, put it in the comment section below. I love seeing what you guys create with the tutorials.
Um, but other than that, that's pretty much it. You can see here, I added in some extra,
just a few little extra lens imperfections. So I added some like hair and stuff like that on
the lens. Um, just in Photoshop, I just used the little paint tool and stuff like that.
Just little tiny things like that to try and make it look more photorealistic. Um, but that just
about sums it up guys. So once again, thanks very much for watching and I will see you next time.
