Generating procedural Splines with PCG

If you feed pcg sample data into a create spline, the spline is jumbled.


image

I have been trying to make procedural biomes, ponds, forests etc over a large area, but every tutorial needs a premade spline. To bound the area it needs to be a circle.

How do i make it nice and circular?
Thanks

2 Likes

Did you find an answer to make it more circular?

I know Iā€™m reviving this, but just in case anyone else comes across this like I did, the Create Spline node creates the spline in the index-order of the points passed to it. You can visualize this with the Visualize Attribute node, setting the Attribute Source to $Index.


In the above image, I am sorting the points by $Position.y


Here we switch the sort to $Position.x


And lastly, something that looks a lot more familiar to most of us, this is the points sorted by density. While it looks like chaos, we can still see that the spline is being created in index-order.

Hope that helps!

Oh my god that is SO helpful to know! Gods be praised!!

Thanks for posting :wink: you really helped me out