Spawn Props on ANY Shaped Table Using PCG | Unreal Engine 5

  Рет қаралды 4,667

Procedural Minds

Procedural Minds

10 ай бұрын

This is a UE5 tutorial showing how to procedurally spawn different tables and spawn items on them without needing to worry about what kind of table shape you have.
---------------------------------------------------------------------------------------------------
Patreon: / procedural_minds
Discord: / discord
Twitch: / krozjin
---------------------------------------------------------------------------------------------------

Пікірлер: 41
@hristozafirov7110
@hristozafirov7110 6 ай бұрын
This tutorial is a hidden gem! Really nice, explanatory and well put together. Thank you so much for this 🙏 That's a deserved sub there ❤
@Procedural_Minds
@Procedural_Minds 6 ай бұрын
Thank you very much, and welcome to the community! :)
@PeterKLee255
@PeterKLee255 2 ай бұрын
amazing tutorial!! thank you for sharing!
@Procedural_Minds
@Procedural_Minds 2 ай бұрын
You're welcome, thanks for watching! :)
@Sworn973
@Sworn973 Ай бұрын
Last thing would be to get rid of stuff that are way to the edge, like some tols or vases that were in a weird position that would otherwise just fall, besisdes that, it is super helpful!
@Procedural_Minds
@Procedural_Minds Ай бұрын
Yup. You can use difference nodes or intersection nodes to control where you want and don't want them. :)
@MrPangahas
@MrPangahas 10 ай бұрын
nice video pls do more of these pcg graphs.Can you put pcg graphs inside another pcg graph or use bps instead of meshes.I wanted to make like a graph that scatters houses but I wanted the walls doors windows etc.of each house randomized for each house.Would be great if you can make a video similar to that.
@Procedural_Minds
@Procedural_Minds 10 ай бұрын
I believe yes you can put PCG graphs inside other graphs, though I haven't personally found a use case for myself on that. And you can definitely spawn blueprints with Spawn Actor node instead of the Static Mesh Spawner. As for the house idea, you'd basically setup the graph for a house, and then just copy points to another set that spreads them. I can look into showing a setup like that in the future though. :)
@saharyousefi7128
@saharyousefi7128 2 ай бұрын
If you are using UE 5.3 and above, you might have an issue generating points when you spline sampler is set to "on interior". Check on the "Unbounded" and that must fix the issue.
@Procedural_Minds
@Procedural_Minds 2 ай бұрын
Yup, it's an unfortunate bug that was introduced since 5.3.
@domusludus8731
@domusludus8731 27 күн бұрын
in 5.4.2 it didn't work, but I fixed it by using a non-square spline
@asharacrauwels
@asharacrauwels 9 ай бұрын
Hi, thanks for the video!! What version of UE are you using? 5.3.1 here, did 3 clean attempts but can't get anything on the tables. Looks like the World Ray Hit Query is not generation any info for the Surface Sampler. Any ideas?
@Procedural_Minds
@Procedural_Minds 9 ай бұрын
I did 5.2. I think I know what you're talking about since I ran into a similar thing. When plugging in the bounds for the surface sampler, double check that they are above the tables. Basically think of them as anything outside those boxes is removed. So if the boxes are under the table, then you get nothing since the rays stop at the table.
@ashitora2358
@ashitora2358 4 ай бұрын
I was looking for how to make trees to not overlapping, thnx
@Procedural_Minds
@Procedural_Minds 4 ай бұрын
You're welcome :)
@Jesters-Jinx
@Jesters-Jinx 10 ай бұрын
Can you do a PCG City with interiors and props on the inside? That is where I am struggling. I would greatly appreciate it.
@Procedural_Minds
@Procedural_Minds 10 ай бұрын
I believe there is already a tutorial on how to do both on youtube, but it's something that might come in the future. Trying to see if I can put my own spin on it, or add more info.
@caliedu
@caliedu 5 ай бұрын
Thanks a lot for the Tutorial! Two Questions. First, is it possible to make the Static Meshes spawn just on the interior of the spline square? Not on or outside? Second, is it possible to randomize the rotation on 90 degrees? For example, some tables would be straight on X and others on Y. Thanks is Advance!
@Procedural_Minds
@Procedural_Minds 5 ай бұрын
1 - Yes just specify on interior and use a closed loop, and you can use something like "intersection" to make sure it stays inside the spline if you end up moving points around later. 2 - I'm actually going to be making a setup for this for this Sunday's video. The ability to randomly rotate with increments, like 90 degrees. :)
@GH-zr4mb
@GH-zr4mb 6 ай бұрын
Thank you soo much for making such great tutorials! I have one question : do you recommend to merge actors to meshcombine for performance? or keeping the pcg bp on without actor the way to go keeping the pcg on is more convienient for making changes later on
@Procedural_Minds
@Procedural_Minds 6 ай бұрын
Having it fully combined into one static mesh is the most optimized I think. Just cause you're saving on the instances and each new instance mesh type.
@GH-zr4mb
@GH-zr4mb 6 ай бұрын
Thank you for your response!@@Procedural_Minds if the instances are Nanite does it mean its still optimized right? i set the spawned to static in the static mesh spawner
@Procedural_Minds
@Procedural_Minds 6 ай бұрын
@@GH-zr4mb Yup, if you're going nanite then try to have basically everything nanite. Having a mix can hurt performance a bit, otherwise you're good. :)
@GH-zr4mb
@GH-zr4mb 6 ай бұрын
Do you recommend Combining Meshes + Nanite sometimes? i think i had some nanite overdraw in one scene i was working on but the impact was Noticeable in vr@@Procedural_Minds
@Procedural_Minds
@Procedural_Minds 6 ай бұрын
@@GH-zr4mb If you have a mix then nanite overdraw and some others go up. Try setting everything to nanite and the use Nanite 0 or 1 to toggle it and see if it's better for you.
@ATomCzech
@ATomCzech 10 ай бұрын
Thanks! Great tutotrial. I just don't like fact that you must care about box sizes, when you just replace table mesh with different table shape/size it will not work right? Is there any way how to do it more universal?
@Procedural_Minds
@Procedural_Minds 10 ай бұрын
The reason the bounding box matters when spawning them, is because that's how it detects whether or not they will intersect when spreading them out. You can make a massive bounding box around all of them, just means there's be that big of a gap between everything.
@gaguto
@gaguto 10 ай бұрын
I tried to follow step by step but it didnt work for me, on Spline Sampler i keep getting errors about (intersection test failed) and spline points overlaping, if i tweak the interior spacing the error goes away but the cubes keep spawning just on the spline not on the interior (set to "on interior" tho), great video anyway!! I love how simple and quick they are, but yet full of useful tips and knowledge!! keep it up!!
@Procedural_Minds
@Procedural_Minds 10 ай бұрын
Did you set your spline in the blueprint to "closed loop"? I have a feeling that may be the problem. If it's not a closed loop then interior doesn't work.
@gaguto
@gaguto 10 ай бұрын
@@Procedural_Minds I did, but don't worry, I'll give another try later, thank you for the attention :)
@Procedural_Minds
@Procedural_Minds 10 ай бұрын
@@gaguto It's probably just some small setting somewhere that was missed. It usually is the smallest of things that make the biggest problems. Best of luck!
@asharacrauwels
@asharacrauwels 9 ай бұрын
Hi, if using 5.3(.1) try ticking the Unbounded option of the Spline Sampler. Works here. Not needed in 5.2.
@Procedural_Minds
@Procedural_Minds 9 ай бұрын
@@asharacrauwels That's great to know! I did it in 5.2 I believe so I probably didn't need it for my setup. Thanks for helping!
@llargemann
@llargemann 28 күн бұрын
what about the objects on the edge?? I was waiting for that XD
@Procedural_Minds
@Procedural_Minds 28 күн бұрын
You'd need to cut out areas not on top. I haven't tested it but I believe using an intersection node you should be able to do it.
@yeohjo
@yeohjo 10 ай бұрын
i am having trouble with the spawns on the table, my mesh seems to spawn in the middle of the table instead of on top of the table , is there something i am missing?
@Procedural_Minds
@Procedural_Minds 10 ай бұрын
Could be several things I can think of right now: - Check your collision if you're not using complex. - Check your bounds for the spawning, it's possible you're culling the top of the table instead of the ones below with the intersection - Check the bounds on the spawning to make sure your bounds reach the top of the table when spawning All of the above are nodes already in the graph, they probably just need some numbers tweaked for your specific tables.
@yeohjo
@yeohjo 10 ай бұрын
@@Procedural_Minds thanks! but i found the actual problem which was actually the pivot of the mesh, it seeems that the spawning is according the where the pivot is place once i edited the pivot to the bottom of my mesh they seems to be working fine. Thanks again !
@Procedural_Minds
@Procedural_Minds 10 ай бұрын
@@yeohjoAwesome, glad you got it working!
Bake Down PCG to a Static Mesh or Blueprint | Unreal Engine 5
5:05
Procedural Minds
Рет қаралды 4,2 М.
Modular Control Rig Tutorial | Unreal Engine 5.4
14:21
Smart Poly
Рет қаралды 68 М.
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 58 МЛН
Эффект Карбонаро и нестандартная коробка
01:00
История одного вокалиста
Рет қаралды 10 МЛН
路飞太过分了,自己游泳。#海贼王#路飞
00:28
路飞与唐舞桐
Рет қаралды 35 МЛН
Massive Village - Procedural village with PCG
1:32
Michael Simard
Рет қаралды 9 М.
Get Started With PCG 5.4 By Creating a Full Building  | UE 5.4 P1
43:26
Procedural Minds
Рет қаралды 1,1 М.
Introduction to PCG Workflows in Unreal Engine 5 | Unreal Fest 2023
56:15
PCG Layered Biomes. Basic Tutorial
10:21
LazyCatsDev
Рет қаралды 7 М.
3 Ways to Scatter PCG Points on a MESH in Unreal Engine 5
14:45
Aziel Arts
Рет қаралды 4,9 М.
Procedural Generation (PCG) under 5 mins in Unreal Engine 5!
4:44
Bad Decisions Studio
Рет қаралды 50 М.