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 UareBuggy · Jul 27, 2017 at 10:40 AM · cubeblacklinesedges

Black lines on the edge of cubes

My world consists of cubes placed next to each other. I've made simple camera movement script that is moving camera on X and Z axis. When I'm moving camera, some weird black lines are shown between cubes. Interesting thing is that they are shown only sometimes and only between cubes on the bottom side of camera. Does anyone know how can I fix it?

All cubes are sized 1x1x1 and they are placed directly next to each other so there is no gap between them.

Unity version: 2017.1.0f3

EDIT:// As I'm doing little research, it seems like the problem is with anti-aliasing, if I disable anti-aliasing completely, the problem disappear. If I max anti-aliasing to the max (8x MSAA) the problem persists but black lines are thinner. Problem is that I just can't disable anti-aliasing and consider this problem as fixed.

EDIT:// Guy with same problem with detailed information Thread

alt text

edge-bug.gif (181.4 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
2
Best Answer

Answer by korbul · Jul 27, 2017 at 10:47 AM

If you are using the default AA from project settings->quality, disable it entirely and try the new post processing stack:

https://docs.unity3d.com/Manual/PostProcessing-Stack.html

Among many post processing effects you will find a much better anti aliasing solution.

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 UareBuggy · Jul 27, 2017 at 10:58 AM 0
Share

I absolutely didn't know that something like that even exist. It works now perfectly with FXAA or TAA, thanks. (EDIT:// It is still happening but less often)

avatar image korbul UareBuggy · Jul 27, 2017 at 11:11 AM 0
Share

It looks like someday the postprocessing stack will become native to unity. However, the stack is a solution for post processing (after a frame has been rendered a shader is ran on the resulting image). Stuff like shadow settings or texture downscale will still remain in the current quality settings

avatar image UareBuggy korbul · Jul 27, 2017 at 11:17 AM 0
Share

I was wrong, the problem still persists but less often (both FXAA and TAA)

Show more comments
avatar image
0

Answer by ShadyProductions · Jul 27, 2017 at 10:42 AM

Anti aliasing is just not a good thing in 2D tilebased games. Anti aliasing basically tries to smooth edge transition by blurring pixels, So that in picture it looks seemless, however in 2D games you will have to do this yourself to your sprites. Otherwise you get these weird black lines.

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 UareBuggy · Jul 27, 2017 at 10:47 AM 0
Share

It's 3D, it's just from top view so you can see that lines from the best angle

avatar image
0

Answer by sebwin555 · Sep 27, 2018 at 04:37 PM

same problem here! Anyone has a solution?

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

69 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

Related Questions

Black horizontal lines in big streaks appear and sometimes flash in game when moving up and down? 0 Answers

How can i fix black lines? The material trick doesnt work. 0 Answers

I want only the edges visible on my cube? 2 Answers

Background sprite tile movement jerks and flashes with black lines 0 Answers

Transparent dots and lines appear on my cubes 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