Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 MarkisGreat · Feb 10, 2018 at 01:25 PM · spriteperformanceimagecompressiongrey

Sprites grey when camera zoomed out

Sprites turn grey when camera zooms out. How do i turn this feature off ?

It only happens when i load a png, split it and convert it into multiple new sprites. When i load a png and convert that into a sprite directly it doesn't turn grey.

The 'cinder block' in the images was loaded directly, the greyed out sprites were split.![alt text][1]

Messed around with materials and shaders but couldn't find anything that turned it off.

unity-3d-sprite-grey.png (197.7 kB)
unity-sprite-grey.png (291.3 kB)
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

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Nobozarb · Feb 10, 2018 at 02:13 PM

It is possible this could be caused by anti aliasing, though it does appear pretty extreme. Anyway, try going to Edit > Project Settings > Quality and change Anti Aliasing to Disabled, and then see if it still happens. If it does still happen, make sure there is only one Sprite Renderer on your sprites. I can't really think of anything else right now that would cause this, but I would definitely send a report using Unity Bug Reporter.

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 trevk84 · May 13, 2019 at 03:49 PM

I had this problem too. It's a texture mipmap problem. When the sprite turns grey, the grey is actually a mipmap of the texture. Mipmaps are like low definition versions of the original texture, and are used when the object is far away, when high detail isn't needed. Unity automatically does this to increase performance...but the texture on your sprite that you are using has no mipmap to draw, so it draws it as just grey when the object gets far enough awa. Just guessing, but the mipmap probably got deleted when you split/converted/edited the png.

Here is some info on working with mipmaps

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 FuturePilot1701 · Jun 21, 2020 at 06:31 AM

This annoyed me for literally an entire week. I finally found out how to fix it. Set the texture mipMapBias to a large NEGATIVE number. I was using a 10,000 x 5000 pixel texture for my game map, and when the camera was pulled far away from the sprite to show the whole map, the texture on the sprite would blur to white as if there was fog over it. to Do this you use "texture.mipMapBias = -x"

 using System;
 using System.Collections;
 using System.Collections.Generic;
 using UnityEditor;
 using UnityEngine;
 using UnityEngine.UI;
 
 public class miniMapControl : MonoBehaviour
 {
 
     public GameObject map; 
     public Texture2D mapTexture;
 
     void Start()
     {
         mapTexture = map.GetComponent<mapGeneration>().mapTexture;
         mapTexture.mipMapBias = -5;
 
         Rect rec = new Rect(0, 0, mapTexture.width, mapTexture.height);
         Debug.Log(mapTexture.width);
         Debug.Log(mapTexture.height);
         //last number changes pixels per unit, which would allow the resolution of the texture to be increased
         GetComponent<Image>().sprite = Sprite.Create(mapTexture, rec, new Vector2(0.5f, 0.5f), 1);
     }
 
 }

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

123 People are following this question.

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

Related Questions

Best Performance for Background Movement 1 Answer

SVG vs other formats for GUI 0 Answers

Image vs Sprites performance 1 Answer

How to create Sprite programmatically 1 Answer

How to make a UI image change sprite through a script that is not attached to the UI image itself 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