• 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
4
Question by dissidently · Mar 11, 2011 at 05:09 PM · displaypixel

Pixel Perfect Textures: Can it be done in Unity?

Everything I've done with Unity so far has come out with that "3D camera" look, and, depending on the anti-aliasing effects/strength, heavily affected by that.

Is there anyway to get Pixel perfect textures on 2D objects in front of the camera?

If so, does it work on all platforms?

If you're wondering why I'm asking, I've got a texture on a 2D object, perp to the camera that's got very fine parallel lines on it. It's currently creating Moire patterns in Unity that I really don't want. I just want it to look exactly as it looks in photoshop, in Unity. 1 to 1 pixel perfect.

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
4
Best Answer

Answer by Statement · Mar 11, 2011 at 05:15 PM

  1. Make sure you are using adequate texture settings.
  2. Then you probably should consider how your 2d objects are rendered. Is it a 3d plane "simulating 2d"? Is it a GUITexture? Is it a GUI call? Out of these, GUI calls are probably easiest to work with, depending on your needs.

Also you should make sure that your texture Wrap mode is set to Clamp, if the rest of the object really covers up a perfect perpendicular angle to the camera, using up exactly the same size in pixels.

Another thing you can try if you want allow to "enlarge" the image without smearing it out, you can set Filter mode to Point.

Comment
Add comment · Show 2 · 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 dissidently · Mar 13, 2011 at 05:58 PM 0
Share

It's on a plane simulating 2D. What's a GUI call?

avatar image Statement · Mar 13, 2011 at 06:29 PM 0
Share

I meant calls to GUI.Label et.c. http://unity3d.com/support/documentation/Components/gui-Basics.html

avatar image
4

Answer by loopyllama · Mar 11, 2011 at 06:27 PM

yes you can. make sure you set:

Filter to Point (avoids filtering)

Max Texture Size to at least the size of your texture (avoids size reduction)

Texture Format to True Color (avoids compression)

...and that will do it!

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Pixel Perfect Collision 2d 0 Answers

Texture Quality VS (Sprite 2D and UI) Quality 1 Answer

How to achieve 2D pixel perfect collision physics (like Badland) in Unity3D ? 3 Answers

Per Pixel Lighting on iOS 3 Answers

Modify Camera pixelWidth and pixelHeight 4 Answers


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