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 Silvercaster893 · Jun 05, 2015 at 05:02 PM · meshline

Weird Line Between Meshes

Hi everyone! Sorry if this is a noob-ish question, but I don't even know how to go about searching for this problem.

I'm making a runner for mobile, where the player is traveling down a river. To have the river itself looping, I have several chunks of ground-river-ground that get placed next to each other and looped around. For gameplay reasons, the chunks need to be relatively small (I have 12 of them that cover the length of the screen). I'm noticing something strange between the ground pieces, however. No matter where I place the chunks in relation to each other, there are occasional lines between them that appear to be the texture on the side of the ground peeking through.

Meshes

These are close-up screens of two of my meshes lined up with each other. The screen on the left shows them disconnected, so you can see what the model looks like on the side. The middle screen shows the models when they're right next to each other. I zoomed in as much as I could and have the coordinates as close as Unity allows me to. However, that green line still shows up in the middle (which I believe to be the side of the model peeking through). One might assume that they're simply not lined up correctly, which is why I've included the third screen - that screen shows the two models overlapping significantly (as you can see by the blue line of the mesh on the right) - and the green line is still there.

The line isn't constant - it's not always visible, only at certain camera angles/positions - but on mobile I see the lines quite consistently as the game moves forward. The model is a very simple rectangular box - 24 verts, 12 tris. I've tried several different shaders, different texture compression settings, etc. and I can't think of any reason why this might be happening. Would something like this be the result of weirdness with the model, or maybe with the texture? Or is there some setting I need to check in Unity?

Thanks in advance for any assistance :)

stitching.png (28.2 kB)
Comment
Add comment · Show 1
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 jctz · Jun 06, 2015 at 07:22 PM 0
Share

A quick test: I would move both of them to the top level of the hierarchy and check that they have exactly the same value in the Z coordinate and that they don't have any stray rotations around any axis.

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by RLin · Jun 07, 2015 at 01:40 AM

Because of the way 3d rendering works, it is difficult to completely get rid of the line. If you are never supposed to see the side texture anyways, I would suggest deleting the sides of the mesh. If that is not an option, try increasing both the near and far culling planes of your camera, as increasing them reduces depth artifacts.

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 Silvercaster893 · Jun 08, 2015 at 03:10 PM 0
Share

Deleting the sides of the mesh seems to have done the trick! Thank you!! :D

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Identify if two vertices are connected 0 Answers

Converting a freeform line into a LOFTED 3d geometry during RUNTIME 2 Answers

LineRenderer with nontrivial radius? 1 Answer

How to modify the thickness of MeshToPology.Lines? 1 Answer

How to draw a line around multiple/child objects? 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