Blender Piano Animation Tutorial Polygon Runway

Creative 3D objects
9 followers
#gjwarts #drawing #art #digitalart #3dmax #sketch #interior #creative3D #howtodraw #3ddraw #3Dobject
AI Generated·May contain errors
Hey everyone, welcome to my new tutorial. Today we are going to have a little bit of a modeling
and animation exercise with this piano keyboard and I really hope you will enjoy this one and
if you do please don't forget to leave that like and if you're new around here hit that subscribe.
Now let's jump into Blender and first of all let me just select the cube and the light,
press X and delete and we'll start with the piano keyboard and we'll basically build the
and I'm going to make a simplified version of this so only eight keys so it's you know small
cute it can be used as an icon for example if you wish so let's start by adding a plane so I'll
press shift a and add the plane now tap into the edit mode and let's press S then X and scale it
down like this a little bit to define the length of the keys and now we'll basically split this
into the seven keys so press ctrl R to create a loop cut and increase number of cuts with the
mouse wheel until we have six here left click to confirm and right click to release in place
and now we have one two three four five six seven keys exactly what we need but there are these
black keys in between the halftone keys so let's press ctrl R and create a cut right here and slide
down a little bit like this and now let's select these edges where the black keys will go so this
one hold shift select the other one here the third one then we leave one out and then select these
two now let's press ctrl B to bevel and we need to bevel two segments like this so if it looks
like this for you just increase number of cuts with the mouse wheel so you have that edge in
the middle as well and now basically let's just define the size of these keys like that and the
reason i did this um you will see just in a second let's press 1 for vertex select or you can select
it right here and now let's select these vertices so i'll select this one hold shift select these
other ones and let's enable the auto merge setting that will merge vertices that touch
and press G twice to slide this up and down and slide it all the way here towards that edge and
and we'll basically auto merge right there and we can now turn this off now to clean this up a little
bit we can press 2 for edge select or again you can select it right here and select this edge
right here and now we'll move select this one by holding shift and these other two right there so
all of these edges that connect to these continuing down ways um we'll select and
press ctrl X to dissolve them we don't need them really there and if you're just starting blender
and you have trouble following all the tutorials make sure to check out my courses as well where
in addition to the step-by-step instruction you also get full in-depth explanation of all the
tools and all the steps and you get to learn everything from simple low poly design all the
way to full character illustration textured environments even a little bit of sculpting
hard surface modeling so if you're interested please check out the link in the description
now let's go for face select so this option or press 3 and select all of these faces again i'm
holding shift to select multiple and i will press p and separate this selection so they will now
separate this into a new object that you can see right here but before i go into that object let's
go back to the edge select by pressing 2 select this edge right here hold shift and select all
of these other ones and here additionally we'll select this one as well and we'll press v to
basically rip this apart like this and right click to release it in place but now these are separate
meshes so we can press a and press p to separate and we can choose separate by loose parts since
these are disconnecting now it will create an object for each of these keys so let's do by
loose parts and you can see we have now multiple objects here and every one of these keys is a
separate object now we only need to separate these and we'll use the same approach so you can just
tap into the edit mode press a and p and choose by loose parts and again we have these multiple
objects now and all of these are separate so now let's extrude the keys um first of all let's
select multiple of these tab into the edit mode press 1 for vertex select because we have some
excess vertices right here so we'll just select these by holding shift and press ctrl x to dissolve
so this will make it much cleaner and now press a to select and e to extrude downwards like this
now press 3 for face select select them again from top and extrude upwards and the reason why
i did this is because i want to slant this part a little bit back so press 2 for edge select select
all of these edges and press g twice to enable the slide like this and now additionally we can
make some space there so press a and either you can hit period on a keyboard to choose individual
origins or you can choose it right here in the pivot section choose individual origins and now
we can press s then y and they will all scale individually like this to make some room for the
keys okay i really like this so let's confirm and now tab out and now we'll select all of these
tab into the edit mode and give them some volume as well so press a i will just extrude them down
and now i want to extrude this part in the front um but these are all separate objects so ctrl r
will only hit one of these at a time so you can use the knife tool for this so we can just press
one for front view press k for a knife and just do a knife like here and now we'll press a to snap
the angle and press c to enable cut through and you can see it enabling down there in the bottom
of the screen there's the cut through and if i press c you can see it enabled and i will just
confirm and hit enter to confirm and now you can see they're all cut right there through the middle
so we can now press 3 for face select select all of these and just press e to extrude like that
let's switch the pivot point back to median and now basically let's just give this
some smoothness some beveling so i'll go ahead and add bevel modifier you can see nothing happens
here and i have this object right here as an active because it's highlighted in yellow
so i will go to geometry and first of all let's switch this to arc and then disable clamp overlap
and you will get this blob but of course you can reduce the amount and get clean geometry
like this and increase the segments for example to three and then in the shading option enable
harden normals right click and shade smooth and now let's just add all of these keys to the
and with this still highlighted in yellow we can now just press ctrl l and copy modifiers that will
copy the same bevel modifier to all of these objects we now have some nice piano keyboard
now the one last thing i want to do if i want to animate this because for example now if i would
for example want to do rotation it rotates like this so i need to move the origin point and the
point is the same for each of these objects because we separated that from the one single
plane at the beginning so we need for the each of the objects to have its own origin point so
let's just select them all right click and set origin origin to geometry and they'll basically
create an origin point for each of these objects but i don't like the placement of the origin point
so you can always with all of these highlighted tab into the remote and select all of the
underlying geometry by pressing a let's look from the front by pressing one on an armpit
we'll just press g then x and move them towards the front here so these origin points this origin
point is for the black keys and now we can tab out let's just select these right here
tap back into the edit mode and again let's look from the front and we'll press g then x and slide
these back here and now we'll tab out and slide them back so they match and align like this and
now you can see we have this origin point here in the back so now if i press r then y i can rotate
the key like this and same applies for this key right there so this is basically ready for
animation let's just create some you know piano body around it so let's press shift a let's add
a plane let's look from the top by pressing 7 on an armpit so tab into the edit mode let's press s
then x and scale it down a little bit and g then x and move it right here so i think this will work
just fine for the placement and now let's press s then y and scale it on y-axis
and now let's press ctrl r create a cut right here just one so if you have multiple of those
remember you can reduce the number of cuts with the mouse wheel and right click to release in
place and now press ctrl b and do a bevel now reduce the number of cuts with the mouse wheel
and create the bevel like this so we wrap around those keys nicely like this and now press ctrl r
and slide one back here okay and i think we can have more space in the back here so press g then
x and move this back okay something like this now select all by pressing a press one on an
armpit for front view press g then z and move this down like this and now press e to extrude
until here and let's now press 3 for face select select all of these faces and just extrude them
up and now to make this a little bit more interesting we can press one and press ctrl
alt shift and s to enable shear and now press y to switch the axis and just share it like this
so there's a little bit of a slope we can adjust the position now we have a nice you know like a
mini controller or something really small thing and again as i said if we animate this this can
be easily used as a micro animation or icon or something like this now i'll tab out and just
make things a little bit more interesting i will shift rightly here let's press shift a and i'll
add a circle reduce the number of vertices to something like 16 tap into the arid mode
and press s to scale this down now press one for vertex select e then z to extrude
and f to fill and now i'll go ahead tap out and enable face project and align
rotation to target now press g and hold ctrl to snap it on that surface and now i'll shift
right click here press shift a create the plane tab into the remote scale it down like this
and press e to extrude now i'll press ctrl i to invert the selection and press x and delete faces
and the reason why i deleted the bottom face is um let me show you i will tap out first of all
and hold ctrl to snap the rotation and now i'll just go ahead and add the bevel modifier
reduce the amount and increase the segments now since we don't have the face at the bottom you
will see it doesn't bevel the bottom part so it's beveled only on top and now i'll just right click
and shade smooth and let's press alt d then y move it here and then press shift r a few times
to repeat that operation and i will just align this a little bit more and now i'll select this
button here hold shift click click the square one and now copy to select it and now right click and
shade smooth and here i will add the similar bevel as on the key so hold shift select the key and
just copy to select it now i'll select this and maybe make this with a larger amount so it's
beveled a little bit more just like this now this is the finished piano basically
so we can just select everything and with the outside part highlighted in yellow we can just
press ctrl p and parent to object if it's not highlighted in yellow remember you can shift
right click it twice to enable it to select it again and make it active and press ctrl p
and parent to object so now let's do some animation i will select the first key and
expand the timeline here and on the frame one let's press n to show the side panel and in the
item menu we'll find the rotation axis in this case it's y axis and let's find the rotation
so right click and insert single key frame and let's just move like frame let's say 10
and increase this like that for example so three three degrees should be okay or if you want to
exaggerate this we can do like four and then right click and insert single key frame and now
i'll select the first one press shift d to duplicate it and move it here but just five
frames after this one so the return is a little bit faster now i don't like the animation curve
on this so let's ctrl and tab here in the timeline to see the curves and now i'll select everything
here hold ctrl and with the middle mouse button zoom in by moving up and left and right like this
and i want the initial movement to be more sudden so let's select this key frame
press v and choose and choose free and now i'll just move this up like this and make it more
smooth here maybe it can maybe it can be a little bit more sudden so let's move it
towards the front a little bit more and then the release can be you know more more smooth
like that okay so that's the animation of one key so now let's choose the keys i want to animate so
i want this one this one here this and this so i will just select them and select this one as last
so it's highlighted in yellow and press ctrl l and link animation data and now before i decouple all
these animations let me just move this on a frame 15 so it's exactly there like that now we can go
go object relations make single user and object animation and this time if i go into this key
and just select all the key frames press g then x and move it to frame 15 you can see this now has
its own animation so we can do that for each of these keys but now i'll go back to the first one
and just select all the key frames and press shift d then x and move it on frame 30 so
we have again the same key and now it will be time for the other one to hit
so i'll press g then x and move it on 45 and i will duplicate this once more and it will go
to frame 60 and then i'll select this one and move this frame 75 so now if i select all of these
we have these different animations happening there and it looks like this but i made a mistake i
duplicated this where i should only moved it so let me press x and delete those key frames
and now it's it will do what it's supposed to do now if you want this to be a little bit faster
of course you can just select all of the animated keys select everything here and press period here
in the timeline and set the pivot point to 2d cursor and press s then x and just scale it
inside like this for example if you want this to be only 50 frames okay something like that now
of course we can duplicate this so it repeats okay so that's for the quick animation now let
me switch this back to timeline and let's hit zero on a numpad for camera view and now here we can
switch to the view panel and activate camera to view so now we can use our viewport controls to
position the camera and of course we can animate it a little bit so let's select the camera by
clicking on the edge here and on the frame one let's go to the item menu and let's just press
k here and insert location keyframe and let's reduce the animation to 120 frames and let's
just press shift d and duplicate this keyframe to frame 121 but now go back to the view and
don't forget to disable the camera to view so you can move freely with the camera now fixed in place
and now let's just move to let's say frame 25 and let's enable recording and let's move the camera
press g and move it a little bit to the side here and now let's scrub through the timeline and move
it to the other side so we add some you know wiggle to the camera so it's not so static now
if you disable recording and play back the animation you have a little bit of the camera
movement there now let's hold shift s reset the cursor to world origin let's press shift a add a
plane and i'll scale it up a little bit here press g then z and move it down now press ctrl b to limit
the render preview only to camera bounds and let's go to render settings and switch to cycles
and gpu and let's enable denoising and gpu denoising right here and for the animation
i think 128 samples will be okay and now let's press shift a and let's add an area light
and move it up a little bit and now we can hold z and preview the rendered view
let me press n to hide the side panel again and let's increase the power on that light a little
bit and move it back and make it larger so we have those nice soft shadows here
okay something like this will be fine and now i want to make this red and again i'm doing this
you know just so you have like a complete example for the animation you can render something out
i'll probably you know mix it up with one of my older scenes and use it in thumbnail
but the main purpose of this tutorial was how to actually create these piano keys the easiest way
the quickest way how to use these simple blender shortcuts and tools to slice this up you know and
animate it in the easiest way possible and then basically this is just for the purpose for you to
get basic lighting give it some materials so that you're actually able to render it out as mp4
animation so yeah let's do a low roughness here and here of course full white color with reduced
roughness and here we'll do a black color and again reduce the roughness so we have that nice
gloss and now let's select all of these white keys hold shift select this one as last press
and do the same thing here and now this can be like metallic so let's increase the metallic all
the way to one and this can be for example dark but a little bit more rubbery so let's increase
the roughness here maybe gray like this and now let's just choose some color for the background
maybe blue and let's add some backlight for example so so let's add another aerial light
press g and z move it back down and let's increase the strength and do some coloring here for the
light like this and now additionally we can add another one move it up here and basically just
enhance those reflections a little bit so when you move the light you can see how it reflects
on those materials so you can find the position you really like here switch this to this maybe
make it a little bit larger and move it to the side here so we have additional reflections maybe
even here from the side we can add some strength there make it larger maybe give it a little bit
of a color and finally in the world settings you can add some colored light as well like this
and finally in the render settings we can increase the contrast settings and play with the exposure
so if you have it a little bit too dark don't forget you can always go back here and play with
the exposure yeah something like this looks quite nice i think let me move one light here from the
side okay like this and when you're satisfied with your result you can just go to the output
settings and switch this to 30 fps switch to ffmpeg and for the encoding choose mp4
choose your folder right here and just go render render animation and wait out your frames so that's
the quick modeling and animation exercise today with this piano and i really hope you enjoyed
this one and again if you did please leave that like and if you want to learn more
hit that subscribe thank you all for watching and have a wonderful day
