Spline based mesh and custom scale at each spline points

Hi,

I’m working on some tool that is based on the flat spline meshes but requires different scale at each spline points. The easiest example would be a river / road spline but you want the width to be custom at each spline points. Scalling at the spline point using scale gizmo does seem to be blocked by default - applying the scale works on the forward axis only but it does change the length of tangents, does not affect the spline scale values. I’m able to apply different scale at each spline points manually (from the details panel) but then the mesh doesn’t seem to be affected while the spline visualization shows that properly:

Is it possible to apply a different scale at each of the spline points so that it will automatically rescale the mesh? The assumption is that the scale between spline points is linear but each of the spline points can have a different scale.
Also I would like to use the scale gizmo for that purpose.

Thanks

1 Like

Try:

Needs to be added to the update where apply location & tangents to the Spline Mesh Comps. Imagel lifted from:

I had these. The outcome I initially posted is with these already.

The blueprint

BTW, I’m on 5.2.1 if that matters.

Does it work for you if you manipulate the spline point’s X scale?

Ha! It does… Do you know why?

And also - it does when manually changing it. Is there a way to do it via the scale gizmo? (neither of the axes works)

Anyone? Basically it doesn’t make sense to me - the spline visual is deformed on the Y axis why that doesn’t impact the mesh? Why the X axis is the one to work as the Y? Is there anything that I can configure to make it working as expected?

Also is there a way to change the mode of the size gizmo to work on the scale instead of tangents? If no I’m thinking about the solution where I’ll create my own list of 3d vectors with the 3d gizmos and then map the spline points to these 3d vectors. But I’d like to avoid doing that if there is a way of changing the mode.

I think this is a regression, a bug - can’t recall it ever behaving like this.

Ok, so I did install UE 4.27 and the outcome is exactly the same:

  1. applying scale on Y axis on the spline point does scale the spline visualization shape properly but the mesh us unaffected (works from scale gizmo too, just like in UE5)
  2. applying scale on the X axis via the details panel does scale the mesh on the Y axis properly
  3. using scale gizmo on X axis changes tangents

When it comes to the scale gizmo it doesn’t seem to be a bug here as if the scale is working properly for the Y axis, using X to scale the tangents makes perfect sense. Considering that the spline visualization shape scales properly according to Y axis it seems like a potential bug somewhere on the spline logic (inverted X & Y) but then it is there for quite a while…

1 Like