All right let's take a look at how to make a flag simulation using the cloth the cloth physics tab.
Also we're going to be using Virtex groups and taking a look at new something new called the for the
force fields options and I'm trying to remember everything we're going to cover in this video.
So always learning something new.
We're going to be looking at force fields here and how we can use them with the other two things.
All right deleting our default cube.
Let's go ahead and delete that hit shift day and let's add in a mesh plane.
Grabbing it up let's hit r to rotate x 90 degrees.
Now hitting tab to go into Edit Mode w subdivide.
Subdivide this a couple of times and then hitting s to scale in edit mode still and then as an X to
scale along the x axis go ahead and bring it up.
And now hitting shift day adding a mesh cylinder we're going to add the pole for the flag.
We're going to keep it pretty simple because we're going to focus mainly on the simulation and the wind
and the VOR the force field.
But let's go ahead and at least add a Polen for our flag.
Let's hit smooth shading and then as Z scale on the z axis as Z and then s shift Z to scaley on all
of them except the z axis and bring it to there.
Now selecting this I'm going to hit G and Z and bring it up and scale it down just a tiny bit
and get and bring it higher as well.
All right.
Now let's select our plane go to the physics tab.
This little bouncy ball right here and click on clock.
If we hit all day obviously we can see nothing is happening.
So what we want to do is go ahead and add in the wind.
Now how do we add in the wind.
Well it's pretty simple.
And before we add in the wind let's actually go ahead and do the vertex group part of it.
What I wanted to do is I want it to be attached right here on this corner and the top corner here.
So I want these two corners to not be moving so that it seems like it's attached to this pole right
here the way we do that is via the pinning group.
So the pinning is basically it's going to pin those vertices down and the group is going to be which
vertices it's going to pin down.
If we had to have to go into Edit Mode go to our Virtex groups.
Let's go ahead and add in a new vertex group double click on the name to rename it to flag.
And then we're going to slide this vertex right here.
And this one right here and click a sign.
Now going back to our physics tab we click on pinning and select our vertex group flag.
Now if we hit Alt-A you can see that it's being held by those two vertices.
So the two vertices we put on the vertex group are not moving and they're basically pinning down the
cloth.
They're lets also select our cylinder and make it a collision object so that our flag interacts better
with the actual cylinder and doesn't go through it really.
And now we want to add in the wind.
So how do we do that.
Because right now it's just kind of falling kind of anti-climatic and boring.
Nothing is boring in 3D.
I take that back.
All right now let's go ahead and add in the wind.
So for the win it's basically a force field which is also in the physics tab but we have an easier way
to add it.
We don't want to actually add it to any of these.
We want to add it to a new object.
And if we had shift day we could go to this task force field and Blendr has already assigned these force
fields to an empty object so if we grab any of these right here you can see these are different kinds
of force.
Force fields.
We have some very interesting ones.
I suggest just going through them and clicking all the options and seeing what they do.
There's some pretty cool ones like the vortex which spins your object around and out like a tornado.
Pretty cool.
But we're going to be doing.
So go ahead and click on wind add that in.
And now hitting g to grab this and rotating it like so you can see that we have an arrow here and this
arrow dictates where the wind will be blowing out to.
So in this case it's going that way.
All a you can see that nothing is happening.
So what we want to do is increase our size.
I'm going to also drag down and frame so that it loops back faster.
We want to increase the strength right here and you can see that as we increase it the circles are going
out.
So let's increase it way up so that our flag starts blowing in the wind.
Dustin though.
All right.
That song just popped into my mind as I was saying winda.
So now you can see what our flag is doing.
Pretty cool.
It's falling a little bit.
And then it's flowing and the wind looks like this and had smooth shading as well.
Now you want to keep in mind that you want to have a good size to your to your cloth.
For example if I scale it way down
you can see that it will not have the same effect with the wind.
In fact the wind doesn't even pick it up because it is way too small.
So if your wind is not acting as it should be.
Just make sure that you scale up your flag or your cloth to a good size because otherwise if it's too
small it won't even pick up the wind as the calculations for it won't work and needs to be a correct
Blendr units or a certain amount of metres across or yards whatever measurement you're using.
So keep that in mind as well.
And there we go.
That is our little flag simulation right there.
Pretty cool.
And of course we have all the different options that we could take a look at like we did before.
I mean not take a look at that we could change like we had seen before we could select silk see how
that interacts and that is pretty much how you can make a quick little flag animation to it.
Let's do one last thing.
Let's go ahead and add in a texture to this.
So going to the materials tab Let's go ahead and click new.
We're going to go to cycle's render as well.
Use nodes and we're color it says color.
Let's click this little icon and click image texture which is down here.
All right.
And that was click.
Open it see I thought it had disappeared for a second and go to wherever our flag or our image texture
is saved.
I believe mine is in
and we just had to find our image wherever it's saved.
So the flag image that I made quickly is right here.
Open image and now splitting the viewport.
So it also to close these out and go to the U-V image editor over here and hit tab to go into Edit Mode
ADAs select everything and hit you unwrap.
Go to the image down here and click on the image that you just loaded and let's go to the materials
tab so we can see how it looks.
And I'm going to hit you.
Project from view and scale it up like that's all right.
Awesome.
Now going to close this back up
and then let's go into.
Let's actually try like this.
And now you can see that our flag has a a and a texture to it.
Pretty cool.
Blender rocks.
And then of course we could even try this in rendered mode which is going to look a little strange as
it's going to be calculating it every every length of the way so let's go in textured mode.
It's nice because it has some shading to it.
RAZ If you're just in material mode there's not as many shadows that you could see.
That is our final result right there.
And pretty cool of course you could go ahead and make this into a full animation by just you know tweaking
this whole little bit adding some some ropes and some loops to it so that looks a little bit better.
And then go into the render tab and rendering out your flag animation.
So pretty cool.
And once again keep in mind that if you want to increase the quality of it of course you could increase
the steps and subdivided even more so that it has more vertices to play with.
All right so that is how you make a flag or any kind of flowing object like that and how you would use
the winda or the the wind force field.
Now let's take a look quickly before we wrap it up here at the different options.
Also going to undo that as now it's taking way too long.
I'd put the steps back to five so the forcefield options.
Of course we have the strength right here which determines the strength of the wind.
We have the flow down here which basically is the flow velocity or how the wind is flowing around.
Our our flag.
We have the noise here which basically is the amount of variation in the wind and the speed of which
is basically the different seed's means it will have a different noise value to it.
So it's kind of like a randomness to that to the noise.
And then right here these options right here I'm not sure I've actually never used these before.
And so that's pretty much it.
The main one that you're reusing honestly is just the strength and possibly the flow.
But that is the wind or field really really cool and you could have lots of fun with this.
All right.
I'll see you guys in the next tutorial under rocks.
Peace out.
See there.
All right.
You know one of my favorite beaches Bora-Bora.
We should totally have a blender 3D artists get together in Bora-Bora if you're down for that I'll let
you know if that happens in the future.
All right.
You are the creator of your life.
Much like you create in the world of 3-D.
Don't forget that this world is a place where you can create your very own reality as well.
You can't just hit shift plus 8 at a Lamborghini the house or woman of your dream.
But don't forget that you do have power to create whatever you want here as well.
If you decide to I ladies and gentlemen it might not be a shift a that fast but you can create your
reality.
So go out there create the reality you want both within Blendr and in your life.
Ciao for now of La.