Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Camera Jitter When Loading Scene / Reloading Scene

Discussion in 'Cinemachine' started by CodyCantEatThis, May 11, 2020.

  1. CodyCantEatThis

    CodyCantEatThis

    Joined:
    Jan 5, 2018
    Posts:
    4
    Previously I had a problem trying to solve a jittering problem with the cinemachine follow camera. I eventually solved it by having a new game object lerp to my player's position within the fixed update loop. I put a rigidbody with interpolation on that game object, set the cinemachine brain to smart update, and had the camera track that game object instead of my player. After that, it was working perfectly with no jitter.

    However, I have been working on my game a lot more, and I am running into a kinda similar problem. Sometimes when I load into a new scene, or reload the current scene, the camera jittering thing happens again. When this happens, I can keep reloading the scene a few times and it will work perfectly again. I don't think it is a performance issue as I am getting a constant 60 fps. Also, it only happens when my character is moving. There are no problems if I stand still, or just move the camera.

    I also added in split screen multiplayer using multiplayer cinemachine follow cameras. When I play in split screen mode, it is harder to get a situation where the camera works perfectly.

    Any suggestions?
     
  2. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    It is difficult to say what causes the jitter.
    Could you send us a project where it happens? Or some screenshots of your setup, and a recording of the jitter? What's your cinemachine version and unity version?
     
  3. CodyCantEatThis

    CodyCantEatThis

    Joined:
    Jan 5, 2018
    Posts:
    4
    Previously I was using cinemachine 2.3.4, so I tried updating to 2.5.0 to see if it would fix my problem, but it didn't. I'm also using Unity 2019.2.13f1.

    Where can I send you a copy of my project? Also, I use some paid assets from the asset store, it it still fine to share it?
     
  4. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    I'll message you privately, and you could share the project there.