Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
InfiniteTrack example: generated meshes orientations not aligned
#9
Ok, I dug into the scene 51, and found the issue. It will be fixed at the next release. Here is the explanation:

The spline orientation is set to dynamic, which basically means that the orientation at each control point is set automatically to keep a smooth result, except for control points set as "Orientation Anchor". So, when the spline is modified, extended, the orientation of existing control points can be modified too.

To avoid this, the last control point of each section should be set as an orientation anchor. This way, when the spline extends beyond that CP (Control point), CP before the anchor will not get modified. This is the fix that will be in the next update.

The orientation anchor was set only at startup, but not to the CPs created when the track is extended. That's why you never notice the issue with the initial track.

Each time the track spline is extended, only one Curvy Generator is updated, as a way to avoid recomputing sections of the mesh that is not supposed to be modified. But because of the issue I explained earlier, existing CPs got modified too. So we end up with a modified spline, but only part of the mesh follows that new spline, existing parts just keep their old mesh. The transition from one part to the other is what makes the mesh discontinuity you noticed.

After digging inside the code of the scene 51, I noticed different things that can be simplified. It will be part of the next update too.

I will PM you the new code as soon as I finish working on it.
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: InfiniteTrack example: generated meshes orientations not aligned - by _Aka_ - 01-19-2019, 10:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Adjust radius of generated mesh via script? Shackman 1 4 03-26-2024, 01:12 PM
Last Post: _Aka_
  Cant Generate Meshes At Runtime alms94 5 22 01-26-2024, 11:27 AM
Last Post: _Aka_
  Get spline from generated mesh beartrox 1 5 11-27-2023, 12:30 PM
Last Post: _Aka_
  Making "gaps" in the generated spline mesh VoltDriver 6 24 11-22-2023, 11:34 PM
Last Post: _Aka_

Forum Jump: