Search Unity

  1. Unity 2018.1 has arrived! Read about it here
    Dismiss Notice
  2. Scriptable Render Pipeline improvements, Texture Mipmap Streaming, and more! Check out what we have in store for you in the 2018.2 Beta.
    Dismiss Notice
  3. If you couldn't join the live stream, take a peek at what you missed.
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Learn more.
    Dismiss Notice
  5. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  6. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  7. 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,219
    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,204
    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,219
    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,204
    Try adjusting your orbit radii/heights to give you a nicer surface. Probably you're pushing them too hard