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
1
Question by user-11551 (google) · Apr 19, 2011 at 01:47 AM · texturesizeguitextureblurlarge

Blurry Texture at large size.

Hey all,

I'm looking for a hand by any of you artistic types. I'm currently working on an In-Game Store and have mocked up nearly all of my menus, buttons, and textures in Photoshop prior to bringing into Unity.

The display I'm creating in based off of my desired screen size of 1920x1080, but the actual menu I'm creating has dimensions of 1700x1200. Obviously it's a fairly large image, and when created in Photoshop it looks really crisp and clean. However when I import into Unity I can't seem to keep the image from blurring. The borders blur into the fill, and the test looks like it drawn by a three year old.

I'm using an orthographic camera to render my HUD/UI elements so the depth should be an issue(is think), and I've tried nearly every setting available for the texture after importing it.

Is there a best practice when importing larger textures in order to mimic the quality of your texture from Photoshop.

Any help is really appreciated. Cheers!

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 AngryOldMan · Apr 19, 2011 at 06:16 PM 0
Share

check updated answer

avatar image GameGuy · Apr 19, 2011 at 06:40 PM 0
Share

maybe it is the fileformat you save in PhotoShop, jpg gets compressed automatically, choose png it is loseless.

2 Replies

· Add your reply
  • Sort: 
avatar image
5

Answer by Wolfram · May 25, 2011 at 02:28 PM

The magic keyword here is mipmapping.

Mipmapping increases smoothness and decreases aliasing artifacts if a texture is rendered at a smaller size than its actual pixel resolution. However, even if displayed exactly at pixel resolution, it will introduce some amount of blurryness in Unity. In addition, several parameters influence how a mipmapped texture appears on the screen.

Essentially, you have two options:

  • To achieve a crisp rendering of your texture, set the Texture Type to "Advanced", disable MipMapping, and disable non-power-of-two scaling (otherwise you will introduce another level of blurring due to rescaling). The disadvantage is, you'll get aliasing artifacts, if you zoom out.

  • To achieve a smooth display of your texture at any viewing distance, enable mipmapping, use "ToNearest" power-of-two scaling (sometimes even "ToLarger" might be better), and set the Filter Mode to "Trilinear" (This is important! Otherwise MipMap interpolation will not work). The disadvantage is some level of blurryness in your texture rendering.

Note also that for certain types of textures, DXT-compression creates heavy artifacts, so you can try to set the Texture Format to "Automatic Truecolor" and see if that increases the readability of your text.

Obviously, you should increas the Max Size to at least 2048, if your texture width is 1700.

EDIT: further Info for Unity >=4.x: In Unity 3.5 it is IMPOSSIBLE to get a 1:1 texture representation for non-power-of-two (NPOT) textures, since Unity is internally unavoidably rescaling to POT (The only exception: objects of type "GUITexture" (and possibly OnGUI()). Your only chance is to "pad" your textures with a transparent border, so that the texture will already be POT.

This "bug" was fixed in Unity 4.x, so here you CAN get truly 1:1 pixel-exact rendering for your screen-aligned textures, providing your screenspace placement (scaling and positining) is correct:

NOTE for orthographic cameras, you can adjust your objects in a pixel coordinate system if you create an empty GameObject, reset the transform, and set its scale to 2*(ortho size)/(target screen resolution height). Then add another GameObject to that, reset its transform, and shift it by 0.5/0.5 (i.e., half a pixel). This offset is essential due to an intrinsic pixel/texel/camera offset.

Any object attached to that 2nd GameObject (and aligned to the camera plane) is placed and sized in pixel space. Note you should only use integer coordinates or set the texture filtering to Point, otherwise it will once again be blurred.

Comment
Add comment · Show 3 · 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 Saitodepaula · Dec 04, 2012 at 06:11 PM 0
Share

Worked very well for me. Truly, mipmapping was the magic keyword.

avatar image Azaroth · Feb 23, 2013 at 05:17 PM 0
Share

thank you!! :DD

avatar image Redbeef · Nov 11, 2013 at 05:01 AM 0
Share

whoa, all i needed to do was increase the max size. wasn't obvious to me! :p

avatar image
0

Answer by AngryOldMan · Apr 19, 2011 at 01:53 AM

what size is your image? have you checked the texture settings? such as texture size and power of two settings in advanced settings?

Edit

have you tried switching off the power of two settings all together as well as switching of mip mapping, turning up aniso level and changing the wrapping settings.

If that doesnt work then I suggest using a texture that is already a power of two such as 2048x512

or

sizing your picture to be of the full screen size then draw your HUD where you want it to appear on screen and delete everything else on it, save it as a png and set it on the HUD to be full screen size.

or

sizing your GUI to be the same size as your picture (1700x600)

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 user-11551 (google) · Apr 19, 2011 at 04:37 PM 0
Share

1700x600.

I have played around in the texture setting for a fair amount of time. I've made sure that the texture size isn't getting scaled down (is at a max potentila higher than it's size), and also tried using the power of two settings to no avail.

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

Splitting Large texture among multiple planes 1 Answer

font texture size problems on iPhone2G,iPhone3G,iTouch1,2 1 Answer

How can i avoid mouse clicking on alpha areas in my GUITexture? 1 Answer

GUI Texture disapears when I move it 1 Answer

Terrain texture low quality 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