Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Transitioning or blending two mesh extrusions
#2
Hi

This answer will only address the geometry/mesh aspect of intersections. If you are asking also about how to move objects along intersections, please do clarify this to me.

Curvy Splines does not have a feature that merges multiple extrusions (roads,tunnels, etc) in a way that handles the intersections properly. Here are some ways to work around this:

  1. Implement a custom mesh merging logic: When the Curvy Generator finishes generating, it (and the relevant modules) triggers an OnRefresh event. You can listen to that event to merge the generated meshes properly.
    I believe the proper mesh merging logic might need to use Boolean Operations. This might be helpful:
    https://stackoverflow.com/questions/5622...h-in-unity
  2. If the possible intersections are limited (for example only 90 degrees intersections), you can prepare a mesh per possible intersection, and then place those meshes at the intersections:
    • When generating your tunnels, use the Range parameter in the Shape Extrusion so that the generated tunnel does not start at the intersection position, but a little further.
    • Place the right pre-made intersection mesh in the empty space. A simple, no code method is to use a spline controller. Another method, using the API, is to use CurvySpline.Interpolate method (and GetTangent method to help orienting the mesh).

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
RE: Transitioning or blending two mesh extrusions - by _Aka_ - 10-07-2023, 09:17 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_
  Adjust radius of generated mesh via script? Shackman 1 4 03-26-2024, 01:12 PM
Last Post: _Aka_
  Not seeing mesh extended after following YT PaulM 1 3 02-02-2024, 12:01 PM
Last Post: _Aka_
  Trigger Zones along Spline Mesh dlees9191 1 5 01-05-2024, 10:18 AM
Last Post: _Aka_

Forum Jump: