Okay if you mean Femi few minutes and we can start I just create a new project its third person project and I’m just adding some variables it will be just useful okay nice I hear myself where is this maybe right here okay I hope there will be a few people mm okay Okay so everything what we need is just a creating category settings and inside maybe a few more like some elements and maybe one more okay there is a lot of variables because we need to control this so but I will start from beginning so we will be just Moving our actors and creating them basically so okay so we can just start in three minutes hmm so this is just vector and and we have also okay so for now it’s fine you can just compile this is my new player controller and yeah it’s wrong okay Should be fine we do the tuturu – ah I shouldn’t let’s check this out where’s my stream okay okay can we start right now mm I don’t hear you guys I don’t see what you are writing on Twitch art I hope there will be more people later on Yeah so we can just start okay so let’s go so right now I’m going to just remove some objects and maybe these cubes and yeah I have my floor so basically everything what I need to do is just generating my floor around my character so yeah so I go to my Controller and I need to okay okay so first of all I need to add some functions which will be just updating my position so update a position it will just occur every tick so I just take my player Paul get location and of course set my position does it multiplying by a 1 1 and 0 because I want to get rid of Z location in Z coordinate so it will be fine then I can check if my trunk position trunk X and tuck a Y is different than this chunk so to get this chunk I just need to divide by my chunk Size so I just split this like this and divide by a chunk size which is just this one and do the same with my y coordinate so this is for now fine okay and I can just set this just to the floor and I can just compare these two Yeah and if it’s a different I can just use my branch and update so this is just basic steps just updating these values yeah checking if they are equal I don’t have to rush too much so via just yeah and the this is streaming so yet maybe Not that because I’m not thinking what I’m doing or yeah so if one of these is different I just need to update them and here so this one will be just stepped if it’s true if it’s false just return but maybe just return state so I will use Blonde type so will be just it was changed huh there’s an a okay okay and go on maybe someone will come anyway never mind okay so this is my X and this is my Y I just need to update them and I can just return with this way it was changed when I compile should and I should get this and I can copy this so it was changed right so this is my first step hi bro hello hello okay so we have an updating our position but we need also something to do with these values because we are Using chunk size chunk size half okay and chunk x and y yeah so we have these free values but we need also chunk size and chance I’m chunk size half okay so basically we just need another function which is just initialize and everything will be a invoke when it’s just page in Play so we just go to even graph and regime play so we need signalized then a update position okay so initialize it will be just setting my chunk size which basically is chan column is a x voxel size so yeah so I get my chunk elements and voxer size Multiplied each other and yeah I can just set my chunk size so this is just in equalization and divided by two to get my track size half I will be using later on and okay you don’t have to worry about this is just first steps and There will be more visual do we need a special computer really powerful PC I think yes because Unreal Engine is yeah requires a lot of power and yeah okay so right now okay so this is everything and we can just go to our function just adding a actors around our player and I Will start from add a chunk and basically it will be just a two for loop and we can just set from -2 to basically two and do the same twice and multiplying my index by a chunk index and do the same with second variable and Yeah it will be just this is my X this is my why and right now I can just spawn actor but I need to create one but it will be just a spot actor thing from class and I need to create new one which basically be a blueprint class an actor And inside it will be just test and inside I can just create a static mesh which will be just a one floor which is 400 by 400 so I need to multiply this by scale two and half so I will get 10 size 10 by 10 yeah As you can see this is 1 2 3 4 5 6 7 8 9 10 so it’s 10 by 10 so basically I can use my tongue line element just 10 and voxel size will be just 100 for now and ran the wrench I will be using free but Later on okay so I’m spawning my test actor and I can just create new vector which will be just 2d vector in 3d vector and yeah when I just link this and I should get this floor for each one and chunk yeah so when I just link this Okay I should get my floor and it depends on just this this render engine in the future but it’s from minus 2 to 2 okay so should be fine we can just try this out this one is bad in play I will just invoke once a set chunk ok so right Now and let’s err in music is too loud I hope not okay later on I will check how many peoples are on stream so I don’t have to worry about that I was planning about making the stream for a very long time this is just boring part but I will just Get into a Minecraft soon so I hope more people will come so basically I adding this chunk a rod my player character and there should be it’s like that so maybe I just take this in the bottom yeah and as you can see we have this floor but It’s it’s stacked so maybe I’m not using my because I’m just multiplying by but I need my chunk size right because I’m multiplying by 0 so if I multiply by chunk size it should be like that and I should get floor yeah it’s it’s just bigger floor And you can right now see this is just my first alignment is just actor 0 0 this is 0 1 0 2 so we can just select every actor we just created yeah and it’s from minus 2 to 2 so this is just 5 by 5 right now and in in the Same way we will just creating our terrain later Lunia and instead of these small floors will be generating a lot of voxels right so this is just our core let’s say hey hey hey and yeah so we can just stop this and instead of our from minus 2 to 2 we will Just using our render wrench and just multiplying by minus 1 and it should be should be fine so when this minus 1 and when it’s a wrench and do the same with second and loop so right now I’m controlling using my render range so this is fine and yeah so it’s getting to A hard part right now so basically I need to check if I already spawned this tank and not doing this second time so everything what I will main beanie in it it’s just a array of elements but I can create way for now my test and it will Be just a right of these actors yeah so I can compile and call it three chunks and second one will be just like I said before a 2d vector okay and it will be just chunk in quotes okay okay and everything what I need to do is Just checking if my chunk court contains already item which is X&Y I can just split this and get my X&Y of course this is my index yeah but it has – yeah but I’m using a from 0 to 0 so basically I just need to add my chunk a position Right this is just player position if I’m standing on 0 0 it’s just 0 0 this value so yeah this tank has to be some sum of these two yeah so I have my X and the second one is first this one plus ok so this is my global chunk index and Position and right now I can just take this and yeah and linking this to right here yeah so I can just use my branch and check if yeah you really need to good PC because right now when I’m streaming we have only 80 FPS which is not not much yeah You make it right now yeah and this is just empty stem so basically it’s it’s like that but I’m using with settings everything on full epic here so it’s just like that okay so let’s go I will be copying some things later on so I don’t have to worry about so we Have branch if contains I will do nothing but it if it’s false I have to add this element here so just taking my con arrived and adding new element which is exactly the same so X yeah but we need another split yeah and just linking this and one more thing We just need to add our actor here so to our chunks I just get this spawn net actor because we will be spawning in this if it’s false and yeah and linking this and adding to my second error here so I will just keep this okay and right Now I should be spawning all the time and new actors here so we can just try this out I think everything is correct if I’m right so let’s check this out and let’s go to our scene and here and even growth because I need to instead of Once I need to do it every tick which is a around 30 milliseconds so yeah let’s play and right now when I just will be moving I should be spawning or maybe not maybe I’m not updating my position I mean I need to check this out so basically ah I’m not updating my Position I’m so stupid only once when I so initialize and then updating position and adding chunks right so when I’m moving I need to update my position to get to know if I need to spawn new tracks here so then yeah so right now right now when I will Be moving I should get more and more yet I’m spawning and you mmm let’s check this out ah because this is wrong this is my ex and this is why it’s a really good start really okay and right now okay so as you can see I’m just boning and less terrain So I can just walk forward walk forward and never reach the end of this world here and but as you can see I’m just boning and in front of my character but never remove them yeah so in about ten minutes of spawning new actors I should be run ran out of memory and Yeah I will get problems with this so we need to remove these actors yeah as you can see because we have more more and more of them and already we have 155 actors on our steam so we need a remove function and one more thing because we Are not using center of this this is not the best accurate right right now so I will just add half of my chunk half of my voxel size so these two elements and now we will go to C++ soon so it’s about ten minutes let’s let’s do something With this so we need center of this so this is just a start of our chunk but we need to add of course 50 so this is my X chunk yeah this is my Y and if I just add 50 and not 50 but a chunk safe half I will Get just get center so this is just X Center and second one is just a Y center so I need to do the same with my y coordinate okay linking this and we have second will be just Y sample okay so I have everything and these centers I need to Compare to my radius that’s why I prepared or maybe not so my radius will be depends on just rendered range so if render range is bigger I just need to do something with this and yeah so I need to compare and to use another ball and It was so okay and we can just use macro just check our radius and two inputs we need a x and y right – two – two right now I can link this and checking if a character position and be this one okay I’m just removing and checking if Chunk size x render range is a yeah and I can return this okay so this is my one condition for my a check radius and I can use this when I’m adding this chunk so just use check radius okay and linking this and right now I should be Able to find center of this so when I just walk I should get circle of these actors hmm yeah and as you can see already we have something like a shape of the circle hmm kind of awkward wait a moment yeah but you can see it’s just coming From Center and spawning on the left side yeah so it’s just expanding here so it’s in range of our planned character yeah so this is much better than it was here before so when I just increase size of my render range or maybe yeah maybe just okay it’s just six this one Let’s try this out and we have yeah silicon because character is not in the middle so I need to set my character position where is my character start player start it’s right here so to get the middle of first chunk is just a 500 500 right and it should be in the middle Let’s try this out and I can remove even my floor so let’s let’s try and yeah this is more likely Center okay okay I don’t want to go too deep so we will just right now spawn our voxels so maybe I will just copy remove function Which is just removing index if they are not in ranch I’m just checking radius and if they are not in ranch I just remove from my cordeen idea and this is like that so let’s try this out and it will be just removing chunks so let’s go back let’s create another function they Lip chunk and just paste this and this is simple function just removing and I need a my chunk actor and the destroying actor and removing from okay so this is everything so right now when I will will be walking I but I need to add this to My click event so let’s go back and everything I will be destroying this earth dr. so at the track and next one will be just remove a chunk right but maybe first remove the nut new one okay I think it’s fine so right now when I’m just walking and Just panic new tracks and removing should be removing yeah they are disappearing as you can see okay so we have done first part okay so this is more like that Video Information
This video, titled ‘Unreal Minecraft – Twitch 12h challenge – 1. Generating endless World’, was uploaded by Tefel – Astro Colony on 2016-07-02 09:14:50. It has garnered 58587 views and 687 likes. The duration of the video is 00:29:02 or 1742 seconds.
This video shows process of creating Unreal Minecraft-like cubic World in Unreal Engine 4. You need to know It cames from twitch.tv/Tefel where I had this Live stream and not everything is perfect like local recording. The video has small cuts but probably You may want to skip some boring parts 🙂 Have fun. Next part: https://www.youtube.com/watch?v=9vy5iw3Mu4U More info, result and the download link: https://www.youtube.com/watch?v=WXJw1pswLRM
All parts: 1 – generating endless world ⌫ 2 – c++ project set – https://www.youtube.com/watch?v=9vy5iw3Mu4U 3 – voxels generation (from 3ds) 4 – creating terrain using simplex noise 5 – generate different voxel types (materials) 6 – BSP – making weapons 7 – prototypying character 8 – adding / removing voxels 9 – spawning trees (voxels) 10 – custom elements – grass, flowers (instances) 11 – graphic look – post process effects 12 – inventory 13 – particles, effects, sounds 14 – gui / menu
If You want more streams – making prototypes please suggest what would You like to watch in the comments below.