PCG Spline offset

Hello everyone!

I made a house in PCG using splines with the help of tutorials. However, I encountered a problem: I need to generate a road and a grassy area around the house itself.

I tried changing the offset in transform points, but this results in the road corners disappearing.

When using Create Spline, there’s no way to change its dimensions.

The only option left is to somehow calculate the inner contours. But here too, I can’t figure out how to do it. The first line following the spline turns out fine. But how do I get the second, third and etc. line?

Thank you!

First line:


What I get from spline sampler:

What I need to get:

Source BP code

Hi there @M4t1k,

This should give you the result you’re looking for:

Each node is labeled with the changes that they need.

Once you set it up you’ll be able to debug and see what each step does, but basically, I’m combining all points to get a large centralized bounds, adjusting the bounds size so it doesn’t intersect with the outer points, then removing points that overlap with the bounds. For the second level of points, this process is repeated with a smaller bounds, and the first layer of points is removed by comparing it to the first level point calculation. Then, you should just be able to repeat this process for however many levels deep you wish to go.

Hope that helps! Let me know if you have any other questions.

1 Like

It works! Thank you, now I know about boutnds modifier!