Unreal Engine 5 Beginner Tutorial Part 19: Render Setting & Console Commands

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
by the end of this video you will have learned how to use the rendering settings in onne engine 5 Master it so that you can render both in Lumen and path racing so that you can come up with images that look like this or this and also that was just Lumen you can even do path tracing so let's get started what is up beautiful people you guys did it this is the final episode of Unreal Engine tutorial series Paras great job great job to you guys who made it all the way till here we are going to talk about render settings this is like going to war imagine if you were in war you would have your comrades everyone's happy in the beginning and then by the end of the war half of them are dead and you have only a few buddies left and that is the viewers watching right now literally the guys who have survived have survived the war but seriously the fact that you guys are here means you guys are serious about this and that means a lot to us so thank you for watching and supporting the tutorial series up until this moment just want to ask you guys for one favor please if you liked it so far make sure you subscribe if you haven't already and also share it with your friends yes this is the only way to support us because we provide this for you guys for free absolutely free so what are we going to do right now let's go render the two scenes that we just created absolutely so in order to render there's a couple of things that we'd like to do before we go ahead and do the final stage of rendering and I want to show you guys all of that so that you guys have learned every single thing that we do in in order to get our renders to look beautiful so the very first thing is if you remember we have used two console commands during the entire project right and those two were used for the ugly Shadows that were caused by the nanite fallback mesh and also the fact that we had Ray tracing culling when we went too far away from the characters right now these are fixed but every single time you open up your project you have to reset them and fix them again there's a way to fix that and we want to show you guys that so it's easier for you across the board in order to do that we're going to go to window and then there's this option called console variables if you click that you can see the two console variables that we have changed and adjusted right and their values are updated you can go ahead and save these as a preset so we're going to do that right now save preset as maybe you can open up a new folder for them call them console variables and then call it stars yes Star Wars whatever and then now I'm going to close this every single time I open the project again I don't have to go Ahad and manually place them in the console command section at the bottom I can just go ahead to my console variables and load this up and it is going to be available for me to use and it's just going to work like that right simple all of them are going to be enabled at one go so this is just a way to make your scene building much quicker before you go ahead and finalize everything usually we like to do this in the beginning of the project as well now the next tip I want to give you guys it has to do with lighting we didn't talk about this earlier on and we probably won't see the difference right now but it comes really handy in a lot of different projects lighting itself like each light itself has a quality and we can see the quality by hitting on any of our light sources and then searching in a details panel for samples so samples per pixel is what we're looking for currently it's at one by default it's at one but then you can go ahead and increase the samples per pixel for each light now mind you this is going to hit your performance is this the setup for when the light is f flickering during a render yes so one time when we were working on a project with metahumans the digital avatars the Shadows were not perfect and also we had some light flickering in the background we can't say the word flickering for some today but in order to fix that all we had to do was increase the samples of the lights and if you actually go to some of the epic games own sample projects which is what we told you guys in the very beginning of this tutorial series and you go ahead and click on some of the lights in the scene you'll realize that they've changed some of the samples to three sometimes to four sometimes to five and that helps increase the quality of the light and the Shadows this comes in very handy so make sure you play with these values you might not see the difference here but in some other scenes you might see a drastic change so that's another tip for you now the final tip before we go ahead and actually start rendering is we told you guys in the last chapter but per shot we recommend you to go ahead and change your lighting so that you can create really cool effects for instance let's go to our second camera okay we can go here and as you see everything is really white right so we can go ahead and say okay you know what for this shot specifically okay I want to go ahead and drop in a rectangular light in the front and I want to turn this to the color red all right so that I have some nice red shining towards my Stormtroopers now this might look really bad right now because I'm really not spending a lot of time on this I'm going to make this a bit wider okay let's just go into our cameras and see what this looks like okay all right I'm going to increase this value you see that so it's just a little change right I'm going to make this maybe 500 it might be because when the door of the spaceship is opening right there are red lights there that you want to place later so now when this shot happens you'll see the red light shine on them and that could be accompanied by the sound effect of the door opening so before you even switch to the other shot you'll see the red light and then you hear that get it that was a good sound of that a good sound effect thank you so that's why we recommend you change a light and see how cool it looks okay we're not going to do that right now this was just a sample for you to see now we are going to go straight into rendering so our very first question question in the last chapter was what is the camera cut track at the top that automatically appears when we bring in a new camera now that is basically saying that I want you from frame zero to frame whatever that is 550 focus on the first camera C camera actor you're not rendering anything from the second camera or any other camera that might be in the scene so how do we go ahead and fix that let's say we want to go ahead and render this one shot but I want all the cameras to change depending on whichever frame it is and so is that the plus button there absolutely so there's a plus button right here and one thing that you can do to check it by the way and make sure you're seeing it through the camera cut is if I go to my main camera my first camera and I scrub through this is what I have if I go to my second camera and I scrub through this is my shot and then I can go to my camera cut which is exactly what is going to be rendered right this is exactly what we're going to see when we hit render we only have the camera so the camera cut at this moment equal to cam C camera number one absolutely okay now how can you change it halfway to go to C camera number two very good question so we're going to go ahead and use this add button and we're going to say okay I want you to go ahead and add the cine camera actor 2 and wherever my marker was it's going to change so now if you look closely at the top left here and I can just hover over it it says from frame 124 to 548 for 424 frames we have the second camera and then check check this out I'll go all the way back again make sure you are locked into this icon right here for the camera cut this is precisely what you will render out so you go from zero scrub through look at what happens Boom o you made that switch can we drag and extend the our first camera yes you can do that you can do that and you can basically bring in a 100 different cameras and switch them at every single frame that's up to you you just have to make sure to add them here now the reason why this is so important because for beginners you they'll add all these cameras and then they'll render they realize they only have one camera in the render they forget that they have to change this right here and what's really neat about locking yourself to the camera cut when you come up here you cannot move your camera so I'm trying to move because it's locked with both cameras now it doesn't allow you to move the cameras now I'm going to give you another tip at the end here if I go to my first camera right here and I'll try to move it look at what happens I can't actually move it which is not good I'm already done with my render I want to lock my cameras even if I'm not locked into the camera cut track how do I do it well you're going to go to your cameras any camera that you want to lock once you're done with the positioning right click and then edit okay it's not there I'm going to go out of it let me try again right click okay doesn't work cuz right now we want to lock our camera and it doesn't lock and this actually happens we wanted to go and erase this part but you're going to face the same freaking problem for some reason sometimes you want to lock your camera there are supposed to be more options when you right click on it and it's not there my only solution to this is restart your project so let's go ahead and do that we are back in the engine going to the level load the sequencer let's see okay so we're back in the sequencer all right now I'm going to go to my cameras and check this out right click and now I have all these options so I'm going to go to transform and then lock actor movement I'll do the same thing for my second camera transform lock actor move and right now even if I'm not inside this camera cut track I can go to my camera too and I'm trying to right click I cannot move the camera anymore which is perfect cuz sometimes you might mess up your camera angles and it's the worst thing ever so we're going to go back to camera cut track we've got the perfect shot this shot and then we want to switch to this guy maybe I'll just extend this a little bit more and I think 300 frame is enough we don't need all the way okay so you can either go ahead and say I'm want to close this at 300 frames here or you can Define the range in the render settings so now we know this way let's just show you the way that happens within the render engine one final thing I'd like to mention here before we go to actually rendering right now we're rendering at 30 frames per second you can Chang this again in the render setting but for you to understand it's all the way up here uh you have options for all of these different frames you got 12 FPS all the way up to 240 or your own custom FPS another option I really like is down here Showtime as so right now we're seeing everything in frames let's say you're working on a music video and you want to see actual seconds you can just change the showtime as 2 seconds and you'll see right now it's sorry contrl Z it's switched to 0 seconds 4 these are actual seconds right and if you change the FPS you can see that it still keeps everything the same for you to make it simpler we were on 30 right now so we're going to go back to 30 and then Showtime as frames cool so now it's time to render baby let's do it okay so we're going to go to this button right here this is what you're looking for okay everything's not saved yet so let's go ahe and save before we go to render and then we're going to go to this button and hit it we're going to be presented with the movie render queue so don't be intimidated by the number of options you've got here what you're trying to look for is the settings right here so the way you can actually change a render settings is here it says unsaved config that's what you want to go ahead and press when you do you have to make sure you get familiar with this menu right here this is going to be your wife your girlfriend your boyfriend your husband whatever it is you're going to be marrying this guy right here okay you're going to be rendering part that you need yeah this is the most important part right so what happens exactly in this section on the left side we're looking at different options we can control the number of different options that we have and there's so many different things we can choose from and each of these will have their settings on the right side as soon as we click on them so as you can see right now on the export section we are exporting in jpeg which sucks you can only do this if you're testing your renders then we got the rendering which is deferred rendering which is basically saying render in Lumen the current render that we have which is basically going to be your rendering setting for the majority of your projects unless you go for path racing which we will show you also in a moment and then you've got your output okay let's start with the output because this is the one that is going to be common across all projects this is basically saying where do you want to save your project so let's go a and do that first I'm going to go to this output directory hit this three buttons go to my desktop CU I've already prepared a folder go to renders and go to Lumen that's the first render that we're doing right yes okay so Lumen select folder now for the name okay what I always like to do is keep my frame number so this is a code it says you go for sequence name which is right now what is our sequencer name Spaceship Spaceship door open open we don't want that we just change it to maybe St and then 001 002 003 so everything before this dot we're going to change to St okay and then it's giving us all these options do we want to change it to shot name blah blah blah no just keep it SD do frame number so sd1 sd2 sd3 makes sense and then I'm just going to go back here so that that drop down goes away the next thing is output resolution so it's on 2K yeah it's on full HD by default right now we want to change it to 4K 4K so you can do this very easily by just taking this value and then multiply so using using the asteris by two okay and then here I'm going to multiply it by two as well and that's how you turn your resolution to 4K you can go to 1920 1080 again if you're testing things if your computer is not strong enough we pretty much always go for 4K for our final renders and then as you can see we have 30 FPS that's our frames per second you can keep that right now or you can go ahead and overwrite that value by clicking this and then changing it here okay so it works the same way it's just overwriting it in case you want to do that I don't want to do that I want to keep it at 30 now this is what F was talking about when he said can we pull the frames from 540 that's too much so how can we do that we're going to use custom playback range farad what is the frame that you're to 300 0 to 300 okay so we have the frame start custom start frame at Zero Custom end frame at 300 300 cool so all of this should be pretty simple your directory where do you want to save what's a name what's the resolution frame rate and your custom frame range you can uncheck this if you've already selected the right frame range in the beginning and now it's time to change the settings V you ready I don't like jpeg I don't like JP either so we we're going to kick it out we can actually go ahead and delete this using backspace and then in the top settings here just like our ad track it's the same thing we have all these options so for the settings we have these options for the exports we have these options and for the renders we have these so for these settings you're going to be using a bunch of these settings actually for your final renders and for the exports I think this is the simplest One to begin with what format do you want to export in P we just deleted jpeg which is 8bit and PNG is of course a little bit higher quality so usually for our renders that we upload on social media we go for PNG but if you talk to any professional artist they usually would like to go for exr which is right here it's 16bit your color information and the quality of your images will just be so much higher and also you have a lot more control when you're doing post-processing in softwares like d Vinci resolve so first I'll just show you PNG really quickly this is how you add PNG right Alpha says do you want transparency layer or not we technically don't want it we don't have any transparency so we turn it off and you can also go ahead and say hey bring in exr as well okay 16 bit so it will render both at the same time it will render both so I recommend for Simplicity for us we'll turn off exr at first because we want to do PNG first so we can just turn it off you don't have to delete it and we have PNG right now okay so we're rendering PNG now we're rendering Lumen and we know our output then the next setting that you're going to find really useful is console variables this guy right here is exactly the same thing at the bottom left right and we told you guys something in the beginning do you remember F what we said the presets absolutely so you can actually go ahead and create your presets and call them here so if you want to already bring a preset that you've created throughout your project you can just say hey console variable presets add this open this up I already have one called Star Wars load that bad boy in drop it down I know what those are okay amazing so you can actually go ahead and say you'll have two presets one for during your work where you want lower quality and you can create one super high quality you have like everything on ultra settings and then you call that only for rendering so your computer can really take its time to render so now we have our console variable preset from before right here and we can go ahead and add more to this by using this drop down and what I usually like to add is just one single console command which is called r. screen percentage now what does this do well this basically actually works in your viewport as well if you go to the top left right here the three bars you'll look for screen percentage and you'll notice that right now we're at a current screen percentage of 57% and that is this exact resolution Although our screen resolution my monitor is 4K so we're rendering at a lower resolution but Unreal Engine uses anti-aliasing technology which is also using games to make it look sharp ER so that we can run with higher frame rate now I can go ahead and make this a different number by using custom override I can take this to let's say 95 or even 100 but my FPS is definitely going to take a hit which is not good but for render time you can increase it absolutely and what will that do exactly so let's go and set this back to normal let's go back to our render settings let's go back here now screen percentage of zero is actually really low we don't want that 100 will be the normal display but we usually like to bump this up to 125 150 right anything more will probably make your computer crash basically this says I want you to go larger than my screen display and then keep the same resolution scale it down at the output what that does it it keeps the resolution the same but it makes your image sharper so it's it's it's very good to have a Sharper Image this is the best simple setup for a lumen render right you can go crazier with this but really for beginners this is perfect so shall we render click accept click accept and then render local render local if you have servers that you're rendering on which you probably don't as a beginner that's what you're going to go for we never done that we're going to go render local and let's see the magic so very quickly talking about everything that you're seeing here you're going to see a lowquality render preview of what you're going to see as the output so if you see any mistakes here usually you want to stop your render by hitting the escape button and on the left side you're looking at the total frames and the number of frames and also the time remaining for your renders we haven't started anything yet it's going to take some time but on the right side you're also going to see the actual frames plus the camera cut track so right now we're on the first camera there's two of them of course and you'll see the switch happen as well so fire how long do we have remaining for this render 12 minutes only now 10 now 9 now 8 s I'm going to fast forward this until we get to the end of this no I want to go to the next camera cut track so we'll see you in the next camera cut track okay all right I want to bring you guys back just so you see how freaking fast this is this is the reason why you're using Onre Engine 5 now the camera cut changed actually yes it changed the second one right and we're just going to have a quick pause and it's going to switch and guys if you were coming here from blender 4D you'll notice basically how fast this render is this is why people switch to Unreal Engine 5 because when we actually go ahead and switch to the path racing render after this which is similar to to the other 3D softwares you'll notice small differences the Lumen render is really close to the path racing renderer so we done let's check the render okay so we're going to go to the folder and I have installed this software called djv really recommend it to you guys basically you can view image sequences inside your windows by right clicking and dragging we can see what our render looks [Music] like dude look at this oh this is so good wow honestly I don't think if your PC cannot handle path racing this is more than good enough yes yeah perfect so this was your Lumen render rendered in about 4 minutes which is so freaking fast we have an RTX 4090 so we understand but still it's very fast hold up did you know that you can use photogrametry to create highly photo realistic scenes by taking what exists in the real world into 3D we've been using polyam to do exactly that using our phone and drone that's right and shout out to them for sponsoring this video giving you guys 30% off their promo plan the promo code is bad no 30% off their plan not the promo plan they don't have a promo plan 30% off their plan plan Pro Plan use the code bad decisions in the link in the description let's continue and right now we're going to go to path racer yes go to the setting again okay as you mentioned we're going to turn off deferred rendering yes cuz that's the Lumen rendering right now yes you're going to add the setting for path Tracer all the way down here yes perfect so for the path racing if you want motion blur you can go ahead and read this sometimes I like to leave this on sometimes off for this time around we're going to leave it on it really depends on your scene so make sure you do some test renders and check it out turn this on do we want to change the number of frames because I don't think we want to render 300 frames no path racing takes a lot longer so we're going to go to the output frame maybe let's just start at frame 200 and then go to 203 question if I want to render a single image I'll just put one single frame right like 200 and 2011 absolutely amazing yes 203 and that's great so the thing about the path racing render that you have to understand is that it works with samples so this is the difference if you remember our postprocess volume chapter we had a path racing setting on the right here and I have it you know on the screen so that you'll see what I'm talking about if I switch to the path tracing mode in my viewport you'll notice that we're running at 200 samples so the less bright your scene is the darker your scene the more samples you're going to need because in the darker areas just like in real life with cameras you're going to have a lot of noise but the brighter your scen is you can use less samples now if you have a lot of metallic and shiny surfaces that are even noisy in Lumen renders then you know that in your path racing you have to render with High samples now I don't know the perfect number for your scene but usually for a final render you want to go somewhere above a th000 samples and that really depends on you and your GPU but 1,000 samples takes a while to render per frame where do we set that up so in viewport this is where you change the settings so if I change it to one look at how noisy my image is e right this renders fast but it's very noisy but if I set it to 500 right you can sort of see okay I'm going to let my screen go I'm not going to touch anything so the loading bar finishes the reason why you can control this in the viewport is so that you can understand how many samples you need to get a pretty decent photo photo but I by photo I mean picture without any noise this is without any noise at this moment so actually I do see some noise on the top left and that noise is going to change per image which is not good so I assume for us we're going to need somewhere about a th000 samples for a really clean image these numbers here don't actually impact your render you need to change them using the anti-aliasing setting so we're going to go to unsafe config we're going to keep all the settings the same but we're going to go to settings and we're going to go to anti-aliasing now for anti-aliasing this is already working in your viewport you already have something called I believe super resolution so in your settings project settings anti-aliasing what we're running in the viewport is temporal super resolution which is why we have the 57% screen percentage but it looks as if it's 100 it's using TSR for your final render you want to go ahead and override the anti-aliasing and turn it to none that is I've done extensive research on this it has to be this specific setting now for your samples it's basically your spatial sample count multiplied by your temporal sample count so these two numbers together will make up the total sample per pixel so fire if you want to go to a th what number do we want to put maybe 30 * 30 they I believe they have 32 * 32 yeah I believe they have to go to the power of two something like this so like two or they have to go to 8 16 something like that so 32 32 what will that be 900 something okay so if we go to 3232 we'll see the total sample count when we're hitting render so no worries let's just try with that okay so I also like to go ahead and disable the screen percentage when it comes to path racing because it really increases the render time all right this seems to be the one we want to go for let's go to accept and hit render local and we're going to actually see how many samples it's going to be at the bottom right in a moment so that's 1,24 samples which is perfect let's see how long this will take we're going to fast forward this fire is this still rendering yeah path tracing oh s still rendering dude your Beard's grown already since we started the render you have more white hairs oh my God and we're only at half of the samples of the first frame of the first frame what what did you put as a setup we were already done with the Lumen render for like 300 400 frames so this is why you do not do the path racing render just kidding path racing renders are really great but you just have to have the patience and the right GPU I think we'll just render one frame our path said render is already let's go done after 5 years let's take a look boom oh wow but guys honestly there's almost no difference between the path racing render and the Lumen render we're going to Overlay both so you can take a look so if you don't have a b computer you can still go with Lumen and you will be fine f I think it's time guys congratulations you guys finished the Unreal Engine beginner tutorial series you are a pro now yes and you started just a few weeks ago or maybe just a few days ago depending on how long it took you to complete this tutorial series you started as a complete beginner someone who had no knowledge or little knowledge of unre LED but now you know so much so the fact that you made it until this point makes you a freaking Pro and you deserve a round of applause
Info
Channel: Bad Decisions Studio
Views: 23,711
Rating: undefined out of 5
Keywords: unrealengine, unreal engine 5, unreal engine, ue, ue5, Unreal Engine Tutorial, Unreal engine for beginners
Id: lhGweZQIQ6s
Channel Id: undefined
Length: 28min 2sec (1682 seconds)
Published: Sat Mar 16 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.