UE5.2: PCG - Using Splines for Content Distribution

  Рет қаралды 29,872

UnrealityBites

UnrealityBites

Күн бұрын

IMPORTANT NOTE: THIS TUTORIAL ONLY WORKS FOR UNREAL ENGINE 5.2
Too many things have change in PCG in v5.3 so I will have to redo this video for 5.3 and beyond at some future date.
In this UE5.2 Procedural Content Generation tutorial, I'll show how to use splines to create varied content radiating out from the centre of the spline area, including content on the perimeter such as fencing or other items.
00:00 - Intro
01:08 - Setup Blueprint & PCG Graph
05:39 - Inner Content - Rocks
17:37 - Outer Content - Shrubs
23:06 - Control Parameters
30:50 - Perimeter Content - Small Shrubs

Пікірлер: 72
@unrealitybites763
@unrealitybites763 Жыл бұрын
IMPORTANT NOTE - In the 5.2 update, they changed the name of the PropertyToParamData node. You should now use GetActorProperty instead (does the same thing)
@peterallely5417
@peterallely5417 4 ай бұрын
Hello friend, have you managed the time to rework this one for current Engine versions?
@brandondunbar9448
@brandondunbar9448 10 ай бұрын
For those using 5.3 and wondering why your debug points are along the spline despite setting "On Interior", make sure you've selected "Unbounded". Also, DensityNoise was replaced by AttributeNoise in 5.3.
@SBBBurney
@SBBBurney 8 ай бұрын
Thank you SO MUCH.
@MrLynxOblivion
@MrLynxOblivion 6 ай бұрын
holy cow, thanks been goin crazy looking for this shit......legend
@moosenasturtium9583
@moosenasturtium9583 Ай бұрын
Annoyingly, that doesn't seem to have any effect in 5.4
@An0therR0gue
@An0therR0gue Жыл бұрын
i remember watching a "Ghost Recon Wildlands" GDC talk a few years ago showing how UBI Soft used Houdini to do large scale procedural landscaping tools for creating the large openworld, and thought god I am never gonna learn that. I even tried Houdini a few times (unsuccessfully). I'm glad Epic put PCG in the Engine/plugin, so even amateurs have a chance to create some truly great worlds using procedural tools. And thanks to KZfaqrs like ourself who teach us how we can use them (in this case PCG). Cheers for the video. Look forward to seeing more.
@GreyManFaustus
@GreyManFaustus Жыл бұрын
Feels so good to be adressed as an artist or developer as if you were an artist or developer
@gameof.football
@gameof.football Жыл бұрын
This is truly great tutorial, thank you very much for sharing you knowledge with all of us :)
@demetherios571
@demetherios571 Жыл бұрын
Amazing Clear and concise tutorial. An absolute pleasure to learn in such methodic manner. Thank you!
@AiTechEconomy
@AiTechEconomy Жыл бұрын
Epic should hire you to do all there guides!
@natxmctavish5639
@natxmctavish5639 Жыл бұрын
Excellent tutorial, it has helped me to be efficient in my workflow when creating virtual scenarios and biomes. Thanks ! you're great UnrealityBites !! 😎🍾
@alexgomez-bi2bk
@alexgomez-bi2bk Жыл бұрын
You have such a great clear and concise voice. No skipping over anything either. Explanation of nodes and all.
@archichampin
@archichampin 10 ай бұрын
Really nice and straight to the point, well done and thank you for helping us
@OnigoroshiZero
@OnigoroshiZero Жыл бұрын
This is absolutely amazing!! It has everything I wanted to see (project to landscape from spline, and parameters), thank you.
@meskalation
@meskalation 10 ай бұрын
Indeed. Everyone only showed spline pcg on a flat landscape - so projection on landscape wasn't in any video i've watched before. Thabks! :)
@sifudarryl
@sifudarryl 10 ай бұрын
I love your videos and voice. You not only do things but explain why you are doing them which is refreshing for tutorials out there. I had a question though. Has anyone tried this in 5.3 (final release) yet? Everything works in 5.2, but when I set up my spline in 5.3 and set the spline sampler to "on interior", the debug points follow the spline path, not the interior.
@unrealitybites763
@unrealitybites763 10 ай бұрын
Try setting the "Spline Sampler" node to Unbounded. I think that must be a new option.
@joserororo9240
@joserororo9240 Жыл бұрын
It is a very powerful tool..., Unreal never ceases to amaze me..., thank you very much for sharing it, un Saludo
@motiontofu3519
@motiontofu3519 Жыл бұрын
Thnx for great tutorial! One thing i have to add: usually u want to transform points before projecting them on landscape to avoid any weird flying rocks or other position bugs.
@motiontofu3519
@motiontofu3519 Жыл бұрын
oh wait, i was wrong, sometimes u want, sometimes u absolutely dont :D sorry!
@yalcin1234
@yalcin1234 Жыл бұрын
Perfect ❤
@ParikshitBhujbal
@ParikshitBhujbal 8 ай бұрын
Thank You UnrealityBites , by watching this video I was able to create my very first Circular Forest environment. :) The only thing I decided to add was to put a fence around my brand new Forest (I dl a modular fence mesh from Megascans & put it on the circular spline itself , with the distance between two points equal to length of the fence). However I have encountered a problem , My fence are not fitting each other , there are angular gaps in between, and if I try correct that using Z rotation , say I made it look nice and proper at 4 o'clock and 5 o'clock of the circular fence perimeter, then that also works for its diagonally opposite 10 o'clock and 11 o'clock but for any other directions, ANGULAR GAPS start appearing between the fences again. How does one make it so that there are no angular gaps and that the fence fit each other properly? Thank you for creating these videos, You make it so that even a beginner can understand UE now, keep up the good work :)
@xirtus
@xirtus 4 ай бұрын
I love your lessons are you putting your work up? I'd sub to a patreon if I had to to get some of these sandscapes already blueprinted, I hope you start sharing / selling them!
@dinamicasvisuales
@dinamicasvisuales Жыл бұрын
Geni!!
@nov3000
@nov3000 Жыл бұрын
great thank you
@wise.advice
@wise.advice Жыл бұрын
Thank you for your great tutorials. Do you know how to create infinite landscape using world partition and pcg? Something simple, for instance dunes landscape with some rocks from your previous videos.
@ahsanmunir3286
@ahsanmunir3286 Жыл бұрын
Thank you so much for this! Quick question.. is it possible to confine the spline to a masked area in the landscape? if yes, could you share how?
@samuelkilik8233
@samuelkilik8233 11 ай бұрын
wow thnks
@porterdesignandmotion
@porterdesignandmotion 8 ай бұрын
This is a great tutorial and super easy to follow. Curious. I am running into an issue where after I have generated my pcg (in my case a forest of trees and shrubs)...I want to render my scene in sequencer, but unreal crashes upon render. Without the pcg graph and BP created in this demo, my scene renders just fine. Curious if there is anything specific that needs to be set up to support rendering with movie render queue with pcgs. Thanks!
@LanciaSiluri
@LanciaSiluri Жыл бұрын
Would be possible or wise to get one base material on the landscape, and have materials added tot the pcg that will project on the landscape?
@FatalisArx
@FatalisArx Жыл бұрын
HI, can you do all new features for UE5.2 in your videos ! also what is your PC specs ! thx
@andrinSky
@andrinSky Жыл бұрын
Hello, thank you very much for this helpful Tutorial. I have one Question: when there are some houses on the Ground: how can i change the Code, that there are no Plants or Rocks inside the Houses?
@unrealitybites763
@unrealitybites763 Жыл бұрын
Yes, watch my earlier video here on how to create exclusion zones for your spawned content: kzfaq.info/get/bejne/iKh2qc6Xv96uep8.html
@CeloyG
@CeloyG Жыл бұрын
How does "reverse culling" work in pcgs? I want to use nanite grass up to a certain distance and then use billboards in the distance to improve performance, but i can't find a way to make static meshes or foliage only render after some distance, and not render next to the camera/player.
@openworldtools
@openworldtools Жыл бұрын
Probably not possible with PCG but you can do that by putting the billboard as last LOD for your grass mesh. Even if you use Nanite, it still switches the LODs if you have them.
@andyseabrookUK
@andyseabrookUK Жыл бұрын
So I wonder if you have any insight in how we can tie PCG points to particular landscape layers or textures, and if the later if we could bar particular textures, for the water layers for instance.
@unrealitybites763
@unrealitybites763 Жыл бұрын
This video from Freetimecoder gives the broad outline of how you would do that but it involves some coding. kzfaq.info/get/bejne/idKXgKlzyNm7e6c.html I hope Epic add landscape layer masking to PCG soon.
@KLANGFABRIKART
@KLANGFABRIKART 6 ай бұрын
Is it possible to project onto a static mesh instead of a landscape?
@makoado6010
@makoado6010 Жыл бұрын
just a simple question. there is a way filter the too close points? i mean i need this resolution what the first scan make, to span grass, shrubs like foliage, but when i span trees, rocks i want to make sure that there at least 10..30m between spawns or more to avoid clipping big trees. and also how to prevent spawning grass inside rocks and trees?
@unrealitybites763
@unrealitybites763 Жыл бұрын
For the first part of the question, use the Bounds Modifier node to add change the size and spacing of your points. For the second part of the question, use the Difference node to exclude one set of points from another.
@TheTruScipio
@TheTruScipio Жыл бұрын
Not sure if I've missed something but my BP won't even show the points existing in debug mode when I've set it to debug on the Projection node but works fine spawning meshes and debugging if I skip the Projection node. If you've an idea why that is and I might be able to rectify it without scrubbing the whole BP and starting from scratch that would be great. Either way fantastic tutorial as always, thanks for helping the little guys understand some incredible technologies
@unrealitybites763
@unrealitybites763 Жыл бұрын
A couple of things spring to mind: - Have you connected the Input Node->Landscape Pin to the Projection Node->Target? - Sometimes the points are too small to see in debug. For the Projection Node, in the debug settings, change the debug type to Absolute, Scale between 0.5 and 1
@yieau
@yieau 6 ай бұрын
Hello Sir ! I'm using 5.3 and the projection node doen't seem to work (i followed every single step from the begining of your tuto) Any idea ?
@user-fm9zo5le2v
@user-fm9zo5le2v Ай бұрын
But can you project on a mesh instead of the landscape?
@ivanbonavick227
@ivanbonavick227 6 ай бұрын
Hey! How can I project points inside a spline onto a mesh and not landscape? for example I have an iregular mesh as ground. Thanks!
@ivanbonavick227
@ivanbonavick227 6 ай бұрын
I have been able to use mesh sampler to spawn them directly on the mesh, but it limits the amount of point to triangles/vertices, or maybe there is another way to increase the number of points other than subdiving the mesh?
@DronX_
@DronX_ Жыл бұрын
is possible to use landscape blend material for distribute static mesh?
@unrealitybites763
@unrealitybites763 Жыл бұрын
KZfaqr FreetimeCoder (who did an excellent series on PCG) figured out how to do it in the video: kzfaq.info/get/bejne/idKXgKlzyNm7e6c.html I'll probably do some future tutorial on how to do this but it won't be for a while as I'm concentrating on my structure building series at the moment
@Project_Erasmus
@Project_Erasmus Жыл бұрын
It may be a silly question but, would it be possible to make a "variable" of the meshes for the blueprint? Just to quickly input trees instead of rocks, flowers for shrubs etcetera?
@unrealitybites763
@unrealitybites763 Жыл бұрын
It's not a silly question, I would also love to be able to do that but I haven't been able to figure it out yet!
@unrealitybites763
@unrealitybites763 Жыл бұрын
I have now figured out how to make a variable of the meshes for the PCG blueprint so you can quickly swap out the meshes and try new ones. It wasn't trivial, took me a few hours to figure it out, but I will share a video tutorial in the next few days as I've seen quite a few people ask the same question on forums
@unrealitybites763
@unrealitybites763 Жыл бұрын
Here is the video for setting static meshes as variables in your PCG blueprints: kzfaq.info/get/bejne/Y5mgZbiozJeyh30.html
@alexm666
@alexm666 10 ай бұрын
@@unrealitybites763 you rock! Thank you!
@minomaru-gttasukuminoura5967
@minomaru-gttasukuminoura5967 Жыл бұрын
Hi I can't find propertyToParam in UE5.2 and I can't parameterise the PCG values. Do you know of an alternative node? Thanks.
@unrealitybites763
@unrealitybites763 Жыл бұрын
Yes, PCG is every evolving and they changed the name of this node to GetActorProperty. I'll pin a comment at the top as a reminder
@cookieClarke
@cookieClarke 10 ай бұрын
Hi. I was wondering if you could advise me here. I've set up the blueprint and spline sampler just as you have it but Im getting a circular pattern as if the points are set to spline in spline sample . I have it set to interior. Im using 5.3. Its a bit confusing. Ive gone back through the BP setUps and I have it just like you set it up. Any ideas why this maybe happening? Cheers
@unrealitybites763
@unrealitybites763 10 ай бұрын
Yes, unfortunately PCG is changing all the time (still experimental). In your "Spline Sampler" node, if you set Unbounded to true, the interior sampling should come back.
@lolaswift111
@lolaswift111 Жыл бұрын
can you show how you sculpt the landscape in this video?
@avistryfe4534
@avistryfe4534 10 ай бұрын
Go to landscape. Press sculpt. Mouse over the landscape terrain and press lmb. Raise the land to the height preferred. Now select flatten. Move mouse to create a flat area for your content. There you go.
@lolaswift111
@lolaswift111 10 ай бұрын
@@avistryfe4534 Thank you very much
@TheMadKid91
@TheMadKid91 Жыл бұрын
the spline is closed loop but the spline sampler when adding the density curves gives me warning that my spline is closed loop with points and wont apply, but the spline is closed loop with 4 points how to fix it ?
@unrealitybites763
@unrealitybites763 Жыл бұрын
Make sure that you have at least 4 points in your spline in the main PCG blueprint component. Hopefully, that will solve your problem.
@samuelkilik8233
@samuelkilik8233 10 ай бұрын
WHEN I PUT DEBUG ON NOTHING SHOWS ON UE5.3... i got this working on o 5.2
@unrealitybites763
@unrealitybites763 10 ай бұрын
In the Spline Sampler node, they added a new field in 5.3 called something like "Unbounded". Make sure to have that checked, otherwise the interior points don't work.
@Trinhxuanluc
@Trinhxuanluc Жыл бұрын
@LanciaSiluri
@LanciaSiluri Жыл бұрын
does it deform the terrain, or adhere to it?
@unrealitybites763
@unrealitybites763 Жыл бұрын
Adheres to it
@avistryfe4534
@avistryfe4534 10 ай бұрын
Adhere
@lichbane01
@lichbane01 Жыл бұрын
Could you do a step-by-step on how to do this? kzfaq.info/get/bejne/idKXgKlzyNm7e6c.html I'm afraid I'm still too clueless.
@gearsofwarfenixedition3720
@gearsofwarfenixedition3720 Жыл бұрын
Pc specs?
@unrealitybites763
@unrealitybites763 Жыл бұрын
CPU - Ryzen 9 5900X GPU - RTX3080 RAM - 32GB
UE5.2: PCG - Static Mesh as a Variable
36:56
UnrealityBites
Рет қаралды 12 М.
UE5.2: PCG - Apply TRUE Density Scaling
27:01
UnrealityBites
Рет қаралды 11 М.
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 60 МЛН
Useful gadget for styling hair 🤩💖 #gadgets #hairstyle
00:20
FLIP FLOP Hacks
Рет қаралды 11 МЛН
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 24 МЛН
Smart Sigma Kid #funny #sigma #memes
00:26
CRAZY GREAPA
Рет қаралды 8 МЛН
Procedural Content Generation in UE5 |  GDC 2023
25:35
Unreal Engine
Рет қаралды 83 М.
Terrain Remix Brushes - Blender Tutorial
14:57
Jakob Menz
Рет қаралды 2,2 М.
UE5.2: Procedural Content Generation (inc. how to exclude zones)
30:04
Introducing EasyMapper for Unreal Engine 5
28:47
William Faucher
Рет қаралды 222 М.
Unreal Engine 5 Landscape Material - UE5 Tutorial
59:49
Unreal Sensei
Рет қаралды 200 М.
Света квадробер в парке! Часть 4 #shorts
0:31
Настя AmyMyr
Рет қаралды 1,4 МЛН
PLAY WITH CARDBOARD SOAP BUBBLE!#asmr
0:18
HAYATAKU はやたく
Рет қаралды 7 МЛН
Dad thought daughter wanted his food #shorts
0:10
The Nixon Fam
Рет қаралды 29 МЛН
Водитель на каблуках
0:10
РОФЛОТЮБ
Рет қаралды 3,6 МЛН
Hardest Basketball Shots Ever 😳
0:35
Red Bull
Рет қаралды 33 МЛН