Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Shishigami · Apr 28, 2017 at 06:01 AM · 2derror2d gamerenderinggraphics

Small line appearing under my 2D pixel sprite - 2D Graphics not rendering properly

I am relatively new to unity and i couldn't find an answer to this. OK, so this is the problem. I had imported a sprite into the scene and i attached a movement script to it and tried to move around. For some reason, there was a grey "box" or line underneath my sprite. I moved around even more, and noticed that even other pixels of my character were changing, like the hair or the shoes. It only appears every time i walked up and down. I checked my graphics settings and they are the same as the one i usually use for pixel-art (FORMAT = RGBA 32bit / FILTERMODE = Point / MAX SIZE = 2048). In the Inspector nothing is wrong, and all of the sprites look good.

This bug only happened to things that were moving relative to the camera on the y axis. So, for example if i had a "camera-follow" script attached to the player, it wouldn't happen to the player, but to everything around him when he moves up and down. This happened with every sprite i tried to render. I also tried to scale the original sprite up to 64x64 px instead of 8x8 px,but that just made the grey box bigger. It appeared in both scene and playmode.

Please help i am lost. :P

alt text

alt text

frank.png (13.7 kB)
frank.png (6.2 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 AtGfx · Apr 28, 2017 at 07:31 AM 0
Share

Just a quick guess : it sounds like an anti-alias problem (but it can be something else ^^). $$anonymous$$aybe you could try to render Franck at the original size (8x8) and disable the anti-alias in your scene and scene what happend.

avatar image Oliver-Bogdan · Apr 28, 2017 at 07:46 AM 0
Share

$$anonymous$$ay it be from the wrap mode? $$anonymous$$aybe you should set it to Clamp in the import settings

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Prebi94 · Apr 28, 2017 at 08:35 AM

Have you configured your camera properly and sprites size?

If not check this

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 tanoshimi · Apr 28, 2017 at 08:32 AM

A screenshot of your texture import settings would help, but I'd recommend you try the following settings:

  • Texture Type: Sprite

  • sRGB: Checked

  • Alpha Source: Input Texture Alpha

  • Alpha is Transparency: Checked

  • Generate Mip Maps: Unchecked

  • Wrap Mode: Clamp

  • Compression: None

  • Max Size 32 (there's no point having 2048 - your sprite is only 8x8)

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 Shishigami · Apr 29, 2017 at 09:31 AM 0
Share

It still doesnt work. I think i figured something out though. Its not just a grey box, but its the hair of the sprite beneath it in the spritesheet. $$anonymous$$aybe changing that will help. Thank you for your answer though, i didnt know that the unity community was so helpful :D.

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

2D graphic problem with tilemap and resolution 0 Answers

How can I achieve a perfect alpha cutout? 1 Answer

2D Sprite Graphics Glitching, Skewing, Flickering, Crazy, Haywire 1 Answer

how to change the render sequence in 2D game ? 2 Answers

Developing 2D games in Unity 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