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
2
Question by Grcan SERBEST · Jan 07, 2011 at 09:02 PM · mipmaps

About MipMaps problem.

Dear Unity Users,

We are desinging a user interface for our game, Recently we have come across a problem with our GUITexture element. We imported a png file with alpha and unticked Generate Mip Maps option but the texture in game is not sharp and seem like a low quality import. we have attached the original image , an ingame screentshot of the mentionent texture and out import settings. We have tried using various formats but failed to impruve the quality of the texture.

Any help is greatly appreciated.

alt text

Thank you in advance Grcan SERBEST

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

4 Replies

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

Answer by Grcan SERBEST · Jan 07, 2011 at 09:47 PM

Thank you for all answering. The problem has been solved, it was indeed a resizing problem, choosing " ToLarger" has worked like a charm. Krobill's answer as that and this was the correct answer. I want share the solution with you.

If image doesn't have dimensions that are a power of 2, by default Unity will resize it for you. On our screenshot it's the combo box non power of 2 with the 'to nearest' option selected. This means your texture may have been resized to a lower resolution and is stretched on screen to fit the desired size.

Your options are : - Prevent this resizing, but it's always a good thing to use power of 2 dimensions since it's more hardware friendly - Choose 'To Larger' to allow the resizing but one without loss of data - Resize yourself your texture to a power of 2 dimension which is in fact recommended most of the time.

Thanks again for the quick reply.

alt text

Regards.

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 Tetrad · Jan 07, 2011 at 09:04 PM

Looks like compression artifacting. Change the texture format to RGBA32 or something like that instead of automatic compressed or dxt5 or whatever you have it set to.

Also, is your texture actually a power of two? Maybe turn off the NPOT stretching?

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 Grcan SERBEST · Jan 07, 2011 at 09:34 PM 0
Share

Hello Tetrad,

The image format is currently ARGB 32 bit no luck so far...I do not know how to turn on or off the NPOT stretching, please if you could elaborate on that. The texture we are using is at its original size ingame so there should be no stretching if I understand it correctly. Our code is; GUI.DrawTexture (Rect(altbar1520yan,altbar1520dik,1520,363),altbar1520);

avatar image
0

Answer by Moxon · Jan 07, 2011 at 09:15 PM

How are you drawing the texture?

If you happen to be using a GUI.Label() to draw the texture it adds padding and it distorts images and generally makes them look fuzzy (in my experience).

Try using GUI.DrawTexture() instead and see if that helps.

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 Grcan SERBEST · Jan 07, 2011 at 09:27 PM 0
Share

Hello $$anonymous$$oxon ,

We already use GUI.DrawTexture when drawing texture...

Thank you

avatar image
0

Answer by Jason B · Jan 07, 2011 at 09:40 PM

Have you toyed around with the filter mode of the texture? Bilinear filtering will, by default, tend to slightly smudge the pixels around to attain some slight softness in textures. It's ideal to not filter your UI textures at all though if you want them to be in the exact way you originally drew them.

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

No one has followed this question yet.

Related Questions

Keeping texture quality when Quality Settings change 0 Answers

MIP Maps - uGUI 0 Answers

How to disable mipmaps? 1 Answer

So, unity automatically will mipmap? Or no? 1 Answer

Does "texture quality" setting uses mipmaps ? 0 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