Search Unity

Cinemamachine follow problem

Discussion in 'Cinemachine' started by hoshicameron, Sep 14, 2019.

  1. hoshicameron

    hoshicameron

    Joined:
    Dec 20, 2015
    Posts:
    4
    Hi,I'm develop 2D pixel game in unity. everything works well before I change the sprite filter mode to point and add 2d Pixel perfect package. Now I have weird problem with cinemachine follow ability and it doesn't work properly.It shacked around The player When player stop moving. I read a lot of article but nothing changed. Also use RoundCameraPos script from @Gregoryl . 2d pixel perfect 1.0.1 and cinemachine 2.2.8.
     
    Last edited: Sep 14, 2019
  2. hoshicameron

    hoshicameron

    Joined:
    Dec 20, 2015
    Posts:
    4
    MainCamera and cinemachine Setting



     
    Last edited: Sep 14, 2019
  3. hoshicameron

    hoshicameron

    Joined:
    Dec 20, 2015
    Posts:
    4
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    2,852
    It looks as though the camera is correctly snapping to pixel boundaries.

    This is correct if a "pixel" in your video really corresponds to an actual pixel on the target device. However, if you're targeting devices with a higher resolution but want to emulate a low-res look (like you're doing in the video), you might want to give the camera more positional resolution. Is that what you want to do?
     
    hoshicameron likes this.
  5. hoshicameron

    hoshicameron

    Joined:
    Dec 20, 2015
    Posts:
    4
    G
    Hi, Thanks for your replay. Yes I want to use low-res sprite(16x16) in higher resolution. for that I add pixel perfect camera to my Main Camera and set the setting. but after that there was problem with cinemachine follow ability and the smoothness completely disappeared from it. I use your RoundCameraPos and it doesn't help.I changed Vsync and Anti aliasing on and off but nothing changed. I use ray casting for player movement instead unity physics.