 Hi everyone, welcome back to Game Dev Academy. I'm Shane and in today's video we're going to be doing something that I'm quite excited about. We're going to be going and doing some 3D scanning using just a mobile phone and a clever little app which I'll tell you a little bit about in just a sec. A little while ago a company called Ubiquiti6 reached out to me and asked me about making a video on their service called DisplayLand or Display.Land and what that is is an app and you point your camera phone at the thing that you want to scan. I'll show you some examples in a little bit and then that turns them into 3D models without you having to do really anything. There are a few like best practices that you need to follow to get decent scans but other than that it kind of just works. So to put it through its paces I thought we'd find some stuff that we can scan take the assets and try and turn that into a level in Unreal Engine or at least a beautiful pretty scene in Unreal Engine. So in order to do that we're going to have to find some stuff, capture it and we're going to have to then send it to their service, download the models, optimise them, get textures going, set it all up in Unreal Engine 4 and see how well that goes. So the first thing we'll need to do before we can jump into that is to get the app installed. So we'll take a look at how we do that now. So installing the app is nice and straightforward. The first thing you'll need to do is go into your app store of choice. So I'm using the Google Play Store and then using the search function at the top I'm going to search for display.land and you can see that's already popping up in the suggestions there. So then I will select that from the search and there's the app listed at the top. So I'll give that a press and choose to install it. The app itself is just over 30 megabytes so it doesn't take long to download and install. Now it's installed I will just tap the open button to get the app to open up and then it gives you this nice little welcome sequence which shows you how the app works, gives you some information on privacy, tells you how you can add some things to the captures that you get and also that there's a social community attached to the app meaning that when you look at other people's things you can leave comments, you can like them, all that kind of stuff. So the first thing you'll want to do is sign up. You can do that with an email address or phone number. I decided to go with my phone number to sign up but email address works just fine. So you'll need to choose which country you're in so that's a little bit strange it's down the bottom of the screen so I'm choosing UK and then I just need to confirm that. That'll change the dialing code and then I'll just put in my phone number which I'm obviously going to blur out I don't want you guys sending me nudes. Then it will send me a text message with a code to verify that so I'll put the code in and then I can log in and that's it the app's installed you can see that every time you open the app it gives you another person's work to look at so some scans that have been shared then you can go into your own account you can see that I've done my little practice scan there just a sign that I walked past and then we're ready to take this out into the world and do some scanning now that we've got the app installed we can take it out somewhere and get some scanning done so I thought we'd do a very sort of nature filled scene so we need to go and find some nature somewhere let's do that and see what we can find and here we are in the great outdoors so this is where I'm reliably informed they keep all the nature so I'm going to go around in a minute have a little scan with my phone and see if we can get some good stuff to build out our level with so I'm going to be looking at maybe getting some ground textures having looks even get some logs some tree stumps I've seen quite a nice bench as well so I'm going to go around and get a few different bits and bobs using this display land app and then we'll take it back when we're done into our real engine and see how it looks right so let's have a little scan so here I am capturing a section of this muddy path and if we have a look inside the app all you really need to do is press the begin button to get started and then you just point your camera and walk around and that's all of its to it you can after a while if you turn the option on start to see the point cloud building up so here's what that looks like overlaid on the image and you can also show just the point cloud only just like this so you can do all that and then when you finished all you need to do then is press stop to stop capturing and then you can choose to give the capture a name so for this one I'm just going to call it muddy path and then we have to move on to the next one you can also say exactly where it is I'm gonna leave that I'll just skip that for now so I choose upload later so I can upload them when I'm back at my wi-fi and then I can go on to capture something else as I've been walking through I've just seen this wicked bit of mossy ground over here behind me I'm going to see that catch as well I don't know if it will because there's lots of bits going up and down but let's give it a go so now I'm just wondering kind of aimlessly through the woods just becoming one with nature really and I found this wicked stump which is just where is it just there I might have to go that one next so let's see how that one turns out okay so I think I'm done now I've been kind of all around the forest today unfortunately most of the stuff that I've videoed myself getting is in this glorious sunshine which will mean it's unusable unfortunately because you need it to be really cloudy and overcast for the best results but it has been cloudy for about half the time I've been out here so I'll use all of those captures because they're going to give me the results that I want so I managed to get some decent ground things I've got myself some logs twigs what else did I find a really good stump got myself some rocks as well some rocks in a kids play area of all places that can't be safe right so I'm going to pack up all my crap get back into my little studio and we'll see how these turn down see you there and we're back indoors so now that we're here what I need to do with all these captures that I've got is get them uploaded to display.lands service so what they can do is do all the necessary processing and when that's finished I will get notified and at that stage I'll be able to take a look at them and get them downloaded to do more exciting things with in a mail engine so the first one we need to do is get them uploaded so we'll go back over to the phone and I'll show you how to do that now so uploading's nice and straightforward all we need to do is open the app and then I need to go into the my profile section which is that little icon in the bottom left and here are all my pending uploads because I didn't upload them at the time so I'm going to do muddy path click on upload and then choose upload now then there's this little process where it zips it up and then it uploads it and after that it moves on to processing and for this part you can actually just close the app down you don't need it open anymore it'll happen in the background and you get a notification on your phone when it's complete ready to look at and download I then repeated that process for the remaining captures that I had got them all uploaded and then let them all process in the background the first ones started telling me they were ready after about 20 minutes the rest took up to about an hour I think and the longest I've had anything take using the app is about two to two and a half hours to process which is not bad going I've done some capture locally using a computer and it took a hell of a lot longer than that so that's not a bad result at all with them all processed then what I can do now is go into the app and then I want to choose one of these ones to view so I think we'll start with one of the more interesting looking ones we'll do this bench one here so you can choose to publish it which I'm not going to do I'll just open it up and we'll go into edit so there's the bench and I could if I wanted to choose to crop that but what I'm going to do instead is I'm going to do this in Maya a little bit later but it is one of the features of the app that if you choose to you can crop these in so I think you have to touch on one of the sides and then you can push it in and after a while you just kind of crop out all the stuff that you don't want so push all that in there I don't need any of that and you can see as I do it it's just bringing me in closer so this would for the purposes of like showing it off to other people through the app this is quite an important step otherwise they can't see the thing that you actually tried to capture so there we go for the purposes of sharing that would have been a pretty nicely cropped bench so we can just put a tick on that I'll allow it to update and it's also within this section that you can add some of the other little models in there for the kind of augmented reality thing but again for me that's not something that I'm too concerned with so I'll leave that one alone for now so we'll take a look at one of the ones that I do want to download I want to start with a path so the main one that I took the time on was this one here called main path so in order to get to that the first thing I'm going to need to do is publish it so make sure I click on publish and now I've done that I can choose how to share it and one of the options is to download the mesh which is the one I'm going to choose so I'll press that button there I want the obj3d mesh so I'll go to send link and then I'm going to choose to email that to myself via gmail so I'll send it from me to me that's pretty good and I'm going to call it main path so let's zush that over I'm done on that and then we'll go over to the computer next to see how that came through so here we are over on the pc and this is the email that I've just sent myself there's a link so I'll give it a click and a download will begin it's just a zip folder so we'll let that get downloaded and then we will extract what we have inside so I'm just creating a folder called main path this is where I'm going to start here are the three files that are downloaded so there's an obj a texture file and also an mtl file and I'm just going to name those to something that I can work with so make sure we've got the diffuse and the obj ready and now in Maya we're going to import the obj and have a look at how that came through so this is the path looks a little bit messy at the moment but I'm going to tidy that up but the first thing I need to do is make it so that I can see the texture and also just stop it from being too shiny so we'll turn it into a Lambert so that has now put the texture on you can see it starts to make a little bit more sense at this stage so what I need to do now is just kind of position it so that I can work with it a little bit better zooming you can see that it has captured a lot of detail and we've got a pretty nice texture to work with as well so at this stage I'm just going to delete all the faces that I don't need I only want the path I don't want all the nonsense around the outside get rid of all this stuff above as well I don't need that and there we go that's pretty much the path that I want to work with and now I'm going to create a low poly version of this so I'll just snap a really basic plane into about the right place for what I want there we go I'm happy with that and I'm going to position it just below so that when I transfer maps I can say anything that's in front of that shape is what I want to be captured within the diffuse map so I'm using transfer maps in Maya for that so if I just turn on the envelope and make sure that that little red box is as close to the terrain as possible without intersecting it at all I'm going to use a diffuse and a normal map I'm going to create both of those I'm going to use PNGs and make sure that I've given them appropriate names make sure that I've got a nice resolution for them there we'll go we'll go for 2k and then I can click on bake and close and this will take a little while and when it's done I can have a look at my plane that I created my low poly version of this path and see how it came out so at first it looks black that's just the normal map doing that Maya doesn't display them very well when I get a better angle you can see that it has transferred the detail from the color and also the normal onto that so I decided that I'd straighten it out at this stage so that it will tile when I put it into a real engine so I got it all kind of flat and made it a sort of uniform size got my pivot in place and centered it pretty standard for getting it into a real engine I put a few subdivisions as well just to add a little bit of height variation I didn't want it to be too flat and at that stage it was ready to export so I just turned it into an fbx made sure that I knew where the texture files were saved and then I could click on export and it would be ready to take into a real engine so I created a new project in Unreal Engine I called it nature because it's very nature-themed this isn't it and as soon as it was created I made a new level deleted some of the crap out of it and imported my fbx of the path I didn't really do much in terms of changing the settings I just imported it created a really basic material didn't do much to it there you can see my two textures are attached I just added a constant for the roughness and then assign that to it so there we can see that I've imported it I just added to center it in the world so that I knew where it was and then I created a copy of it I mirrored it and then I attached it so it would make it twice as long and then I just got a perspective you'd see if it looked long enough to my eye which it did so I was happy with that so at this stage I went back into Maya happy with the workflow and created all the other low polys so you can see I got the bank I got this weird log thing also got this pile of logs which I am quite happy with I wish I'd gone a little higher poly with it but it did turn out really well here are the first rocks that I got and then I did the stump as well the stump I think turned out better than anything else and then back into a real engine I started putting it all together so I created a rocky bank threw in a landscape put it around the little area that I'd created and then I used a foliage tool to put in the logs and the rocks and the tree stumps that I'd created so at this stage everything was from the scan then I went to mega scans I got some grass and some ferns just to kind of bulk it out and make it look a little bit more believable so we threw those in there and then I threw some trees at it as well played with the fog and the post-processing a little bit built the lighting and then when that came out this is the result played a little bit more with post-processing and this is what we got when I'm finished so I think that turned out pretty well and that brings us to the end of my little scanning adventure so I wanted to know could I use this display.land service to scan some assets as the base of Leica level in Unreal Engine and as you can see from the beautiful little environment that I've put together behind me yes you can I did get a little bit of help from places like mega scans but that being said I think some of the assets especially the little stump I think they hold up alongside the more professional assets such as the mega scans ones so I think we can call this a success and something I'm very happy with I definitely will be keeping the app on my phone and I'll be using it to scan things that are interesting to me as I'm going about me every day life if you want to follow me on display.land I'll put my details on the screen it'll be nice to see what you're scanning as well if you do that if 3d scanning is something that you're interested in I will put a link at the end of the video to a course on plural site based all around that a more professional workflow a bit more in depth than I've gone into in this video so I think that's going to do it for this video thanks so much for sticking it out to the end I hope it was informative and maybe even entertaining who knows if you didn't think it was good then do the thumbs up thing if you didn't think it was good you can do the other thing if you're not subscribed then you should be this is game dev academy and what we do is we look at lots of different topics relating to the making of games so lots of art related things some scripting things we've got Unreal Engine tutorials Maya tutorials it's just an all-around good time so if that sounds good hit the subscribe button do the bell as well and hopefully I'll see you in future videos if you want to learn more about 3d scanning and photogrammetry then I recommend taking this course on plural site photogrammetry in memento and zbrush by Justin Marshall is a really good place to start with this way of creating 3d models using just photographs if you do want to check this course out then check out the link in the description below to get a 10-day free trial to plural site