Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 Levyguy · Sep 09, 2014 at 02:03 PM · image

UI Image gets distorted

I'm trying to set up a UI using the new UI system on unity 4.6

I created a UI Image but when I added a PNG file (actually I tried using PSD, TIFF and got the same problam) my image gets distorted.

this happens only when I set the filter to "point", but when trying the other filters the image is really blurred... so "point" is the best option

I found out that changing the game resoloution can fix it, it happens only on 16:10, 16:9 and free aspect

here's what I'm talking about: alt text

the one on the left is the original and the one on the right is in unity - you can see that the image gets distorted in the red circle.

8d3d079e9ba0affaf7ac8c00fb92dc25.png (290.1 kB)
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 Ixchael · Oct 26, 2014 at 08:12 PM 0
Share

I have the same problem; did you ever find a solution?

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by HarshadK · Sep 09, 2014 at 02:05 PM

Check the Pixel Perfect checkbox for the canvas to which this image belongs.

Comment
Add comment · Show 1 · 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 Levyguy · Sep 09, 2014 at 02:10 PM 0
Share

Forgot to mention that I already tried doing that - it actually makes it even worse. the "cut" (in the red circle) continues even more than it is in the example I uploaded.

avatar image
0

Answer by Itaros · Oct 26, 2014 at 08:42 PM

I have got the similar problem with my awesome gui.

There are two factors: sampling and pixel alignment.

Regarding sampling: if one texel is smaller or larger then physical pixel of a resolution it goes sampled which can give awkward artifacts. Make sure GUI is rendered on special pixel-perfect orthographic camera where 1 unit translates absolutely to 1 pixel.

Regarding alignment: on DX it is assumed pixel is in center of unit so you need to nudge the object by 0.5F on x and y axises. On OGL pixels start at unit edge and no coordinate manipulation required.

For example: DX-aligned pixel-perfect GUI on OGL device(Android)

alt text


awkward.png (10.7 kB)
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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

How can I prevent my GUI background texture from getting pixelated or stretched? 1 Answer

Adding Images 1 Answer

Scrolling and Looping 2D Background Image 1 Answer

What GUI method renders 3D object thumbnail previews in the editor? 1 Answer

preloading many images before displaying scene 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