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
0
Question by KingDolphin · Jun 12, 2015 at 11:48 PM · unity 5errorspriterendering

Unity2D strange green line under sprites

So I have a randomly generated world with Sprites for tiles and when the Player is sitting on top of a tile, it makes every tile on the layer underneath him have this strange green like like this :

alt text

I have absolutely no idea what is causing it, does anyone have any ideas? I've tried changing the rendering techniques, the sprite's material with "Pixel Snap" on, still doesn't work. The sprites are all in a sprite sheet with Point filter mode and generate Mip Maps on, if that makes any difference.

Comment
Add comment · Show 5
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 KingDolphin · Jun 13, 2015 at 12:43 AM 0
Share

UPDATE: I tried it on a different sprite that wasn't the dirt and I found that ins$$anonymous$$d of the line being green, it was blue like the background. It seems that the color of the line is the color of the top of the sprite underneath it on the sprite sheet??? Right under the Sprite for dirt, there is a grass sprite, which is why it's green I guess, and when I used a sprite with nothing underneath it, it just made it the color of background because of the alpha. Is this a bug, or am I doing something wrong?

avatar image Alec-Slayden · Jun 13, 2015 at 01:22 AM 0
Share

I'm not sure what's happening as I generally work in 3D, but my first guess would be to try clamping your texture (make sure it's not set to "repeat"), since it sounds like you are not splatting the texture repeatedly on one object, but spawning separate objects.

$$anonymous$$y next suggestion is to open the sprite editor and make sure that the sprites borders are properly aligned

avatar image KingDolphin · Jun 13, 2015 at 01:28 AM 0
Share

Thanks for the reply, The only place that I see Clamp is when I set the texture type to advanced, and it is clamped, so the problem is still there. And I used the grid slicing for the sprite sheet, and they are all 16x16, so they should be perfectly aligned, I also tried doing it manually, nothing changed. So strange.. alt text

screen-shot-2015-06-12-at-62725-pm.png (21.5 kB)
avatar image Alec-Slayden · Jun 13, 2015 at 01:33 AM 1
Share

Sorry to hear :( $$anonymous$$aybe check out some of the answers here as well http://answers.unity3d.com/questions/609736/gaps-sometimes-appearing-between-2d-sprites.html?page=1&pageSize=5&sort=votes

avatar image KingDolphin · Jun 13, 2015 at 02:07 AM 0
Share

Thanks for that link, I added a "bleed zone" like one of the suggestions said and that worked, that's a really stupid way to have to fix this in my opinion. But thank you again for the link.

0 Replies

· Add your reply
  • Sort: 

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

22 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

Related Questions

RenderTexture.Create failed: format unsupported 0 Answers

U5 shader coming out solid black on newer iOS devices (iPad 2 Air / iPhone 6) 1 Answer

RenderTexture and Readpixels android problem. 2 Answers

WTH does this error mean ? and what exactly is 'false' ? 3 Answers

Problem importing "survival shooter" 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