Essentially I created a tool that imports routes via a JSON recreates them as a spline and generates an landscape also. The issue I am having is with my road spline PCG graph and how to set it up so far I have tried two methods the first result show below using a simple get spline data into a spawn mesh spline node I originally began testing it in a level and got the result as shown below:
However when running it in a new level after importing my map data the exact same PCG graph for some reason it generates squiggly like the image below. Not sure why as it is the exact same sample import data and exact same route.
This was based off this basic PCG graph below really simple but was a good starting point until the squiggles.
I am not sure what is causing this but a couple things came to mind.
The first image was the original test map I added more information into my spline route JSON to handle other aspects etc… Also new map data was generated and used in the second image.
I also began testing other aspects like editing road type etc… on the graph while testing however when reverting back to the image below it still does not apply correctly.
I think it may be something to do with the spline tangents etc… as it is affecting the way it spawns between points.
Below is the second part I tried in order to get it to project properly onto the landscape as it was not able to with the spawn spline mesh however this looked clunky.
I was hoping to get some help with the first option and understanding why it is going squiggly or either pointed in the way of an existing road spline mesh system.
Will be troubleshooting myself but if someone could help steer me in the right direction it would be greatly appreciated as I have not touched PCG since it came out!



