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
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
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
  Is there a way to generate UVs along deformed and copied mesh? kubak 1 296 03-18-2026, 08:34 PM
Last Post: _Aka_
  Replace deform mesh on volume spots Kokoriko49 1 2,311 06-09-2025, 06:49 PM
Last Post: _Aka_
  Mesh Generation between two splines vatan 4 3,597 02-14-2025, 07:11 AM
Last Post: vatan
  Create Mesh Node, Make Static Options rickgplus 1 1,821 01-23-2025, 10:12 AM
Last Post: _Aka_

Forum Jump: