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 Ballisticspork · Jul 20, 2017 at 07:18 PM · 2dmeshgeneratedtearing

Lines appear between tiles of generated mesh

Alright, so here's my problem. I have a 2d randomly generated mesh that is made of 16px x 16px tiles (they are mapped off a texture atlas, not individual gameobjects). When I run the game I experience bleeding/tearing/whatever you'd like to call it. Below is a screenshot. I tried going into settings and turning off anti-aliasing but that only solved the problem when the camera was stationary. (Since I cannot include any more attachments I will just try my best to explain this one) When I moved the camera around, the horizontal and vertical lines would flicker.

When I moved the camera, the tearing returned. Finally, I tried turning on pixel snapping (shown in below screenshot) and it solved the problem when the window was not maximized (in editor and build). I honestly have no idea what is going on. If you need any additional info or screenshots just ask. Thanks.

EDIT: I was looking at pixel snap some more and now I'm really wondering why when I build it with the display set to full screen it runs fine, same when windowed but not fully maximized. When built, the only time there is an issue is when it is in windowed mode and maximized. Not much else to say other than I am confused.

screenshot-1.png (90.2 kB)
screenshot-3.png (93.3 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 Cherno · Jul 20, 2017 at 10:14 PM 0
Share

Are the textures set to Point filter mode?

avatar image Ballisticspork Cherno · Jul 20, 2017 at 10:32 PM 0
Share

Yes, the texture is set to point filter. I just tested out bilinear and trilinear but neither fixed the problem.

3 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by geplourde · Jul 21, 2017 at 05:13 AM

You may have to use the gutter technique which is what I had to do in order to avoid these lines flickering as the camera moved. A gutter is a few pixels thick that surrounds the perimeter of the tile/sprite and is just a mirror of the original tile's perimeter. I'd create a gutter of 4 pixels just to be safe. So, in the end, your tiles will be 20x20 even though they are laid out on a 16x16 grid, and the added gutter only appears visible where the flickering lines used to be, removing the problem entirely.

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 Ballisticspork · Jul 21, 2017 at 08:54 PM 0
Share

Thank you for your answer. I will mark this as the answer although I did find an alternate solution. What I did was turn on pixel snap and edited the tile atlas so that it only had one row. (ex: before it was 32x32 I made it 16x64) That worked for some reason. Do you know if this is a bug that needs to be reported? Thanks for your help :D

avatar image
0

Answer by Menyus777 · Jul 20, 2017 at 11:10 PM

Disable MipMaps if you have them enabled

Comment
Add comment · Show 2 · 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 Ballisticspork · Jul 20, 2017 at 11:56 PM 0
Share

$$anonymous$$ipmaps were already disabled. Thanks for the reply though

avatar image Menyus777 Ballisticspork · Jul 21, 2017 at 11:35 AM 0
Share

Hmm oki, then i have no idea

avatar image
0

Answer by kalanadis · Jul 21, 2017 at 11:18 AM

Have you checked your texture uv mappings ? if the image texture image is mapping to its edge this could happen. or sometime turning warp mode of the texture to clamp will fix your problem.

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

130 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

GPU Generated Mesh? 3 Answers

How to flatten 3d image STL to 2d 0 Answers

Draw/generate shape as 2D sprite? 0 Answers

Sharing a generated mesh between multiple game objects 2 Answers

How to generate a NavMesh only with colliders? 5 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