Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by _L_G_ · Jan 22, 2017 at 09:52 PM · unity 2dgraphicspixelpixel art

Pixel art is jittery while moving camera.

So this is not a major problem but it is extremely annoying. When I move the camera in-game (like following the player) all the pixel art is like shaking, or squeezing together. The most notable is that it looks like the player is squinting his eyes when he walks, even though his eyes are one pixel big, so it isn't an animation malfunction. The worst part is the ground, it looks like an earthquake and is really annoying. What should I do to fix this?

Thanks in advance!

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image FlyingHighUp · Jan 23, 2017 at 02:57 AM 0
Share

This is hard to diagnose without more info personally... Perhaps you could share some screenshots of your setup?

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by shellash · Jan 23, 2017 at 02:43 PM

Hello.

Yep, seen it too and it's awfully annoying. Looks like Unity camera doesn't work well with pixel art.

To counter this effect i've wrote a system that made camera and sprites clamp to one-pixel grid. This means that no object could move less than a pixel(1/sprite PPU).

But this system has some issues with physics, especially with rotating sprites.

Hope this helps.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by J0hn4n · Nov 01, 2017 at 05:51 PM

Hello @L_G try some of this solutions can fix your problem.

1- the camera uses lerp to follow the player? if that so the camera are never going to reach to his destination so his transform.positions will end with floating decimal numbers like 10.848168 that can affect your pixels. So try your camera moves to total integers.

2- do you use a gameObject by tile? This also affects the pixels because they try to be in 2 places at the same time. So use pixelSnap material. Also make your tilemap one big texture so the problem will fix.

3-Do you have consistent PPU? Use 16, 32,64 etc ... for all your objects. if you are using numbers like 13, 22, etc..

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

2DPixelPerfect from Universal RP causes Jittering? 0 Answers

Camera / Graphic bug with 2D Sprites [Please help me solve this] 4 Answers

How to maintain sharp lines (pixel-like effect) from small textures on 3D assets 2 Answers

Pixel snap for material made with Unlit Shader Graph? 1 Answer

How to keep pixel art crisp in unity 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges