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. Dismiss Notice

Transitioning from mid-blend cuts between cameras

Discussion in 'Cinemachine' started by VincentAbert, Feb 10, 2021.

  1. VincentAbert

    VincentAbert

    Joined:
    May 2, 2020
    Posts:
    120
    Hello !
    The title sort of explains my problem : I switch from Cam A to Cam B, which works fine fine, but if I need to switch back during the blend, the camera will just instantly jump back to A. If I wait a second until the blend is finished, no issue, works as expected. I don't disable any GameObject...
    Any idea what might be causing it ?

    Thank you !
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,233
    What version of Cinemachine?
    Do you have any custom blends set up? If so, what are they? Can you show the CM Brain inspector?
     
  3. VincentAbert

    VincentAbert

    Joined:
    May 2, 2020
    Posts:
    120
    Thanks for the quick reply !

    So, I'm using Cinemachine 2.7.1 (in Unity 2019.4)

    I do have quite a few custom blends set up, including some between those 2 cameras (which are ThirdPerson Climb and ThirdPerson Main, so the second and third transitions)


     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,233
    Well, I don't see any blends with "cut" as the blend style so I can't explain why you're seeing the cut. It should be safe to interrupt a blend with another blend. Is this the only vcam combination that gives you this issue?
     
  5. VincentAbert

    VincentAbert

    Joined:
    May 2, 2020
    Posts:
    120
    Good question, I'll try other combinations tomorrow... I'm thinking that rather than actually cutting, it might actually be due to the B cam resetting its position in one frame ? (in the A -> B ; B -> A situation) But I don't know what could be causing it...

    I'll test some things and let you know.

    Vincent
     
  6. VincentAbert

    VincentAbert

    Joined:
    May 2, 2020
    Posts:
    120
    So I made some tests :
    it happens with other cameras, and the problem is not an actual cut as I suspected in my last post, but the camera actually resets its position. I made a short recording to show you, it's a bit messy, but you can clearly see the virtual cam jump when I try to revert the transition (the main cam's priority is 10, so when I set the climb cam's priority to 1 it goes back to the main one, and when I set it to 11 it activates it again)



    Any chance this is a cinemachine bug when you try to transition from a mid-blend back to the original cam ?
     
  7. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,233
    Does it happen when you turn off InheritPosition in the FreeLooks?
     
  8. VincentAbert

    VincentAbert

    Joined:
    May 2, 2020
    Posts:
    120
    Hmmm okay that was the culprit, thank you !
     
  9. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,233
    So that narrows it down. If you're happy losing the InheritPosition feature then fine, but imo there is a bug here to be fixed.
     
  10. xenotime

    xenotime

    Joined:
    Apr 27, 2010
    Posts:
    12
    Hello!

    I have exactly the same issue. Disabling InheritPosition removes the cut in mid-blend. Unfortunately I absolutely need this option for my camera setup (blend between two CinemachineFreeLook with same target and different Orbits binding modes).

    Hope you will be able to fix this bug in a very next release.
     
    Last edited: Mar 4, 2021
  11. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,233
    We have a fix for this. It should be in the next 2.7 cut, or at the very latest in 2.8.
     
  12. CARRASC

    CARRASC

    Joined:
    Apr 19, 2018
    Posts:
    3
    Any update on this? I think I have the same problem (2.8.4)