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/performancetips/start

Did this help?
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
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 10 21 04-17-2024, 10:57 AM
Last Post: _Aka_
  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: