PCG Spline Sampler Not Filling Interior and Spawning Outside Spline in Unreal Engine 5.5

Hello everyone,

I’m working on a procedural room generation setup in Unreal Engine 5.5 using the Procedural Content Generation (PCG) framework, but I’m running into some issues with the Spline Sampler node. I’ve attached a screenshot of my PCG graph and the debug output for reference.

Here are the problems I’m facing:

  1. Spline Interior Not Filling: The Spline Sampler is only generating points along the edges of the spline, but the interior remains empty. I’ve set the Interior Sample Spacing to 100 and tried adjusting the Interior Density Falloff Curve, but it’s still not working as expected.
  2. Points Spawning Outside the Spline: Some points are spawning outside the spline boundaries instead of inside.

My Setup:

  • I’m using a Get Spline Data node to feed the spline into the Spline Sampler.
  • The Spline Sampler is connected to a Static Mesh Spawner to spawn objects.
  • Settings in the Spline Sampler:
    • Interior Sample Spacing: 100
    • Interior Border Sample Spacing: 100
    • Interior Density Falloff Curve: Flat (0.00 to 1.00)

Debug Output:

In the debug view, the spline appears as a closed loop, but only the edges have points, and some points are spawning outside the spline. I’ve attached a screenshot of the debug output as well.

Has anyone encountered similar issues with the Spline Sampler in PCG? Any suggestions on how to ensure the interior fills properly and prevent points from spawning outside the spline? I’d really appreciate any help or advice!

Thanks in advance!

Attachments:

100x100 Cube

Uhh hi?

hi?

Hi @HorizonNK,

Thanks for the detailed breakdown, it made reproducing this issue very easy!

Check the “Unbounded” bool in the Spline Sampler. This should solve the issue.

Thank you so much!