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
1
Question by smile_zt · Apr 22, 2016 at 10:25 AM · mesh

The mesh has gaps when the adjacent two grids have different materials.

Look like this: alt text If I move the camera,some gaps will disappear and others will appear.
I'm trying to generate a random map, the random mechanism:
1, a random two-dimensional map data
2, according to the map data to judge different states and number them,
Just like : alt text 3, record different number of triangles
4, depending on the number of triangular grid filled with different material Here is the tutorial site. [link text][3] And then the gaps appear when the adjacent two grids have different materials. How can i fix the bug?

eum-0acppc3uc06uu8fk.png (921 B)
1.png (3.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

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Bunny83 · Apr 22, 2016 at 11:25 AM

Well your UV coordinates are clearly off by one pixel. This happens when you don't target the pixel center but the pixel border. Also if you don't use point filtering for your images you should always add some padding pixels around the image rect, otherwise the neighbor pixel colors will bleed into your image.

See this answer for reference.

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 smile_zt · Apr 25, 2016 at 07:05 AM 0
Share

Thanks for your answer.
the way doesn't work,but i have found another way to solve it.(it takes a lot of time.)
1,turn off the Anti Aliasing.(Edit -> Project Settings -> Quality -> Anti Aliasing -> Disabled)
2,change the materials's shader.
Add image by using shader(Unlit/Transparent),and change the material shader to (Sprites/Default),and tick the Pixel Snap.

The reference
The reference,too

avatar image SonIsaki · Jun 05 at 09:37 PM 0
Share

Thank you ! Your solution solved my issue with that type of shader

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How to make a square mesh and remove a part of it in real time? 0 Answers

Cloth Renderer & Mesh collision sometimes fail 1 Answer

How can I "generate a mesh" for a projected image or decal? 0 Answers

Level Creation, Prefabs and Colliders 2 Answers

How do I acces 4-gons (quads) from script 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