How To Scale And Tile Textures Inside Of Unreal Engine 5 | Seamless Texture UV Scaling And Tiling

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys and welcome back to another Unreal Engine 4 and 5 tutorial so in today's video what we're going over is just some basic UV or Texture scaling so we can actually change the scaling of our texture UVS inside of our game so as you can see on screen now we've got the same material on two different sized meshes so on one size wall it looks perfectly normal on another size wall the material has scaled up with this scaling of the wall as well so what we want to do is we want to scale the same material down to be the same size as this it's just going to have a nice seamless texture and the bricks will look like the correct size so if I were to apply it my other material onto this you can see it is the exact same textures but I've just scaled it down to then fit perfectly on here as you can see like so so this is what we'll be going over and creating today so without further Ado let me delete this and I'll show you how I've done it so the first thing we need to do is you need to make sure you have your material so what you can do is you don't need to duplicate the material if you want to keep it the same but because I'm doing two different materials here just to Showcase it I'm going to be duplicating it however if you want to just change the scaling of a certain material you can do it in the same one so again for me I'm duplicating it so I have another one and I'll call this brickmat1 and I'm going to open this up straight away now in here all I've got is the base color the roughness and the normal texture that's all I've got you don't need all three if you don't want them however I've got them in here so what we can do is it's very very simple we need to right click and get texture coordinates like so so just a texture Corner note here and we're going to connect that into UVS of our texture sample so this is why it's UV scaling because we're going to be scaling the UVS based on certain text coordinates and with this selected you can see we have tiling down here on the U and the V so you're going to want to connect this in for all the texture samples that you want to be scaling which for me will be the bass the roughness and the normal again if you've only got the base color just do that and so on and so forth for all of your different textures which you are using now what I'm going to do is if I hit apply minimize this and put this material on here you'll notice it's going to look like this it's very very small so that's the default which we have so if I were to then reopen this back up again what we can see is if I select the text coordinates one is a bit too small so we want to make this smaller which might sound counter-intuitive but you make the number smaller the scaling is going to get bigger so if I were to lower this to 0.5 and then apply that what we're going to see is it's then got bigger so it's scaled it up but that is obviously now too big so we'll change this again and also show you if you just do it on one so let's have the U on one and the V on point five we'll notice this is going to stretch out to the side like you can see there or it's scaling it further in sorry so the reason why lowering the number makes a scaling bigger is because there is going to be less scaling on there so there's less to fit in so it's going to be fitting in more of it if that makes sense so don't think of it like it's a scale number so the one is the size of it think of it of how many times it's going to be tiling so if we want it to tile once it's going to be this size which we have here let me actually just minimize this slightly so we can see it a bit better if we have the tiling on one this is it normally if we to then have the tiling on 0.5 so we have half as much tiling on there it's going to be twice as big so I hope that will make sense we're we're having half the amount on there which means it's going to be twice as big so again for me 0.5 is a bit too big so let's put it on 0.75 and that should be perfect for what I want here to get the desired effect and again as you can see it works perfectly and you can see here as well you can obviously mirror the unv if you wanted to as well for me that's not what I want but you can see that is what you can do here so if you wanted upside down bricks for example or you just wanted the sideways to go the other way round you can do that to get some longer bricks here but again that's not what I'm after I want it to just be the normal brick effect so this is basically all we're going to be going over today just some very simple tiling and scaling of UVS and textures to get the desired effects we want just in case your maybe your bricks are maybe too big for the size of the player or maybe they're too small and again it doesn't just have to be bricks this can be absolutely anything you want maybe the text is too big or too small and you want to change it without having to go back into blender or your 3D modeling software so thanks so much for watching this video I hope you enjoyed it and I hope you found it helpful and if you did please make sure to like subscribe down below so thanks so much for watching and I'll see you in the next one okay [Music]
Info
Channel: Matt Aspland
Views: 56,898
Rating: undefined out of 5
Keywords: ue4, unreal engine 4, unreal engine, tutorial, ue4 tutorial, unreal engine 4 tutorial, how to make a game, how to, blender, unity, games design, ue5, unreal engine 5, unreal engine 5 tutorial, ue5 tutorial, uv scaling, uv tiling, scaling, tiling, tile, scale, uv, texture, coordinate, coordinates, ue5 uv, ue4 uv, seamless, ue4 texture scale, ue5 texture scale, ue4 uv tiling, ue4 uv coordinates, ue5 uv tiling, ue5 uv coordinates
Id: sKtkwb0E0DU
Channel Id: undefined
Length: 4min 48sec (288 seconds)
Published: Thu Oct 13 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.