# My Blueprint Spline is deformed. but landscape spline looks good. why would this happen?

**URL:** <https://forums.unrealengine.com/t/my-blueprint-spline-is-deformed-but-landscape-spline-looks-good-why-would-this-happen/2552371>\
**Category:** World Creation\
**Tags:** unreal-engine, question\
**Created:** [June 12, 2025, 4:31am UTC](https://forums.unrealengine.com/t/my-blueprint-spline-is-deformed-but-landscape-spline-looks-good-why-would-this-happen/2552371 "2025-06-12T04:31:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lootAll](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lootAll](https://forums.unrealengine.com/u/lootAll)\
**Post date:** [June 12, 2025, 4:31am UTC](https://forums.unrealengine.com/t/my-blueprint-spline-is-deformed-but-landscape-spline-looks-good-why-would-this-happen/2552371/1 "2025-06-12T04:31:28Z")

</div>

I’m trying to create BP spline and the can’t get the mesh to act properly. its always deformed. But the landscape spline is able to render it perfectly with default topology.  
If i simplify the mesh (using unreal modeling tool) blueprint spline it looks good but the curves are not smooth.  
Anyone know what’s happening here. **I wanna understand what magic is Landscape spline doing.** And any link to the source code?

My spline logic at the bottom

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/2/8a2b31861cd415a138314ecb1cb3d719adaf37d7.jpeg)

The default Mesh wireframe

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/0/740a9d83e8ccea1f317d75c6969253bbc5f7c8d9.jpeg)

Simplified mesh with spline

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/1/b/51be554f40183d08e31b9bb550357663bb01fd58.jpeg)

```auto
void ARoadSplineActor::UpdateSplineMeshes() {
	for (USplineMeshComponent* Comp : SplineMeshComponents) {
		if (Comp) {
			Comp->DestroyComponent();
		}
	}
	SplineMeshComponents.Empty();

	if (!SplineMesh) return;
	float SplineLen = SplineComponent->GetSplineLength();
	float MeshLen = MeshLength;
	if (MeshLen <= 0.0f) {
		FBoxSphereBounds Bounds = SplineMesh->GetBounds();
		MeshLen = Bounds.BoxExtent.X * 2.0f;
	}
	float CurrentDistance = 0.0f;
	while (CurrentDistance < SplineLen) {
		float Start = CurrentDistance;
		float End = FMath::Min(Start + MeshLen, SplineLen);
		const FVector StartPos = SplineComponent->GetLocationAtDistanceAlongSpline(
			Start, ESplineCoordinateSpace::Local) + FVector(0, 0, 10);
		const FVector EndPos = SplineComponent->GetLocationAtDistanceAlongSpline(
			End, ESplineCoordinateSpace::Local) + FVector(0, 0, 10);
		const FVector StartTangent = SplineComponent->GetTangentAtDistanceAlongSpline(
			Start, ESplineCoordinateSpace::Local);
		const FVector EndTangent = SplineComponent->GetTangentAtDistanceAlongSpline(
			End, ESplineCoordinateSpace::Local);
		USplineMeshComponent* SplineMeshComp = NewObject<USplineMeshComponent>(this);
		SplineMeshComp->SetStaticMesh(SplineMesh);
		SplineMeshComp->SetMobility(SplineComponent->Mobility);
		SplineMeshComp->RegisterComponentWithWorld(GetWorld());
		SplineMeshComp->AttachToComponent(SplineComponent,
		                                  FAttachmentTransformRules::KeepRelativeTransform);
		SplineMeshComp->SetStartAndEnd(StartPos, StartTangent, EndPos, EndTangent);
		SplineMeshComp->SetStartScale(FVector2D(1.0f, 1.0f));
		SplineMeshComp->SetEndScale(FVector2D(1.0f, 1.0f));
		SplineMeshComponents.Add(SplineMeshComp);
		CurrentDistance += MeshLen + MeshOffset;
	}
}

```
