No video

Splines And Spline Meshes | Creating A Road System Using Splines - Unreal Engine Tutorial

  Рет қаралды 61,163

Matt Aspland

Matt Aspland

Күн бұрын

Hey guys, in today's video I'm going to be showing you how to create a road system using splines and spline meshes. This video can be used for anything however, not just roads. I will be covering the process of creating a dynamic mesh via splines.
Object Follows Spline Path: • How To Make An Object ...
#Ue4 #UnrealEngine4 #Ue4Tutorial
___________________________________________________________________________
00:00 - Intro
00:08 - Overview
00:48 - Tutorial
09:32 - Final Overview
10:12 - Outro
___________________________________________________________________________
If you enjoy make sure to subscribe: / @mattaspland
Join My Discord Server: / discord
Follow Me On Twitter: / matt_aspland
Follow Me On Instagram: / matt_aspland_
All My Social Media Links: linktr.ee/Matt...
___________________________________________________________________________
If you want to support me, there are many different ways of doing so. This is by no means expected or required. It is just a nice support :)
Patreon: / mattaspland
PayPal: paypal.me/matt...
Ko-Fi: ko-fi.com/matt...
Thank you :)
___________________________________________________________________________
To access the project files and screenshots from the video, check out my Patreon above!
My Public Video List: trello.com/b/7...
Unreal Engine 4 Tutorials Playlist: • Unreal Engine 4 Tutorials
The Basics Of Nodes Playlist: • The Basics Of Nodes In...
___________________________________________________________________________
♫Outro Song♫
●Kronicle - Chill Noons

Пікірлер: 95
@yuurishinoda6305
@yuurishinoda6305 2 жыл бұрын
For those who want to make your character walk/run on the roads, put "Set Collision Enabled" node after "Add Spline Mesh Component" and set New Type as "Collision Enabled (Query and Physics)"
@thecraftinatorx
@thecraftinatorx Жыл бұрын
Thank you! Have a nice week
@Stkrsktr
@Stkrsktr Жыл бұрын
Thank you!!
@ThatDamnedGamer1
@ThatDamnedGamer1 6 ай бұрын
OMG you have no idea how much time I spent trying to find this.
@shaydonvaz9629
@shaydonvaz9629 6 ай бұрын
@@ThatDamnedGamer1 my car still clips through the mesh
@nand-studios
@nand-studios Ай бұрын
u are the king
@yuurishinoda6305
@yuurishinoda6305 2 жыл бұрын
Been hopping around Houdini, OSM, UE Landscape tools etc and finally found this! Quick, easy and super useful. Thank you so much for uploading this. I really appreciate this!!!
@nickolaslewis1560
@nickolaslewis1560 6 ай бұрын
I have been trying to go this for years! I am very happy, now. Thank you!
@MrPentagear
@MrPentagear Жыл бұрын
To add to Yuuri Shinoda's comment about enabling collisions, in the 3rd person demo, you might realize that the character's feet are falling through the mesh. To fix this, select the "Add Spline Mesh Component" node in your construction script, and disable the "Can Character Step Up On" option, and set the collision preset to "BlockAll".
@radleypillay7096
@radleypillay7096 8 ай бұрын
This was very helpful, thanks!
@gokdenizemektar2527
@gokdenizemektar2527 3 ай бұрын
you saved my day thank you
@manvendrasingh299
@manvendrasingh299 2 жыл бұрын
I was creating some 3d models for city and here you are with a awesome spline road video I want your mind reading powers now
@anvinhn276
@anvinhn276 2 жыл бұрын
Always like your tutorials !!! Was able to attach an NPC to spline for a "controlled path roam" thanks to this video ! Anyway, thanks for all your tutorials, makes my UE understanding and my games better and better every times :D
@coffeediction
@coffeediction Жыл бұрын
Could you tell us 8:39 what happened here please? How did you connect it seamless like this? Also any way to make it create new spline automatically once mesh length is reached to avoid stretching and inconsistency? thanks
@ozcanozteke284
@ozcanozteke284 2 жыл бұрын
Dude yesterday I was thinking about how to create any road system and if I'd have to create a whole map in blender (which I could never do XD). Well this just takes care of my problem. Thanks!
@VlaD-fr6zm
@VlaD-fr6zm 2 жыл бұрын
Is it possible you can make a system with race positions, like 1st, 3rd, 5th..
@trypresident
@trypresident 2 жыл бұрын
You explain everything so on point I wish u would make a new gun system tutorial I know I would get it done watchin your vid
@Boschie143
@Boschie143 10 ай бұрын
Bro thank yoouu! this saved me so much, because I'm using a google earth geolocation and its imported as an actor, so I cant use the Landscape spline tool Thank you
@antoinedej8672
@antoinedej8672 2 жыл бұрын
Thank you so musch ! Only video that worked for me :)
@Voyagerr11
@Voyagerr11 2 жыл бұрын
Great Video, I was wondering, if I make a one spline/road and want to split a road off of that spline/road, how do you do that?
@thisisraaain
@thisisraaain 2 жыл бұрын
Amazing and useful tutorial ! thanks man❤
@jerryatricks4168
@jerryatricks4168 Жыл бұрын
Easy and basic, but if I stretch the spline beyond the length of the mesh, it stretches the mesh also. For instance, the length between each spline point should equal the length of the mesh. Go beyond that, and the mesh gets longer, thus distorting it. Isn't there a way to get the spline to automatically add a new spline point whenever it reaches its full length?
@rosenormand2059
@rosenormand2059 11 ай бұрын
Hey did you figure this out ?
@nickharding7078
@nickharding7078 8 ай бұрын
you could set up a max distance (max segment length ) that you get from your input mesh by collecting the bounds of the mesh and using the x or y depending on orientation. you can then either choose to add a point at the last interval and then move your last point to the distance of your segment. You can take it further if you want to, by adding another variable at the start and call it your input road segments or distance and build straight roads automatically.
@radspiderjackson
@radspiderjackson Ай бұрын
easy to follow video for the most part, but how could one add script to have a randomized spline spawn on construction or begin play to go from point a to b?
@TheKr0ckeR
@TheKr0ckeR 3 ай бұрын
Great guide! Are there any easy way to set points Z value? Sometimes i add points a little above, and cant change the height value directly.
@sarav3948
@sarav3948 2 жыл бұрын
Hello, I would like to know if it is possible to make the road interact or be created according to the lanscape?
@ashensamurai8072
@ashensamurai8072 2 жыл бұрын
you can do that in the landscape mode/ spline line section
@ivodiependaal148
@ivodiependaal148 4 ай бұрын
For me the min value , you have at 2, had to be set to how every many points my road is. Else it isn't visible. At 2, i get a spline but no road visible. So have set it to the nr very high. Don;t know why it is different, everything else is the same.
@wolfiedgr8t
@wolfiedgr8t 2 жыл бұрын
Cheers Matt, great video 👍
@MattAspland
@MattAspland 2 жыл бұрын
Thanks!
@DeftlyJ
@DeftlyJ 2 жыл бұрын
Is there a way you can turn the splines into mesh pieces? Like if you want players to build their own track in game?
@user-yb2ec5rr4c
@user-yb2ec5rr4c 2 жыл бұрын
Love your tutorials
@draicor
@draicor Жыл бұрын
Hey! great tutorial bro.. 3.7 meters would be the width of a single lane mate, if you are modeling a two lane road, the mesh width should be 7.5 meters.. well, you could always scale it up on unreal though, but since I believe you were trying to model it using real life sizes
@arttilt
@arttilt 2 жыл бұрын
Nice and subbed! Good stuff! Real good.
@MattAspland
@MattAspland 2 жыл бұрын
Thanks a lot!
@sabkarim
@sabkarim Жыл бұрын
Awesome!
@peterhorseshoe6304
@peterhorseshoe6304 2 жыл бұрын
Hi, great tutorial as always, just one question though, works fine but anything above 90 degree turn and the mesh twists, any ideas why ?
Жыл бұрын
got the same thing
@routeone4790
@routeone4790 Жыл бұрын
Could you show how to add meshes to the spline and be able to control the amount of the mesh on the spline?
@JimEnjoy
@JimEnjoy 2 жыл бұрын
Is it possible to use spline for crossroads?
@lucian6172
@lucian6172 10 ай бұрын
Is there a way to make the mesh component be used as instance ? Or is the mesh automatically used as instanced mesh ?
@CG-Game
@CG-Game 2 жыл бұрын
Hi! Can you tell me how to use Blueprints to turn the pivot axis 180 degrees, so that the direction axis of the road would change
@raymanceful
@raymanceful 10 ай бұрын
This is great but im having problems with seeing or editing the spline in the level. however i can edit it in the vieport of the blueprint, anyone know why this is happenng?
@ArchWorld0829
@ArchWorld0829 Жыл бұрын
Hello, I'm trying to do this but with a smaller road and smaller car. But I can't seem to get the unreal engine 5 car sample to work by scale .005, it floats in the air instead of moving on the ground. How do I fix this with this car
@robertprescott9577
@robertprescott9577 2 жыл бұрын
Awesome. Can you use this to mimic a duck going along the surface of a lake?
@WesleyOverdijk
@WesleyOverdijk 2 жыл бұрын
How would you avoid multiple actors following a path bumping into each other? Any way to leave space without making them travel in a line? A good example of what I'm talking about is a tower defence game.
@F0r3v3rT0m0rr0w
@F0r3v3rT0m0rr0w Жыл бұрын
ive been looking for tutorials about road networks, i have no idea how to even remotely wrap my head around them. having 1 long path is fine ... but what if i want an intersection ... lights or buildings on the side ? i know you can do it with splines but i always get the same tutorials that just show 1 line. i cant afford houdini either so please don't suggest that.
@ANOKHIKAHANIYAN
@ANOKHIKAHANIYAN 2 жыл бұрын
Great tutorial, Could you please show how to rotate car wheel when it move along spline and speed
@throstur_thor
@throstur_thor Жыл бұрын
Will this work with an animated scene? Meaning, can I make objects follow the spline and then render them out using Render sequence?
@The9PointStar
@The9PointStar Жыл бұрын
Thank you! but what about collisions? i added a collision to the road mesh but the character keep falling under
@ayoubtouaty8255
@ayoubtouaty8255 2 жыл бұрын
Interesting 🤔
@Gnda3e
@Gnda3e 9 ай бұрын
How can I connect 2 splines? I already tried with ctrl and click
@scook182
@scook182 Жыл бұрын
I am trying to do this in unreal engine 5 but can't seem to find the integer + integer anywhere even with context sensitive turned off :( can anyone help
@shizzlemcsheezy2151
@shizzlemcsheezy2151 Жыл бұрын
Same issue here...
@shizzlemcsheezy2151
@shizzlemcsheezy2151 Жыл бұрын
'Add' node works
@ytmikachu
@ytmikachu Жыл бұрын
Just type a "+" and it will create a "add" note
@Domeoc_VR
@Domeoc_VR Жыл бұрын
Can this road be exported as an FBX and contain the whole road?
@CommanderColson
@CommanderColson 2 жыл бұрын
Fantastic tutorial. How would you go about getting an object to ride along several different splines? For instance, lets say the player is in a space ship and they have the choice to fly to planet A, B, or C. Let's say the player clicks 'B', so the space ship knows to then move along spline B down to planet B. The player gets out of the ship, explores planet B for a bit, and then returns to the space ship with the desire to travel to planet C. Now back in the space ship, the player clicks 'C', and the space ship then moves along a spline that travels from planet B to planet C. All of the splines would be interconnected with all of the destinations, so the player could freely pick which one they want to move along, and the ship will travel there. Does that make sense? How would you do something like that, and would you use splines?
@Yannnus
@Yannnus 2 жыл бұрын
You should maybe put invisible collision box around the cars and when they touch that box, it will activate some "stop" action. It's just my opinion :)
@midnightaha
@midnightaha 2 жыл бұрын
Nice Bro
@shankark3250
@shankark3250 2 жыл бұрын
Can you tell how to make ball catching mechanism....by hand
@Smartroid
@Smartroid 2 жыл бұрын
Spiderman wall climb and web swing bro still waiting for it
@Chainless_Slave7
@Chainless_Slave7 2 жыл бұрын
Yess
@HalValla01
@HalValla01 Жыл бұрын
So apparently trying to have one mesh between two spline points that are far away from each other (think one long straight road) isn't ideal for this BP. I had my mesh stretch like it was being pulled into a black hole
@HalValla01
@HalValla01 Жыл бұрын
needed to just add more geo xD
@michellegutierrez6949
@michellegutierrez6949 2 жыл бұрын
How would you add multiple actors to one spline?
@ThomasSampek-jq9ex
@ThomasSampek-jq9ex 4 ай бұрын
So there's 80+ comments not talking about the most important thing, the texture isn't tiling along the spline how can i achieve that without spamming points on my mesh spline? is there a way to set tiling on a spline segment based on the distance between the 2 points of the segment?
@pvpgate7356
@pvpgate7356 7 күн бұрын
hi, plz tell me if you found the solution
@Restrictz
@Restrictz Жыл бұрын
What about cross sections?
@eligijuspranskunas3509
@eligijuspranskunas3509 2 жыл бұрын
Can someone help: how to in widget, access another widget (get another widget variables) ?
@dapperroag
@dapperroag 2 жыл бұрын
how do you add collision to the mesh?
@txetxu65
@txetxu65 2 жыл бұрын
Hi Mat,how create the colision in road splines,i created in static mesh and individual is ok but by blueprint dont exist,lost colision.
@MattAspland
@MattAspland 2 жыл бұрын
I believe the collision settings for this are under the "add spline mesh component" node we created
@williamquaresma2529
@williamquaresma2529 2 жыл бұрын
inside the node "add spline mesh component" setup collision to something like blockall
@PhatNguyen-cu2bx
@PhatNguyen-cu2bx 2 жыл бұрын
You can make a animation batman combat
@eyeemotion1426
@eyeemotion1426 Жыл бұрын
As I've seen other tutorials like this, to easily create rails, pipes and stuff along the splines, but why would you use is for creating roads? As Unreal Engine has this feature already covered in their landscaping mode, where it even automatically adjusts the landscape if you lower or raise the road.
@jasonterry9343
@jasonterry9343 Жыл бұрын
No intersections?
@elliottberkley
@elliottberkley Жыл бұрын
Does any one know how to make the spline end connect to the spline beginning? Not by lining it up but by creating a loop.
@rom15555
@rom15555 Жыл бұрын
There is a property called Closed Loop in the spline
@elliottberkley
@elliottberkley Жыл бұрын
@@rom15555 I'll try it when I get home. Thanks!!
@MrTreeGuy
@MrTreeGuy 2 жыл бұрын
very nice also how are u?
@MattAspland
@MattAspland 2 жыл бұрын
Thanks, and good thank you, how are you?
@MrTreeGuy
@MrTreeGuy 2 жыл бұрын
@@MattAspland Nice! I'm good too
@joespaulding6155
@joespaulding6155 10 ай бұрын
If you created it so quickly on blender why not include that part? So frustrated right now.
@FuelzH
@FuelzH Жыл бұрын
My thing isn't curving
@AdireetiVlogs
@AdireetiVlogs 2 жыл бұрын
hey my material strechting
@Shexuja
@Shexuja 2 жыл бұрын
his material was also stretching from spline to spline. to make it better you'd need to find the bounding box of an object and and have it add a new component every x instead of every spline. alternatively you can. just add a new spline every x manually to solve the problem
@DarkRodFR
@DarkRodFR 2 жыл бұрын
is it possible to make à loop ? this video is for A to B not A to A :(
@MattAspland
@MattAspland 2 жыл бұрын
To make a loop you can just do what I did at the end of the video when I created my mesh in the level
@joker-jd3jd
@joker-jd3jd 2 жыл бұрын
How to make phone vibrate
@hillock10
@hillock10 Жыл бұрын
Why are you talking so slow? Talk much faster. It is not important for beginners to understand the basics, like what is a blueprint, what is a spline.
@TAEINT
@TAEINT 9 ай бұрын
theres an option to set the speed of the video? 🤔🤯
@youtubeperson199
@youtubeperson199 4 ай бұрын
Should have just built the whole road in blender arrayed it down a curve and exported it
Unreal Engine 4 Tutorial - Splines - Spline Meshes
21:21
Ryan Laley
Рет қаралды 218 М.
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 61 МЛН
Lehanga 🤣 #comedy #funny
00:31
Micky Makeover
Рет қаралды 26 МЛН
SPILLED CHOCKY MILK PRANK ON BROTHER 😂 #shorts
00:12
Savage Vlogs
Рет қаралды 42 МЛН
路飞太过分了,自己游泳。#海贼王#路飞
00:28
路飞与唐舞桐
Рет қаралды 42 МЛН
How To Make Organic Shapes In Unreal Engine 5 | Splines Tutorial
8:35
Pathways & Roads using RVTs [UE4/UE5]
20:46
PrismaticaDev
Рет қаралды 38 М.
Unreal How to Make a Mesh follow a SPLINE
9:08
The Game Dev Cave
Рет қаралды 30 М.
How to Make Roads with Splines in Unreal Engine 5
11:25
Gorka Games
Рет қаралды 89 М.
Populating Meshes Along a Spline | Tips & Tricks | Unreal Engine
11:49
When Your Game Is Bad But Your Optimisation Is Genius
8:52
Vercidium
Рет қаралды 1,5 МЛН
Landscape Road Spline Tutorial - Unreal Engine 4
10:08
Smart Poly
Рет қаралды 147 М.
Урок 18 | Unreal Engine 4 Blueprint - Spline   Сплайн (подробно)
26:59
Cyberstars - Как создать игру
Рет қаралды 27 М.
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 61 МЛН