Search Unity

Question How to solve the dragging like this...

Discussion in 'Cinemachine' started by starrr_A, Apr 17, 2021.

  1. starrr_A

    starrr_A

    Joined:
    Jan 7, 2019
    Posts:
    7
    I need the dampping like the way what DeadCells does.(Reference in 02)
    But in my case with Vcam,I got the weired dragging/waving of my background at the end of following movement.:confused:(Records at 01)

    If I change the Filter Mode of the background Texture from Point to Bilinear ,it will disappear,but it's a disaster to pixel art.:eek:

    SO.any idea to solve the weired dragging?

    Thanks a lot!
     

    Attached Files:

  2. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    How is your project setup?
    What packages do you have installed? How is your vcam setup (please take a picture of all its components)?
     
  3. starrr_A

    starrr_A

    Joined:
    Jan 7, 2019
    Posts:
    7
    Hi gaborkb:)
    Here are the details.Btw,I use the default UniversalRenderPipelineAsset(same problem would occur after switching to default 2D Renderer Data)

    Demo uploaded,hope it will help.

    Unity Version:
    2019.4.18

    Packages:
    upload_2021-4-22_8-20-6.png

    vcam setup:
    upload_2021-4-22_8-21-21.png
    upload_2021-4-22_8-22-5.png

    Demo:
    https://www.dropbox.com/t/Q0NYolcPfQi18uvU
     
    Last edited: Apr 22, 2021
  4. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    Why does your vcam has a Camera attached to it?
    Delete Camera from your vcam.

    The main camera (with CinemachineBrain) is controlled by the currently active vcam.

    Have you tried with Pixel Perfect?
    Add Pixel Perfect component to Main Camera.
    Add Cinemachine Pixel Perfect extension to your vcams.
     
    Gregoryl likes this.
  5. starrr_A

    starrr_A

    Joined:
    Jan 7, 2019
    Posts:
    7
    1.the CinemachineImpulseListener is already only on the vcams as you said.
    2.tried just now,still the same
    setting is below
    upload_2021-4-22_17-8-48.png
    upload_2021-4-22_17-9-24.png
     
  6. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,711
    Why is that Camera component there? You should delete it.

    upload_2021-4-26_11-9-43.png
     
  7. starrr_A

    starrr_A

    Joined:
    Jan 7, 2019
    Posts:
    7
    Sorry for late reply.
    It's my bad,delete it and it's all good now.lol
    But there is another question:How do I zoom in/out as normal orthographic camera?Because after adding Pixel Perfect stuff.The Orthographic Size of Lens/CinemachineVirtualCamera will not work.
     
  8. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,711
    The CinemachinePixelPerfect extension will round CM's desired ortho size that you set so that it matches the nearest ortho size required to preserve pixel-perfectness. You can't just set any ortho size and expect pixel-perfect to be preserved.
     
  9. starrr_A

    starrr_A

    Joined:
    Jan 7, 2019
    Posts:
    7
    Indeed,but how could the game match different size of resolution while using the CinemachinePixelPerfect extension?
     
  10. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,711
    You also need the PixedPerfect component on the main camera
     
  11. starrr_A

    starrr_A

    Joined:
    Jan 7, 2019
    Posts:
    7
    Do you mean controling it through Reference Resolutio and Crop Frame?But there will be black bars,isn't it?
     
  12. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,711
  13. starrr_A

    starrr_A

    Joined:
    Jan 7, 2019
    Posts:
    7
    Got it,thank you very much!;)