Procedural Road Generation in Unreal Engine 5 (PCG)

  Рет қаралды 2,075

DK 3D

DK 3D

Күн бұрын

Пікірлер: 39
@unreal_metronomus678
@unreal_metronomus678 21 күн бұрын
Great! Now we need intersections and crossings with the help of grammar 😊
@lievengouwy1972
@lievengouwy1972 21 күн бұрын
I guess we can add a intersection mesh where we want it. it would be amazing if we could snap it to the pcg mesh though
@blackopscg
@blackopscg 21 күн бұрын
Finally, after a long wait, worth it. Thanks again!
@messiah001
@messiah001 21 күн бұрын
Finally!!! 🤩
@Puviwat-X21
@Puviwat-X21 14 күн бұрын
Thanks
@Dash_Dominion
@Dash_Dominion 21 күн бұрын
Thanks 🙏
@piszczu4707
@piszczu4707 20 күн бұрын
It seems that collision of my mesh stopped to work with spline. When I put a road part in the scene, there is a collision, but with this spline generator i can't run over the road because there is no collison. Did I messed something up when following video? How to fix it?
@dk_3d
@dk_3d 20 күн бұрын
In the Spawn Spline Mesh node, you have options for Collision, choose for example Block All there
@piszczu4707
@piszczu4707 20 күн бұрын
@dk_3d Indeed! Now would be great to spawn blueprints as well, not only static meshes. I see there Spawn Actor node but we cant do the same as with meshes as there is no MeshSelectorType to set it by attribute. What would be the easiest way?
@dk_3d
@dk_3d 20 күн бұрын
@@piszczu4707 Yes, I'm doing Decal spawning to get potholes etc. over the road with BP. (Spawn Actor). In the Spawn Actor Property override you can map attributes from PCG to inputs to your BP. I may create a tutorial for this as well, I didn't want to get this one too long, since ppl are not happy when my videos go over 2 hours :)
@lievengouwy1972
@lievengouwy1972 19 күн бұрын
For the ItemSimple version, I have the issue that (because we multiply ItemPosition with -1), when I set a meshtransform on the Z-axis, the mirror side is also mirroring the height so it will lower in the ground when I raise the source. Is there a way to only multiply the Y-axis?
@dk_3d
@dk_3d 19 күн бұрын
Multiply by vector (1,-1,1)
@piszczu4707
@piszczu4707 13 күн бұрын
How can we stretch each mesh to fit the length of the spline? So that when the mesh is of size 400cm and we make a spline of length 500cm it will be stretched to fit it? We should do it somewhere in PCG I guess, not the blueprint?
@dk_3d
@dk_3d 13 күн бұрын
Yes it is done in PCG -> you can see it around 55:00, or watch the spline mesh PCG tutorial lined in the description. You get the bounds from the mesh and calculate the size from it.
@piszczu4707
@piszczu4707 13 күн бұрын
I had something different in mind. For example, we have two curved items in your video: road mesh and boundary mesh. They are of different sizes so in spline sampler you set their sizes to increment value and this is fine. But what I meant is that it would be even better if we would stretch the meshes to fit the length of entire spline. Do that if the spline is of length 900, instead of puting two 400cm meshes and making a gap of 100, we could stretch each mesh to 450. Something like here but this is in blueprint, not pcv kzbin.info/www/bejne/qJ61d6d9fNCgnas
@dk_3d
@dk_3d 8 күн бұрын
@@piszczu4707 Instead of auto calculating the size like now (so 680 for the road and 400 for the barrier) you can have input value of the lenght you want So if you enter 900 it will strech everything to 900. So in short don't calculate the value but use Float input.
@lievengouwy1972
@lievengouwy1972 21 күн бұрын
My biggest question: how expensive is this? would it be best, once you have laid out the road, to convert it to something simple, get rid of the pcg setup? in the case of having many roads...
@dk_3d
@dk_3d 21 күн бұрын
When working with PCG, you always have the option after you generate it to detach it from PCG graph by a single button click. In the PCG component you have a button to stop the link between the graph and the Instances in the level and it will remain as you generated it.
@peterallely5417
@peterallely5417 21 күн бұрын
So this method isn’t creating points for each mesh among the spline?
@dk_3d
@dk_3d 21 күн бұрын
it is creating points for each mesh those points are then used to create new spline for them, you can use the points for everything else you need in your graph, they are still there.
@peterallely5417
@peterallely5417 20 күн бұрын
Great, I was hoping to be able to remove some meshes or swap them using differencing. Thanks for your generosity sharing these methods.
@piszczu4707
@piszczu4707 21 күн бұрын
Awesome! However, there is one extremely important thing to me that I think will not work with this approach - auto landscape generation. I mean in landscape mode there are also splines with the difference that if we raise the spline up, the landscspe will automatically goes up as well. Is it by any chance compatible with landscape mode or we have to separately fill any gaps below spline?
@lievengouwy1972
@lievengouwy1972 21 күн бұрын
Yes I was thinking the same. but I have to say, the auto landscape is a mess. As soon as you have a bit of a slopey surface, the auto landscape is struggling big time and adjusting it is a disaster. in this presented version you can manually adjust your splines to the landscape.
@peterallely5417
@peterallely5417 21 күн бұрын
Look into the “landscape patch” plugin that ships with the engine. You just spawn these patches along your spline and the landscape with raise and lower to meet it.
@peterallely5417
@peterallely5417 21 күн бұрын
The real advantage of the landscape splines is the ability to connect the meshes by sockets. Like a road end socket to one of an intersection’s sockets
@lievengouwy1972
@lievengouwy1972 20 күн бұрын
@@peterallely5417 Yes I used it like that. No such thing for the splines done in selection mode?
@piszczu4707
@piszczu4707 20 күн бұрын
@@peterallely5417 Indeed works! But actually not with the road generated with the spline coming from approach mentioned in this video because, at least in my case, the spline somehow damages the collision of my static mesh. Am I the only one?
@HajahBoy
@HajahBoy 20 күн бұрын
unreal 5.3 it possibel
@dk_3d
@dk_3d 20 күн бұрын
Spline Mesh in PCG is only available from 5.5
@crazyguy7585
@crazyguy7585 21 күн бұрын
hey bro can you make a motorbike system ur much familiar with vehicle if u can make it. i will buy it
@dk_3d
@dk_3d 21 күн бұрын
Well I plan to do a motocross bike, but it will take quite some time, so don't expect it to soon :)
@crazyguy7585
@crazyguy7585 21 күн бұрын
@@dk_3d sure bro take ur time and please add some drift as well like real bike do on speed turn with break.
@IndigoKidda
@IndigoKidda 20 күн бұрын
the advanced bikes on marketplace is decent enough, just be sure to put the asphalt physical material on any mesh it drives on or it wont ride properly, ive took real models n just put the mesh over the adv bikes skel and it looks legit and drives great
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Data Layers | Unreal Engine 5
18:00
The Sound FX Guy
Рет қаралды 13 М.
PCG + Geometry Script in UE 5.5 - Wall Generator Tutorial
1:26:03
UE5 Layered Material Workflow Breakdown - Intermediate class
1:20:11
Daniel Cormino
Рет қаралды 17 М.
Why Unreal Engine 5.5 is a BIG Deal
12:11
Unreal Sensei
Рет қаралды 1,7 МЛН
Spline Meshes Are Now in PCG, So I Made a Procedural Rope Bridge
22:07
Procedural Minds
Рет қаралды 2,7 М.
It's Time For Gaussian Splatting // Tutorial
20:14
Default Cube
Рет қаралды 150 М.
i paid Fiverr devs to make a game in Unreal Engine 5
10:05
samyam
Рет қаралды 185 М.
Unreal Engine 5 PCG Landscape and Spline Tutorial
21:00
Some Design Tutorials
Рет қаралды 21 М.
Epic's Unreal Optimization Disaster | Why Nanite Tanks Performance!
13:07
Threat Interactive
Рет қаралды 329 М.