Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gap between spline mesh segments
#5
Hi
Thank you for the reproduction case.
From what I can see, the issue is due to minor imprecision in the computation of the tangents/handles. One can pursue fixing the imprecision, but I am thinking about a simpler solution: generate the track as a single mesh. When done like that, no gaps appear. This solution has two variants: either generating the whole track as a single mesh at each update of the spline, or keep your current solution when putting spline CPs (left clicks) and generate the whole spline only at the end of the spline drawing process (right click).

Compared to your solution, the downside of the one I suggest is of course lesser performance, but I am wondering if in your scenario the cost of generating the whole track as a single mesh is really a problem. This is a genuine question, since I don't know what are your constraints. As I can see from what you shared with me, the setup of your generator can be optimize if some conditions are met. For example, avoid generating the mesh collider when drawing the spline (I guess at that point no physics interactions are supposed to happen?). Also, you can avoid generating the UV2 coordinates, as long as you don't need them for light-map baking.
Also, this page might be helpful in the optimization process: https://curvyeditor.com/documentation/pe...tips/start

Did this help?
Have a nice day
Please consider leaving a review for Curvy Splines, this helps immensely. Thank you.
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
  Spline Spots from 2 samples. BitBlit 8 776 06-30-2026, 11:49 AM
Last Post: _Aka_
  Best way to duplicate a spline with an offset Kapistijn 8 2,155 04-12-2026, 03:18 PM
Last Post: _Aka_
  Is there a way to generate UVs along deformed and copied mesh? kubak 1 587 03-18-2026, 08:34 PM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 885 11-13-2025, 11:32 AM
Last Post: _Aka_

Forum Jump: