Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Procedural Connections
#1
Hey there!

I'm using Curvy to generate some roads at runtime. I generate roads in segments by spawning a pre-set-up prefab with the generator, adding control points, then use a CurvyConnection to snap the end of one segment to the start of the next. The issue is that using bezier curves doesn't seem to connect the meshes nicely. If I use TCB curves and manually set the follow-ups (which aren't set automatically for some reason like other curves) it looks a lot better, but still not perfect.

Attached are some screenshots illustrating my settings and the issue I'm seeing.

Here is the code that is generating the connections:
Code:
var firstPoint = trackSpline.Add(currentPosition);
if (previousSegment != null)
{
    var connection = CurvyConnection.Create(previousSegment.trackSpline.LastVisibleControlPoint, firstPoint[0]);
    connection.SetSynchronizationOptions(true, true);
}

Any help is appreciated. Thank you!


Attached Files Thumbnail(s)
           
Reply


Messages In This Thread
Procedural Connections - by Janooba - 10-21-2024, 03:46 AM
RE: Procedural Connections - by _Aka_ - 10-21-2024, 10:23 AM
RE: Procedural Connections - by Janooba - 10-23-2024, 12:40 PM
RE: Procedural Connections - by _Aka_ - 10-23-2024, 02:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Connections Between Opposing Splines lockiidraws 1 565 12-04-2025, 02:14 PM
Last Post: _Aka_
  Connections doesn't work in split scenes nehvaleem 4 2,844 05-29-2024, 07:31 AM
Last Post: _Aka_
  Help with procedural roads and splines ramiroflores 1 1,568 05-07-2024, 08:57 AM
Last Post: _Aka_
  Connections Problem Juton 3 2,234 03-06-2024, 10:41 AM
Last Post: _Aka_

Forum Jump: