Advanced Godot | Compiling Godot 4.0 From Source

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys this is mitch with findpoint cgi and today i'm going to talk about how to compile godot from source now why would you want to do that well compiling godot from source allows you to make modifications to the game engine itself and it allows you to go ahead and check out what some of the new features that are going to be coming in the new versions of godot for instance in this case we'll be compiling godot 4.0 so we'll be able to take a look at the new vulcan renderer and the new skybox system and things like that and you know we get to go ahead and check it all out before it gets released so that way we can make decisions on if we want to upgrade to the newest version of godot with our games so that's what i have in store for you and we'll go ahead and get started all right so i am sitting here at the godot game engine github here and you can do one of two things if you want to start compiling your uh godot game engine what you can do is you can either click the co the code button and then download a zip or you can go ahead and use get uh get to go ahead and clone this so what i'm gonna do is i'm gonna do that route if you don't have get you can pull it down by opening up a a link to google and then going to get and it's g i t not g e t and then go ahead and just download it and install it from there now once you do that you can go ahead and now once you do that you can go ahead and uh open up your windows prompt your windows start menu and hit get bash and what will happen is it'll pull up this little box here we're going to go cd documents and then get and then what we're gonna do is we will do get clone and then we already since we copied this right so we copied this so we're gonna go ahead and paste that and then you will see it's going to go ahead and pull all this down so let's go ahead and let it do that okay so now that it is downloaded you'll see here that it's done we can actually go and navigate and here's my navigation to that uh project so you can see here this is the actual source code of godot so if we type in cmd up here and then that'll bring up a command prompt and i'm gonna go ahead and do code dot which will open up visual studio code let's go ahead and maximize this to what you guys can see again i have a ultra wide screen so i don't record with the entire screen but you can see here you can actually look at all the different parts of godot so if i want to look at how like the bullet physics engine operated i could actually look at this and read a lot of that c plus that puts this all together which is very exciting [Music] so now what we need to do is we need to compile godot so godot uses this thing called s cons to build and i will bring up a web browser to kind of show that off real quick s cons is a software construction tool so why would you know what is it and and what makes it good well it's an older uh system from what i understand granted my knowledge of this is is limited so if anybody wants to correct me in the uh description you know if you anybody wants to correct me in the comments you're welcome to but from what i understand s cons is a software construction tool that basically compiles and cross-compiles a bunch of different um a bunch of different platforms including mobile web consoles things like that it allows you to compile a bunch of different platforms at the same time and it is extremely robust and extremely uh easy to use so first what we need to do is we need to download it so let's click on the downloads button over here and then click on s cons now you're going to see that this will start shortly and we will save so once it's done downloading go ahead and extract it and i already have it extracted here what we're going to do is we will copy ctrl c all of this and then we will go ahead and go to our documents github godot and then we will go ahead and paste that all right so now we're gonna do cmd again and that'll bring up a command prompt here and then what we're gonna go ahead and do is we will type in s-c-o-n-s and depending on what platform you want if you just type plat form equals list you'll notice that it says you do not have python in your path what does that mean well it means that you probably don't have python installed so let's see what that does you can see here when i type python microsoft store says hey yo you don't have python installed so let's go ahead and do that so we're going to google search for python we're going to click on here we'll go to downloads and we will download for windows all right so once you have it downloaded we'll go ahead and open up our downloads folder and you'll see here that i have python so double click on that and you'll see there's install python make sure you click on this section here add python 3.9 to path if you don't do that this won't work and then install it all right now that it is installed we'll go ahead and close it and then we'll reopen our command prompt that we had earlier and if i well this is the right one i have multiple command prompts open all right so if i go ahead and type in python you'll notice once again it doesn't do anything now why is that well the reason why is because you need to reopen your command prompt for windows to to re-detect your python path so if we go in here we do the same thing open up command prompt and we type in python you'll notice that now it says we have python 3.91 and do a copyright and whatnot so if we hit type exit or control z it looks like i guess control z doesn't work things lying to me all right so now if we type s-c-o-n-s platform equal list what that's going to do is it's going to read the files so you can see which following platforms are available now you can see in my case windows is available because i'm running windows so what we'll do is we'll just type scons enter and now it's going to go ahead and compile godot now this is going to take a very long time if i remember correctly when i was doing it took around 30 minutes for me to compile godot on my laptop now this is my desktop so it'll probably be a little bit quicker but just note that it's going to take a while so i'm going to go ahead and pause the video here and i'll jump to when it's completed because it's going to take a minute okay you'll see after about 30 minutes you'll see that this has compiled now if you are still having issues with compiling like you're getting compiling errors saying that these link libraries are not available for instance i got that earlier up here and i'll show you uh right here third-party vulcan loader error um you know this factory's undeclared identifier what you need to do is you need to download visual studio and execute the installer so if you just open up a new tab type visual studio [Music] and we go to the microsoft one and you just go ahead and download visual studio community you'll see it'll pop up double click on the installer and it will pop up with the visual studio installer here and you can go ahead and just install the community edition now when you do that and you install the community edition make sure and if i go into modify here or if you have visual studio installed make sure that you click on your modify and when it comes up with this screen up here where it tells you to pick your components make sure you pick desktop development with c plus plus and then scroll down and get um i got mobile development with c plus plus just because i wanted it and game development with c plus plus these will have all of the libraries that you have to have to compile godot so just make sure you at least pull down game development and desktop development but i did uh mobile development just because i felt like it would be useful so once you have it compiled you'll have this bin folder here so we'll double click on that and you'll see that there's a godot tools 64. that is actually godot so if we double click on that you will see [Music] as soon as it loads that godot 4.0 is now on your machine so you can go ahead and and create a new project let's call it demo [Music] raj and we will create that folder create an edit and i'm going to resize real quick because like i said i record on a 2k ultra wide so it's a little on the larger side for you guys but so now you'll see here is good oh very exciting um so here you can start investigating all the cool new features that godot you know offers things like the new vulcan rendering engine you know subsurface i believe it has volumetric fogs um it has a new ssao system i mean a lot of 3d stuff so um and i've been paying more attention to 3d stuff than the 2d stuff but you know if we click on the uh node 3d and we add a child node and type in mesh we can add in a mesh instance here and we will make it into a plane here and then we can scale this up and you'll see that it's all really dark in here and the reason why is because now with the way that godot operates is you need an environment so i'll add in a world environment and we will add in an actual environment itself and you'll see now suddenly it becomes gray and will add a camera effect as well this is another new feature inside of godot which is very exciting now if we right click this node 3d add in a mesh it's going to say a box mesh and then add in a box mesh we'll pull this up and then we're going to right click and add in a light as well now again these are all things that you can just kind of play around with as you run through godot but i'm just going to show you just a very basic you know lit scene something simple that you can kind of see you know the cool things that godot can do i release the cool things that the new godot can do i should say so if i put this somewhere like that see it's kind of like more of like a mid-afternoon kind of time frame and if i go to the world environment you can actually come in here and add in stuff like ambient occlusion ambient light so you can actually add in some ambient light to this at least allegedly looks like you can't right now or at least i don't quite know how so i'm gonna need to investigate it oh i see so you have to do ambient light like a sky oh okay [Music] that makes some sense okay um and you could do stuff like you know reflected light and have light being reflected from the sky or from the background you can adjust your tonal map to be like aces or filmatic filmatic is supposedly a more accurate version of a lighting system auto exposure so auto exposure will make it more like you know if you're in a dark area versus a light area what the exposure is going to look like so they've really done a lot when it comes to whoa looks like this one's broken um so i'll have to look at that later but adding in things like ssao so you can see where um ssao would add in some let's see if i up the intensity i wonder if it's the ambient light causing the issues yeah um so you can add in stuff like little ao coming because it's because it's you know grounded to the ground so you can see how it's got that little darkness added to help ground it to reality and you can do stuff like sd fgi which is kind of like a new gi i think it's an older gi system i'd have to read more about about you know some of the new things in godot but they've done a lot of really cool like volumetric fog and stuff like that to help with making things oh it's chugging my machine though but it's to help make things look nicer and then i could do stuff like depth of field blur so you can see depth of field which makes things just look in general you know more realistic if you're into that kind of thing you know if you're into depth of field so that's really exciting um [Music] you know so that's how you can see some of the new you know fancy things that godot has is by downloading and compiling this yourself now i do plan on doing about once a month kind of a month in review of where godot 4.0 is um since the last you know previous month so go ahead and look forward to that but so that's all i have for you guys today we talked about downloading visual studio we talked about compiling c plus plus a little bit we talked about using s cons building tool using um get to pull down the new well it's not really new but the the godot repository we talked about compiling it and installing all those different things and finally i showed you the final product which is the godot 4.0 game engine with vulcan so if you like this video go ahead and hit that dislike button if you dislike this video go go ahead and hit that dislike button because i'm here to make content for you guys if you guys have any suggestions go ahead and throw them in the comments below um and i'll be more than happy to get back to you guys thank you so much again for watching and i'll see you all next time [Music] thanks [Music] you
Info
Channel: FinePointCGI
Views: 3,537
Rating: undefined out of 5
Keywords: godot, godot engine, godot game engine, godot tutorial, open source, godot 3.1, godot 3, godot 4.0, godot 3.2, godot open source, godot 3 course update, godot anti aliasing 3d, godot devlog, godot quest tutorial, godot engine translation, godot language, godot explained, Advanced Godot | Compiling Godot 4.0 From Source
Id: zu3j89GkDwE
Channel Id: undefined
Length: 16min 49sec (1009 seconds)
Published: Mon Feb 01 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.