[PCG] Landscape spline support ?

Hi UDN !

On our project, we’re using PCG for a lot of different problematics, and few of them would need a proper way to deform the landscape as well (like paths, road, etc.).

We struggle quite a lot on this topic, out of PCG, we use Landscape splines, but they are not compatible at the moment with PCG.

Is there any plans to have such support ? (Like we have the create spline node which can output a spline component for instance).

As Landscape splines seem way different than regular splines, I couldn’t use a post PCG generate process to set up the proper data on a LandscapeSplineActor.

If you have any advice on how we could achieve such thing that’d be great !

Thanks a lot,

Guillaume

[Attachment Removed]

Steps to Reproduce[Attachment Removed]

Hi Guillaume,

We haven’t planned to do a create landscape spline option (mainly because we don’t use them so much internally), but I think with some C++ code it wouldn’t be too hard to create one from a PCG spline, though I think it’ll take some elbow grease.

Basically you could call/replicate ALandscapeProxy::CreateSplineComponent, then write to the control points and segments (GetControlPoints & GetSegments) and then force a rebuild (RebuildAllSplines).

Hopefully that helps a bit,

Cheers,

Julien

[Attachment Removed]

Hi Julien !

Thanks for your reply, it’s good to know thanks, we’ll check this on our side and see what could be done.

Cheers,

Guillaume

[Attachment Removed]