My splines are missing links and has no material

I have a spline to which I added spline mesh components. These are added for the most part successfully, but some end up missing, and a few are twisted into a point at certain areas. You can see these if you look carefully. Further, no matter how many times I try to apply a material to the spline meshes they stay the default checker pattern.

The missing parts are to the top right and to the top left. I have noticed that only splines with more than two VERTICAL links are missing. The pink material is being applied in the code below:

EDIT:
It might be of interest to see the problem in a gif. The white lines are the missing segments and the spline is not pink, as the material I applied should be.

1 Like

You need an AttachToComponent node in there. Am using this recently:

I only found an AttachComponentToComponent, but that did not work. Nothing changed.

So you pull the pin from AddSplineMeshComponent, it’s there. What engine do you have? ( 4.24.3 )

4.25 is what I am using. They changed it so now there are only three: Actor to actor, Actor to comp, comp to comp.

Meh, sorry, will bail at that point. It basically looks ok, maybe something with 4.25?..

EDIT: Although the code is different in other aspects…

Ok, so after a lot of headache and a lot of frustration I managed to find the solution thanks to the great UE4 community.

To break it down, there are two simple fixes.

First, the breaks:
Vertical splines are broken due to the rotation matrixes or quaterions. I dont know the details, but all problems went away as soon as I laid it flat. All I did was move Y and Z to X and Y.

Second, the colour:
The material one applies has to be made for splines. Or rather, the setting to use it with splines must be checked. Once I did that all issues vanished.

Result:

1 Like

Jolly good :slight_smile:

Second, the colour:
The material one applies has to be made for splines. Or rather, the setting to use it with splines must be checked. Once I did that all issues vanished.

Thanks!