Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

[Solved] Spline Curvature won't go linear

Discussion in 'Cinemachine' started by jeffreyschoch, Jun 5, 2018.

  1. jeffreyschoch

    jeffreyschoch

    Joined:
    Jan 21, 2015
    Posts:
    2,305
    I've seen in tutorial videos that the Spline Curvature of a Cinemachine Free Look Camera should be making the spline go from linear, to curved.

    When I change the slider from 0 to 1, I'm seeing it go from curved, to excessively curved.

    Am I missing something obvious about how this spline works?

    Curvature = 1
    Curvature_1.PNG
    Curvature = 0
    Curvature_0.PNG
    Height & Radius Config:
    Curvature_settings.PNG
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    1,637
    The tutorials were old. The spline can't go linear any more. This is to ensure continuity of the 2nd-order derivatives of the spline - otherwise you can get angular jerks when the camera goes over the bump.
     
    jeffreyschoch likes this.
  3. jeffreyschoch

    jeffreyschoch

    Joined:
    Jan 21, 2015
    Posts:
    2,305
    That makes sense, but as you can see at either extreme I'm getting a very steep slope between the mid and bottom rig, and very little control over the curve in general. While it looks acceptable in practice, it's not my desired outcome. It would be great to be able to control the tangents of the spline manually or something to create a more balanced curve. I'd preferably like to avoid changing my shots to accommodate the interpolation.

    This is my first dive into Cinemachine, so I'm sure I can find another way to get the results I'm looking for. I'll be experimenting with other approaches once I'm home later, but if you have any suggestions I'm all ears.
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    1,637
    Try adjusting your orbit radii/heights to give you a nicer surface. Probably you're pushing them too hard