ALL TUTORIALS.
Category
📚
LearningTranscript
00:00So hello everyone, welcome back to the channel Web4Click.
00:04Today we are going to talk about Glass.
00:08First of all, whenever we make any object in Blender,
00:13we have to pay attention to the effect of light on that object.
00:22If we talk about Glass, it has two effects.
00:29The first one is reflection and the second one is refraction.
00:34So when these two things are created due to light in any object,
00:39then our object looks like a glass.
00:43So let's talk about reflection first.
00:46Whenever our light falls on any object and it returns,
00:51then that process is called reflection.
00:54Due to reflection, we can see pictures of objects around us.
01:01That means whatever is visible around us,
01:04we can see it as a reflection.
01:07Apart from Glass, there are many other things in which reflection works.
01:11For example, water, metal, steel,
01:15or any shiny object in which things around us are visible,
01:20that is called reflection.
01:22The second thing is refraction.
01:24When our light falls on an object and goes straight,
01:29that is called refraction.
01:31Because of refraction, things look transparent to us.
01:36The more the rays of light go at a straight angle,
01:40the more the object becomes transparent.
01:44So whenever we have to make a glass object in Blender,
01:48then we can enable these two options.
01:53Now let's go and see it practically.
01:56First of all, let's delete this cube from here.
02:00Press Shift A.
02:02And let's take a UV sphere here.
02:05First of all, let's smoothen this sphere.
02:08I will right click here.
02:10I will click on Shade Smooth.
02:12So my sphere will become smooth here.
02:15Now we are going to make it a glass.
02:17So first of all, we will put the first quality in it,
02:20which is called reflection.
02:22And to see reflection,
02:24first of all, you have to go to Material.
02:26In Material, because I have taken this new object,
02:29so I will create a new material here.
02:32The first option in this is Surface.
02:35In this, we are given a glass BSDF,
02:39which will give our object the first quality of reflection.
02:44All these BSDFs given here are very important.
02:48And right now, this is the only series running here,
02:51with which you can make big textures.
02:54So for now, we are using Glass BSDF here.
02:56As soon as I click on it,
02:58my glass will be applied to it.
03:00But because I am in modeling mode here,
03:03so the color on it is not reflecting here.
03:07For this, if we click on the middle one here,
03:09you will see that my object is starting to look a little blurry.
03:15The quality of the glass has come in it.
03:17Now here, because the node series is running,
03:20and for the node, we work in the shader here.
03:25So I open the shader here.
03:27And when you see here,
03:29when I selected the glass here,
03:31it automatically came here.
03:33Now its roughness is getting too much here,
03:35so I will finish its roughness here.
03:38So you will see that the reflection quality in it has come here.
03:42I can see the environment around it here.
03:47But it is in our color mode right now.
03:49If I go to its rendering mode,
03:51then you will see that I can't see anything here.
03:54And whatever we see here in the rendering mode,
03:57that is exported in our video here.
04:00So first of all, we will generate the light here.
04:03As you can see, my light is automatically given here.
04:06And if you want to see the environment behind it,
04:08then you have to increase the opacity of the word
04:10and reduce the blurriness.
04:12So the environment behind you that is being reflected in it,
04:15that will also come here.
04:17I have already told you these things.
04:19Now we have to create the same thing here.
04:21So for that, I set the lighting behind here.
04:25It is very simple for that.
04:27You have to go to the word.
04:29Here you have to search for environment texture.
04:33In the environment texture,
04:35the image of our HDRI,
04:37which is my file here on the system,
04:40I will select it here.
04:42As soon as I double click, it will be selected here.
04:45And when I replace it with its color,
04:47which is the gray color of the background,
04:49then you will see that now my environment behind it
04:51has come here.
04:53If you want to set light in this,
04:55then you will get a node in the name of light path.
04:58And we have to connect this node here.
05:01But we cannot connect two nodes together here.
05:04As soon as I connect it here,
05:06the one behind it will automatically move away.
05:08So for this, I will use Mix Shader here.
05:12Those who are watching my last video,
05:14all of them have understood all these nodes very easily.
05:17Here we will connect this light path with a factor.
05:20And this color of ours,
05:22we will connect it with the shader first.
05:24For now, the environment behind it,
05:26the image behind it,
05:28we keep it here and for a while
05:30we will remove the black light from here.
05:32So in this way, my Glass Numa 1
05:34has come here.
05:36But still our glass is not completely made.
05:39Why?
05:40The reason for this is that
05:42the first quality of the glass is reflection.
05:44That is, reflection has come in it.
05:46The things we have in it from all sides
05:48are beginning to be visible in it.
05:50Now the second quality is
05:52refraction.
05:53And refraction means transparency.
05:55So if you look at it carefully,
05:57you will not see anything behind it.
06:00Or I will take an object and show it to you.
06:03Here I take a sphere like this.
06:05And I will reduce the size of this sphere
06:07with the S button so that it goes inside it.
06:09If you look here,
06:11my sphere is completely hidden inside it.
06:13I can't see it at all.
06:15So if I want to make it a glass,
06:17then first of all it will have to be transparent.
06:20That is, another quality will have to be added to it,
06:22whose name is my refraction.
06:24So to add refraction,
06:26you have to go to material.
06:28Here is the material tab.
06:30And here at the bottom,
06:32you will get an option.
06:34I will show it to you a little further.
06:36Screen Space Refraction.
06:38This is what makes it transparent.
06:40But it has some options here too.
06:42And you will also get some other options
06:44in rendering.
06:46If you click on rendering,
06:48then here you will get this option.
06:50Screen Space Refraction.
06:52Screen Space Refraction.
06:54So first of all,
06:56I will turn on this refraction here.
06:58And after that,
07:00I will go back to the render
07:02and turn on this refraction option.
07:04Now here you will see
07:06that there is still no transparency
07:08in my glass.
07:10For that, we have this option.
07:12As soon as I click on it,
07:14you will see a slight transparency
07:16has come in it.
07:18And in this,
07:20the object that I had taken
07:22is now visible to me.
07:24So now the quality of my glass
07:26has come in it.
07:28If you pay attention to it,
07:30you will see on the edge
07:32how blurry it is.
07:34If you want to manage it,
07:36you have to fill the option
07:38Trace Prices.
07:40And the glass in it
07:42is now visible to me
07:44to some extent.
07:46The glass option
07:48works best in this way.
07:50But in Eevee, we have to make
07:52a slight setting here.
07:54Our glass is already made here.
07:56If I convert it into a cycle,
07:58then you will see its full quality here.
08:00So you can see that it is slightly
08:02noisy in it.
08:04This noisiness is the demand of my graphics card
08:06that my computer is asking for a graphics card.
08:08So for now, to make rendering
08:10easy, the maximum
08:12samples you have given here
08:144096, I convert it
08:16to less than
08:1820.
08:20And the maximum samples
08:22I reduce it to 50.
08:24Now in my cycles,
08:26its rendering will be very
08:28good in it. After this,
08:30you will click on Denoise.
08:32So the denoise that was coming in it
08:34just now, you saw, it is also covered here.
08:36Now I will render it here
08:38and show you. So here
08:40on the top side, you will see
08:42the numbers that are increasing here,
08:44I had set 20 there,
08:46because of this, it has become 20.
08:48If it is only 4090 here,
08:50then it will take you hours
08:52to render the same image.
08:54And this noisiness will be yours till 19.
08:56When it becomes 20,
08:58then it will completely finish it.
09:00Here you can see, as soon as I
09:02completed it, its clarity
09:04has come completely here.
09:06And all the noisiness in it
09:08has finished here.
09:10So after rendering in this way,
09:12you will not see any noisiness.
09:14Here clearly, your glass
09:16will be rendered well in your video.
09:18So in this way, in cycle,
09:20it has been rendered well
09:22and completed. But if I
09:24want to use it in Eevee,
09:26then in Eevee, I will have to
09:28add some more features here.
09:30That is, I will have to
09:32add some more options here.
09:34In Eevee, you can see this fog
09:36slightly. If you want to
09:38finish this fog, then go back to
09:40your old option, where we
09:42added Screen Space Refraction.
09:44Here I have been given an option
09:46Refraction Depth. So if you
09:48press the N button and check here,
09:50then my object is
09:522 meters. That is, from here
09:54to here, its height is
09:562 meters. That is,
09:58the point from here to the middle of it
10:00is 1 meter. So its
10:02depth is 1 meter
10:04or you have to keep it inside.
10:06If you increase it or decrease it,
10:08then it will cause a problem.
10:10If I increase it to 20,
10:12then you will see that at 20 meters,
10:14it has increased the
10:16transparency of the glass a lot.
10:18The object inside it
10:20has also disappeared.
10:22If I keep it within 1 meter,
10:24let's say I keep it at 0.5 meters,
10:26then you will see that
10:28my object is clearly
10:30visible here.
10:32And its transparency
10:34has increased to such an extent
10:36that my glass has added
10:38refraction to it.
10:40That is, its transparency has been
10:42properly covered here. If you
10:44want to remove the image in the back,
10:46then you have to go directly to the
10:48Word. And the option of light
10:50that we removed earlier, we will
10:52connect it to the Factor here.
10:54So you will see how well my glass
10:56has come here.
10:58Now if I render it
11:00and show you here, then first
11:02I will set the camera at the same angle.
11:04Here you will see that if I set it to 0,
11:06then its view is
11:08completely dull here. So I will
11:10set it a little on that view
11:12where its angle
11:14looks a little good to me.
11:16So I will set it in the camera
11:18like this with Ctrl Alt 0.
11:20I will manage it with V and S buttons.
11:22You will get all the camera settings
11:24in episode no. 37 and
11:2638. So here
11:28my camera is set.
11:30And you can see if I render it
11:32and show you here, then
11:34how beautiful my glass looks
11:36in front of me in EV mode.
11:38So this way you saw,
11:40with the help of Glass BSDF, we
11:42made the glass very easily.
11:44We have only added a glass node here.
11:46In its background, we have added
11:48light in the word. And here
11:50we have only two options, Screen Space Refraction
11:52and here the second option is
11:54Screen Space Refraction.
11:56So this way we
11:58can make our glass very easily.
12:00For now, let's learn
12:02some more interesting things in this.
12:04First of all, I will render it and show you.
12:06Now the background
12:08in which you are seeing black color,
12:10if you want to save this image,
12:12you can do Save As and save it
12:14on your desktop or anywhere else.
12:16So I will save it here
12:18with the name Globe.
12:20If you want to make
12:22the black background
12:24transparent and
12:26wherever you take this image,
12:28only this globe should be visible.
12:30Everything else should be removed.
12:32So for that, we have to
12:34do a little setting here. I have to go to
12:36Rendering and at the bottom
12:38I will get an option of Film.
12:40In Film, there is only one option, Transparent.
12:42So the background of this
12:44will become transparent
12:46when I click on it. And now
12:48I will render it here and
12:50if I save this image here
12:52and give its name
12:54Transparent. And as soon as
12:56I save it here,
12:58my image has been saved on the desktop.
13:00So the first image that I saved here
13:02with the black background, you can see
13:04that the black background will come here like this.
13:06But if I turn
13:08this transparent option on,
13:10then my image will be
13:12completely transparent and
13:14the background at the back will not be visible anywhere.
13:16So in this way, you can save any image
13:18here. For now, I will
13:20close it from here. If you want to
13:22use a color instead of transparency
13:24, then I have already
13:26told you this thing.
13:28You will have to go to
13:30Word and in the Word option,
13:32you just have to do one small thing
13:34in Lighting that this
13:36background that I have here,
13:38I have to duplicate it from Shift D
13:40and I have to connect it
13:42to my other shader.
13:44I have told all its settings in episode
13:4650. If you have not
13:48seen it, then the video is for Lighting.
13:50You can go and see.
13:52As soon as I clicked on it, you saw
13:54that my gray color environment
13:56was created here.
13:58If I want to change this color,
14:00then I can give any color here
14:02very easily. If you
14:04want to use the green screen,
14:06then you can set the green screen here
14:08for any of your models and
14:10use it in the video or image.
14:12And in this way, you can use any color
14:14in your background. When you
14:16render it, your color
14:18will come behind it.
14:20So for now, I will delete this background
14:22from here.
14:24And now let's come to our second point.
14:26If I have made this one
14:28object here, now I want
14:30that if I have more objects
14:32here, let's say I click
14:34on Shift A and take one more
14:36UV sphere. I move it a little
14:38from the Move button.
14:40If you want to enlarge this window,
14:42I will press the Space button with Ctrl.
14:44And here if I want more
14:46copy of it, then I will
14:48duplicate it once with the D button.
14:50And after that, I can
14:52press the Shift R button
14:54as many times as I want and
14:56enlarge the duplicate.
14:58Now I will press the Ctrl Space button again
15:00and bring it to my old screen.
15:02If I want to use this material
15:04in just one model,
15:06then the very simple way
15:08is that wherever you have this material tab,
15:10you have to go to it.
15:12You have to click on the material
15:14you want to use.
15:16The globe you can see here,
15:18you have to simply drag and
15:20drop it wherever you want to use it.
15:22As soon as you drag and
15:24drop it, that material will automatically
15:26be used in my globe.
15:28Here you can see that I didn't
15:30smooth it, that's why there are pixels
15:32in it. So I will press the Ctrl Z button
15:34and smooth the shade once.
15:36And I will select all the other
15:38objects and smooth the shade here.
15:40So this way you have seen
15:42that if I want to use the material,
15:44I will select the object
15:46whose material I want to use and simply
15:48drag and drop it here.
15:50If you want to use it from the node,
15:52then keep in mind that in the node,
15:54the material here
15:56should be in the object mode.
15:58Only then this material will catch it.
16:00And this material here,
16:02you will simply see a small window
16:04here in the name of material.
16:06And here this globe,
16:08this small globe, I will drag and drop
16:10it here, so this material will be added here.
16:12Now I want this material
16:14to be applied to all
16:16these three or more than one globe.
16:18First of all, I will select them here.
16:20After that, I will press the Shift button
16:22and select the object whose material
16:24I want to use here.
16:26Now I have to press a button here
16:28with Ctrl L.
16:30And here I will get an option
16:32Link Materials.
16:34As soon as I click on it, you will see
16:36that all the objects I have selected
16:38here, this material will be applied to all of them.
16:40Keep in mind that this object
16:42is my main object.
16:44And if any color in any material
16:46changes, then automatically
16:48this color will change in all materials.
16:50Let me show you this too.
16:52If I want to change the color
16:54of the glass here,
16:56then from here, whenever I change the color
16:58here, it will automatically change
17:00in all here in this way.
17:02So this is a very good way.
17:04Automatically, this material will be updated
17:06in all things here.
17:08It will be automatically updated in all.
17:10For now, I will press Ctrl Z.
17:12And I will come back to my view.
17:14And all the other spheres
17:16I have here, I will select all of them
17:18from the Outliner with Shift
17:20and delete them.
17:22And from Zero button, I will come
17:24to my old material here.
17:26If you want to use this material
17:28in any other file, then
17:30you can use it very easily here
17:32with the help of Acid Browser.
17:34This option is to go to Acid Browser.
17:36Here you will get this option
17:38of Acid Browser.
17:40You have to select it here.
17:42As soon as the file of Acid Browser
17:44comes here, all the materials
17:46in it will be visible here.
17:48And now if you want to use
17:50material in this, then simply
17:52you have to click on this
17:54plus button here.
17:56And here you will
17:58get a new tab.
18:00Here I put All Materials.
18:02If I want to make more categories
18:04like different materials
18:06of wood, metal,
18:08then I can make a category here.
18:10To delete, I can select
18:12Delete Catalog on right click.
18:14For now, I will click on All
18:16and if I want to save my material,
18:18then you can go from anywhere
18:20or you can go from here.
18:22You can right click and mark
18:24or you can mark from your globe
18:26or you can right click
18:28and mark from your node.
18:30As soon as you mark it,
18:32your material will be created.
18:34You can use this material
18:36in any other file.
18:38Keep in mind, in different modes,
18:40if you see here, I have worked
18:42in two different modes.
18:44Here my setting is Lighting.
18:46And here is my
18:48material setting.
18:50If you want to use both of them,
18:52then you have to save
18:54both of them here.
18:56I have added material here.
18:58If I want to use lighting,
19:00then I can right click here
19:02and click on Mark As Asset.
19:04If I want to change its name,
19:06then you can change its name here.
19:08Lighting
19:10or Environment Light,
19:12it will automatically change here.
19:14If you want to use this material
19:16in any other file,
19:18then first of all,
19:20we will open another file.
19:22I want to add this cube
19:24in this material.
19:26Here I have to open
19:28Asset Browser.
19:30You will get Asset Browser option here.
19:32If you select here,
19:34you will get Asset Browser.
19:36First of all, you have to give a path
19:38where you want to use
19:40your material.
19:42Here you have to go to References.
19:44You will see a plus button here.
19:46If you click on this plus button,
19:48it will ask you where is the file
19:50in your system in which you have saved the material.
19:52Here I have
19:54copied and pasted the path
19:56in Asset Browser.
19:58After setting this path,
20:00you have to click on Add Asset Library.
20:02This path will be set here.
20:04In this folder,
20:06all the files that we have
20:08used in Asset Browser,
20:10all the things that we have
20:12put in Asset Browser,
20:14will come here.
20:16I have not saved this file yet,
20:18so I don't have any option for it.
20:20First of all, I will save
20:22the file in which I have made this material.
20:24For that, I will press CTRL-S.
20:26I will give the name of this file
20:28as Globe.
20:30I have saved this file as Globe.
20:32As soon as I save this file,
20:34I will press CTRL-S once again.
20:36In this path,
20:38there can be more folders in this folder.
20:40In this folder,
20:42there is a folder named Blender.
20:44In this folder,
20:46my file is stored.
20:48We have to check this.
20:50First of all, we have given the path
20:52in this folder.
20:54All the folders in this folder will come here.
20:56As you can see,
20:58I have only one folder named Blender file.
21:00The second folder that you can see here,
21:02is because of my second path.
21:04The path above was saved here.
21:06That's why the file at the bottom
21:08is my folder.
21:10As soon as I select it,
21:12you will see that my material
21:14has come here.
21:16Now I just have to drag and drop the material
21:18and it will be applied here.
21:20I will turn on the rendering option
21:22to show you.
21:24First of all, let's come to lighting.
21:26If I want to use lighting,
21:28I will drag and drop it here.
21:30As you can see,
21:32the path of the environment light
21:34has come here automatically.
21:36If you go to the shading editor,
21:38you will see that
21:40the lighting was in void.
21:42As you can see,
21:44the node has come here.
21:46If we want to use material,
21:48we will drag and drop it here.
21:50The material will be applied here.
21:52But not all the settings
21:54come here.
21:56You will have to turn on the settings
21:58that you have turned on the rendering.
22:00Only then it will work here.
22:02For example, I will show you
22:04a UV sphere in it.
22:06Right now, this UV sphere
22:08is not visible in it.
22:10Why? Because its refraction
22:12part is not visible here.
22:14So here I just have to turn on one thing
22:16whose name is
22:18Screen Space Refraction
22:20and tick it.
22:22As soon as I tick it,
22:24you will see that transparency will start in it.
22:26And whatever I have applied here
22:28has been applied here.
22:30In this way, you can take any material
22:32from one file and use it
22:34in the other file.
22:36You can save and use
22:38whatever you want here.
22:40For now, I will close this file.
22:42Now we are back
22:44to our file.
22:46Now I will click on 3D viewport
22:48so that my object comes here.
22:50So in this way, there are many things
22:52that you have seen
22:54how we make the image transparent
22:56how we use color in the background
22:58how we use our material in
23:00any other object.
23:02So this was our glass.
23:04Now let's move to our next topic
23:06and see that if we want to
23:08make a glass mirror,
23:10then what we have to do here.
23:12Apart from the mirror, there are many
23:14interesting things that I will
23:16tell you in the next video.
23:18And all these things are going to be
23:20very useful to you, which I will
23:22practically show you by making a project.
23:24After the next video, we will bring
23:26a video of cartoon audio recording
23:28which is getting a lot of demand.
23:30So see you in the next video.
23:32Till then goodbye.
23:34If you like this video,
23:36please like,
23:38share and subscribe.