Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gap between spline mesh segments
#1
Hello,

I am making a railway track using a Curvy spline. In runtime, I add a new segment with a mouse click, and then use the generator to make a mesh for this segment. 

Then I can move the cursor to a new position and click the mouse button, and another curvy segment is added here and the mesh generator makes another rail mesh that connects to the previous one.

My problem is that there are visible gaps between the mesh segments. Here is an image:

[Image: YWUSKvk]

I am using a Bezier splines, and have set the handles for the control points in code, which gives a smooth spline. But the gaps are still there between the segments.

Is there a way to not have the gaps? I saw in Example scene 12 - Train there are no gaps between the rails. How was this done? I am using the same cross-section spline, the same material, and the same generator, but I am getting these gaps.

I think the problem may be that I cannot move the position of the 'Handle In' arm on the control point of the segment where the mesh has already been generated. This is because that segment of track has already been placed on the terrain by the player, and so the spline shape needs to be fixed for that segment.
Reply


Messages In This Thread
Gap between spline mesh segments - by Beaver_Boy - 07-27-2022, 11:08 AM
RE: Gap between spline mesh segments - by _Aka_ - 07-27-2022, 02:00 PM
RE: Gap between spline mesh segments - by _Aka_ - 07-27-2022, 10:49 PM
RE: Gap between spline mesh segments - by _Aka_ - 07-29-2022, 03:01 PM
RE: Gap between spline mesh segments - by _Aka_ - 07-31-2022, 08:22 PM
RE: Gap between spline mesh segments - by dromo - 10-18-2022, 06:47 PM
RE: Gap between spline mesh segments - by _Aka_ - 10-19-2022, 08:47 PM
RE: Gap between spline mesh segments - by dromo - 10-20-2022, 09:19 AM
RE: Gap between spline mesh segments - by _Aka_ - 08-06-2022, 12:11 PM
RE: Gap between spline mesh segments - by _Aka_ - 10-21-2022, 07:29 AM
RE: Gap between spline mesh segments - by dromo - 10-24-2022, 09:37 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Best way to duplicate a spline with an offset Kapistijn 8 1,367 04-12-2026, 03:18 PM
Last Post: _Aka_
  Is there a way to generate UVs along deformed and copied mesh? kubak 1 320 03-18-2026, 08:34 PM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 661 11-13-2025, 11:32 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 4,464 07-29-2025, 09:15 PM
Last Post: _Aka_

Forum Jump: