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 toniron95 · Mar 30, 2015 at 08:53 PM · c#texturemesh

Procedural mesh generation, problem with textures

I am trying to achieve tiling with mesh. I manage to get it working but I have odd problem with textures. On edges there are sometimes lines which shouldn't be there, the thing is its not on every tile like that, and if I move the camera it disappears from one place and it shows up on another place. Pictures: Picture 1, Picture 2. And here is the code I use for applying texture to a mesh:

 newUVs.Add(new Vector2(tileSize * texture.x, tileSize * texture.y + tileSize));
 newUVs.Add(new Vector2(tileSize * texture.x + tileSize, tileSize * texture.y + tileSize));
 newUVs.Add(new Vector2(tileSize * texture.x + tileSize, tileSize * texture.y));
 newUVs.Add(new Vector2(tileSize * texture.x, tileSize * texture.y));

tileSize is 0.32f in my example. texture is Vector2(Grass texture is 0,0 and Dirt texture is 1,0). I really have no idea how to fix it anymore. I tried bunch of stuff but same thing.

Comment
Add comment · Show 3
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 AlwaysSunny · Mar 30, 2015 at 05:07 PM 0
Share

Ensure your tiles are mathematically flush (sharing verts). Set your texture's tiling mode to "clamp" ins$$anonymous$$d of "repeat". Ensure you're using "Fantastic" quality settings to eli$$anonymous$$ate quality as a factor.

avatar image toniron95 · Mar 30, 2015 at 05:21 PM 0
Share

Setting to clamp removed them somewhere but they still appear, quality is set on fantastic.

avatar image toniron95 · Mar 31, 2015 at 06:59 AM 0
Share

Uhh thanks, I googled for "seam" and it was exactly what I was looking for, thank you! Would you $$anonymous$$d converting your last comment to answer so I can select it?

1 Reply

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

Answer by AlwaysSunny · Mar 30, 2015 at 09:45 PM

Because this is a fairly common issue, I'm sure there's quite a few posts about how to address it hiding in plain sight on the web. A dozen or so different factors can contribute to produce similar issues, and the only way to eliminate the problem entirely involves observing the "best practices" for each aspect. (game quality, mesh quality, texture settings, camera properties, scene characteristics...) Do plenty of research to satisfy yourself that you're doing everything you possibly can to overcome the problem. Search for terms like "seam" and "artifact" as well as plain-english like "black line" in conjunction with "unity".

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

How to texture an irregular (hexagon) shape (mesh) ? 1 Answer

Do I need to split my mesh up to properly UV texture it? 1 Answer

Brushes like in unity built-in terrain. Mouse projection on mesh in edit mode 1 Answer

Multiple Cars not working 1 Answer

Mesh Creator (editor script) At Runtime 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