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 moghes · Jun 26, 2012 at 12:48 AM · guitexture2dresolutionquality

high quality image appears low quality when displayed through a GUI window

Hello everyOne, I am using GUI window to display a popup menu before and after level start. my problem is the quality of the image! its displaying very blury and low-quality although the image is too high res for this(2100x720) but I am displaying it in 350x120. I also tried different formats, different resolutions.. still the same resultalt text

I am dragging it to a Texture variable also tried Texture2D .. I can't figur out what might what might be the problem! help please

Untitled-7.jpg (41.7 kB)
Comment
Add comment · Show 2
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 moghes · Jun 26, 2012 at 12:51 AM 0
Share

Well, when using GUI.DrawTexture , I am having this problem. I tried to attach to a GUITexture, its perfect! so what's the problem with GUI.DrawTexture? although using 750x240 dimensions for a 2100x720 image.(same aspect ratio)

avatar image softrare · Nov 18, 2016 at 03:34 PM 0
Share

I had the same problem, but for the solution was this: http://gamedev.stackexchange.com/questions/98678/what-causes-this-graphics-quality-difference-between-webgl-build-and-unity-5-edi

1 Reply

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

Answer by hathol · Jun 26, 2012 at 12:54 AM

Check your import settings for the image and make sure it's set to GUI. Unity imports as Texture by default and auto scales the image to a 2^n resolution so it gets blurry when rescaled to its original aspect ratio again.

Comment
Add comment · Show 5 · 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 moghes · Jun 26, 2012 at 12:59 AM 0
Share

well can u help me with this? where to check?

avatar image moghes · Jun 26, 2012 at 01:01 AM 0
Share

but why great result with Guitexture and not with GUI.DrawTexture?

avatar image hathol · Jun 26, 2012 at 01:06 AM 2
Share

Sure :) If you click on your imported image in the project view (your asset library basically), the import settings will show up in the inspector view. The property you are looking for is called "Texture Type" (Unity 3.5.1). Its just a dropdown menu. Select GUI there (and maybe change the format from compressed to 16 bits while you're at it) and you should be fine :)

avatar image moghes · Jun 26, 2012 at 01:29 AM 0
Share

great dude! that's it :)

avatar image hathol · Jun 26, 2012 at 01:35 AM 1
Share

To your other question: it doesn't matter. The important point is the import setting. When set to texture, the image gets rescaled to a different aspect ratio and then rescaled again to fit the chosen ratio specified by your guitexture or GUI.DrawTexture. Since scaling is not a lossless operation, the result gets blurry. When set to GUI ins$$anonymous$$d, the image gets padded to the next largest power of two size, therefore preserving the aspect ratio of your original image. This results in a slightly higher memory consumption, but keeps the image nice and sharp. For more info, read http://unity3d.com/support/documentation/$$anonymous$$anual/Textures.html :)

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

6 People are following this question.

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

Related Questions

Rendering GUI.Buttons in the middle of the screen 5 Answers

My OnGUI() Won't show the Button elements :( 0 Answers

Draw crosshair INSTEAD of cursor. 1 Answer

Capture screenshot to texture, memory issue 1 Answer

Non-uniform scale textures in GUI 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