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
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 6 11 5 hours ago
Last Post: Thinkurvy
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
  Adjust radius of generated mesh via script? Shackman 1 4 03-26-2024, 01:12 PM
Last Post: _Aka_

Forum Jump: