What is kicking guys it’s Josh with the prof productions back in Unreal Engine 4 with the second minecraft style tutorial and we’re gonna start creating our terrain today we’re gonna do some blocks put them together we’re gonna make one blueprint and put it all in the construction script and have it set up Here to where you can toy with the size of a nonsense so let’s right-click blueprint class actor as always and not my name MC you know I’m talking about because because MC stands for Minecraft because I’m the real MC double-click on it move it over here to our second Window because you know how we do know how to component it needs to be a block right just a cube or just gonna use cubes but the thing is we usually use static mesh you could enter static mesh we’re instead I want you to type in the word instance and you’re gonna see Instanced static mesh no guys that’s gonna be a lot easier on the resources okay a lot easier so that’s exactly what we’re gonna use it and the thing is you’re not gonna see the block come up after we add it if I go here and I actually look for shape cube and that’s I just usually type in the word shape and then if you scroll through here do you see Cube boom there it is you won’t see anything now a white materials find the material is not important this time because we’re just talking about how the way the the way the terrain generates Okay but if you go back here we did create our minecraft tutorial or minecraft material in the first tutorial feel free to go back and watch the the tutorial guys and check it out it’s not very hard but we did put it together just using stuff out of the starter Content but for now we need to jump right into it so I’m gonna grab this minecraft material we created and our last tutorial and I’m gonna drag it over top that bad baby and we’re done now the thing is you don’t have anything because it’s an instance so we actually have to Add them in the construction script or the event graft before though even be there so it’s actually it’s a lot easier on resources let’s jump into the construction script and get started now the thing is we’re gonna need a couple variables okay so let’s add one and Let’s make it an integer because we need a couple numbers and I need a couple numbers because we need to decide the length and the width of our terrain so that’s exactly what we’re gonna name I’m gonna name the first one length I’m gonna go do another variable and since I Changed that one to it integer it knows to make that one an integer – oh God width right we got width here okay and I would need to go ahead and create one more okay and I’m gonna name it tile size now you’re thinking what’s going on There and basically what’s going on is I know but and you probably do too that the Unreal cube is 100 by 100 and what’s really cool is if you go to the cube itself I’m here the can the viewport here and I go to my block go to my block here and you You grab his beverage yeah just I do this it kind of finds it in the in the in the you click the magnifying glass cinch over here you can see the dimensions over there it’s 100 by 100 I don’t know if you can see that while I’m Recording but it is 100 by 100 by 100 and that is very important because that’s going to be our tile size that way they create themselves a hundred units away from the last one let me go ahead and show you we’re gonna grab these three eyeballs okay and I want you To type in for loop okay that’s what we’re gonna get right there now the for loop is very simple it’s going to send out as many of these as we ask first index I’m gonna set it to one and then how many do we want to do basically one Two how many well we’re gonna set this to length so we’re going to decide how many we want to print out you know I’m talking about okay you see what I’m doing there another thing is we need another for loop okay do the exact same thanks ctrl-c ctrl-v plug it is bad baby In one two width uh-huh you see what I’m doing there we’re gonna have width and length and decide how long or wide each one is you know I’m talking about now the end all of this is if we grab the block bring it in here and if you literally just drag a Line and type in add instance you’ll see add instance right here that’s that’s that’s the overall goal here okay the overall goal is right there but the thing is we got a little bit of work to do okay we need to we need to transform you to location we’re gonna base this Location off of this now what’s cool is we could do a make transform right now but watch this just type in make vector since that’s literally the only thing we’re gonna be messing with is the vector up I gotta find the letter M guys You got to find that letter M and if you can’t find the letter M you’re in big trouble now what’s cool about this make vector is once we create it we can just plug it into this and it’ll convert you like that you see what it did that’s pretty sweet But we need to create our vector on the x and y only because we’re not worried about the Z right now based off of these two bad babies well now this is where we’re gonna take the index which is this is 1/2 length and we’re going to Multiply so if you find the x which is actually a shift 8 you’ll see integer times integer and we’re gonna multiply that by what our tile size and you’re thinking uh what now the thing is we’re literally just taking this and multiplying it whatever number this now It’s probably gonna be a hundred but we’re gonna set it outside just to be safe you know we need to do that again guys drag it out we just control-c control-v this bad baby plug tile size into the bottom of this one okay plug the though the 1/2 width index in The bottom of this one and boom okay now we can set some notes or whatever you could you could draw a low boxes around whatever this is our length and this is our width and it’s x tile size okay now here’s the thing it needs to go in here Right you’re like okay well I just plug it in there that’s exactly right you literally just put that in there and it’s gonna convert it from an integer to a float you know I’m talking about we’re gonna do it one more time we’re gonna convert it to an integer to a float and And literally that’s all we got going on look at that we loop length and width as many as we want from 1 to whatever and then it literally multiplies those numbers by the tile size and sets that to the location so let’s save it let’s go back into our editor and we don’t Have one so we got to go back we gotta go find the DP folder again oh there it is I got MC I’ll drag MC in here boom there it is you’re like I don’t see anything but I’ll tell you what you do see you see these three little numbers Right here don’t you let’s set lengths to one a sit-down with the one in tile size than one all you see a block okay now the thing is tile size one is not gonna do much if I said until sanity like 15 blocks that way in 15 blocks That way we’ll look what it did it just made the blocks a little bigger but did it really make it bigger no dude it’s copying them over and over so set your tile size to 100 and boom you will have perfect size blocks you know how I know That set to 105 create a little quick little spacing it’s when your blocks you can kind of see what’s going on okay so there we go we got our length we can set to whatever we want I set it to 8 okay it’s going from from forwards to Backwards I got the back here the front here so links is this way width is this way I could set this to 35 bro or 400,000 or whatever you want there you go so we’re actually creating pretty much we’re using the length in the width now based off those four loops to kind Of create a terrain as big as we want I mean I could just sit here and just keep and there instant-message guys they’re instant static meshes or nothing you know saying you could just jump right in the map and walk all over these things and then again once you’ve set up the Map every bit you want to go 75 by 75 I’m gonna set the tile size to 100 and boom they’re all together and we got a big old flat plane there and we can change the size of it and do whatever we want so pretty cool right we got a Little start on it but what really needs to be a little more interest we got the length we multiplied it by the tile size everything’s got to be multiplied by that tile size because even the height because that’s what we need to toy with now let’s get to go up Now there’s a few there’s several different ways to do this but right now we’re going to work with a way I’ve kind of come to understand what we need is two more variables except this time instead of an integer I want to make it A float okay I want to make it float so we can really tie with it later it could be an integer just let you know but we’re gonna name one okay and this then we’re going to double click on it so we can name it we’re name it and I’m gonna name it Frequency okay and I don’t know how to spell frequency somebody the best I can okay don’t judge me do the best I can but I like to light that little eyeball plus more time and this is actually going to be our height yeah I got the Height you get high I mean what’s going on now is you got the got the make vector okay we’re gonna plug everything into this we’re trying to adjust the height so here’s what I’ll do I’m gonna grab this index okay and I’m gonna go multiply I’m gonna get another multiply Like we did last time let’s grab another int Thoms float though okay make our lives a little easier grab another one get two of them here get two of these bad babies so you can plug the length and the width into one okay and let’s plug but let’s split frequency into both I can highlight it right there plug it right in and drag the wire so I’m taking the length and the width indexes to based off how long they are and I’m multiplying by a frequency and then what I want you to do is I want you To type in a sign okay I want you to actually type in sign and you’re gonna see a couple different ones but make sure it’s s I in okay si you’re gonna see a couple here okay we want to go to sign degree just like this boom you see That that’s exactly what you’re looking for you’re like what exactly’s one oh well think about the sine wave as like an audio wave that goes up and down and up and down we’re gonna use that up and down to make our terrain go up and down Okay so you want to control C and control V these bad babies right there okay now after that we want to keep on going and like I said make sure you got the sine degree because it was a sign degree and a sound radius and now we need to multiply these bad babies Together that’s as simple as we got the float we got the float we’re gonna float times float I hold a little float button but we need to do one more thing I want you to add a add a pin no talking about and plug that height into there you know I’m talking about we’re gonna plug this sine times this sine wave this sine wave multiplied by the length and the width times the height and the frequency did you get that that all makes sense guess what we’re gonna do now we’re gonna make sure it’s rounded this is Just us being careful because we probably should have been working with integers but I wanted to really be at a toy with the frequency and the height and then we’re gonna plug into the height right wait we got to get this bad baby right we got to plug it into tile Size that make sure it goes up by 100 because if it doesn’t if it or well not even 100 just whatever the tile size is set to right now we do have set it to 100 we’re probably going to keep it there but the point is we want it to be Able to go up the exact same amount the length and width go long and wide so the baby bet there you go you got your you got your frequency of your of your um sine wave okay and we’re gonna multiply by that by that by height and then make Sure it’s all multiplied by the tile size and you’re like what’s happening what are you doing I’ll just hold on just totally check it out we got this big old map here I’m gonna break up our tile size to 105 again so we can see all The cubes can we a little we got little cubes here we can see what’s going on here now I must set this frequency to one okay and you see nothing I said the height the one okay wait a minute wait a minute what’s going on here you Just see what happened there the height we’re gonna keep it one for now okay let’s let’s see what we if we add to frequency set it to two I said it to three we said it to four okay you see what’s going on now my map is going down Inside of the floor so let’s drag this bad baby up a little bit let’s er get up let’s bring it up a little bit and it’s gonna take a second there she goes there she goes our guys do they get it get it off the floor lower bye guys it’s gonna Go up and down now I’m talking about so this this frequency as you can tell it’s kind of causing the noise on the X and the y together so imagine a wave going to come in from both angles so it’s kind of doing this kind of cool thing here And again it’s it’s it’s not anything super crazy but you got like there’s some Heights some depths and if you have the material like we do I mean if you haven’t made it go back and make it guys it’s so easy you got this material you got your Little Minecraft Lowell worlds it’s got the little dirt blocks with the grass on top and the thing is now we can go back to the height and kind of toy thin maybe two maybe three so I’m going to set this to six and I’ll set this to four okay And what we have now is we have a little a little world that’s got some a little bit of a little bit of life to it okay it goes up it goes down it’s it’s it’s it’s a little pattern II okay at the moment but this is what we’re going to Do two parts to this tutorial because in the next part we’re going to randomize a little bit but guys this is all I kind of wanted to show you real quick what’s cool is win this you can now go back and crank it up I’m gonna go 180 by 250 cuz I’m not Scared in this boom we got a giant map full of cubes here and there all together and boom we have a terrain and you can kind of just see it and again it’s not super super random but it is a bunch of blocks oh they got all kind of Dirt and they’re all kind of up and down and left and right so we’re kind of getting a start on how we can create a Minecraft style world or a block style world if you will you know I’m talking about but it looks kind of neat we like I said I kept 11 then flow around in this bad baby and have a little map bring you a little character in here and have him run around but we got a lot of work to do if we want to keep learning about how they do things on Minecraft We’re gonna take blocks away we got to get blocks and and and make this a lot more random so we got plenty of work to do and plenty of stuff to figure out but this will give you kind of a start you literally guys just jump in like I said Multiply your length and your width and a four loop from 1 to lengths index from 1 to last index multiply them by the tile size and there is your vector for your add instance make sure they’re instant instant cubes instant static meshes okay and boom I’ve created hundreds of hundreds of thousands of Blocks have another thousands I mean just look at it I mean I change you like a 1 1 20 I said it to 120 boom we can see kind of separate and it’s gonna take a second because there’s all kind of blocks I mean there’s a there’s all kind Of blocks guys that’s what’s going on here there are tons and tons of blocks and it’s really not that hard on the PC you notice and it’s just really not so guys thanks for watching appreciate you this is the start okay we got a lot to Learn but this is kind of like a little bit of a first pointer of how we can you know you simply use a sine wave to make your make your blocks go up and down up and down on the Z and then of course using the for loops and the length and The width to make them go to left and right and make the terrain as big as you want we got a lot to discuss guys there’s a lot of tutorials I need to make I know a few of you guys have given me some cool ideas I will get to them I Promise I’m just I’m just balls deep in it okay that’s what’s happening balls deep love you guys miss you guys subscribe to the YouTube channel the pride productions thanks for watching go hit the deprived productions Facebook page and go check out the pride the pride capital B at the beginning capital D at the end on Soundcloud okay cuz we got all kind of music on there you can buy some of it you can listen to some of it you can use some of it for free just go check it out man guys thanks for watching we got all kind of minecraft Stuff coming I’ll have another tutorial in a few days along with some other fun stuff that I’m getting ready to release but today we got something big going on and I’m not gonna tell you what it is it’s a secret but I’ll release it soon but guys I love you I miss you I’ll see you next time keep doing Minecraft stuff I have another tutorial a few days until then peace Video Information
This video, titled ‘DPTV UE4 Minecraft Style Tutorial 2 (Terrain Generation Part 1)’, was uploaded by DepriveD Productions on 2019-11-02 22:21:10. It has garnered 17332 views and 480 likes. The duration of the video is 00:13:45 or 825 seconds.
We’re about to use the contrsuction script to create a SIMPLE grid based terrain we can change RIGHT in the editor. 🙂 And we’ll eve apply our material from the first MC style tutorial for a little flare!!! CHECK IT!!!!!
PLEASE SUBSCRIBE!!!! and check out “DepriveD” Final Alpha EP on BAND CAMP!! https://deprived2018.bandcamp.com/releases
Follow us On SOUNDCLOUD!! FREE MUSIC!!! https://soundcloud.com/deprived2018
Like our FACEBOOK Page for Constant UPDATES!!!! https://www.facebook.com/DeprivedProductions/?modal=admin_todo_tour
#unrealengine4 #minecraft #deprivedproductions