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 ernis_mac · Feb 14, 2012 at 07:07 AM · meshgridlines

Flashing mesh grid lines problem

Hi,

I'm building tiled plane mesh in code and all is working correct. I need to display grid lines on my ground so I've painted 2 pixel border on each tile in my tiles texture.

Problem is that lines further from camera doesn't look as good as close to camera and also when I move camera back and forth grid lines flashing all over the place.

You can see from this picture that some lines are gray etc.

alt text

I've increased Aniso to 9 from 1, this helped a little, but lines still flashing. I also have mipmaps off.

Is there anything I can do to solve the problem? Maybe drawing grid different way somehow?

At the moment my tiles are in 512x512 texture, no padding and each tile is 32x32 pixels.

Any help is appreciated.

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by senad · Feb 14, 2012 at 09:10 AM

This is actually what Mip Maps are made for, so you should turn them on and be happy.

Also I can not find a good link describing the topic, but you could read it up in the OpenGL Red Book, if you are interested.

:)

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

Answer by ernis_mac · Feb 14, 2012 at 11:11 PM

In my case Mip Maps makes it look much worse as further from camera it gets all blurry. Switching them off makes a big difference.

What I found that it I don't use white and dark gray lines for borders, it looks much better, e.g only use dark gray. I think because my outer border line was white and inner was gray it had this weird artifact when moving camera around.

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 senad · Feb 15, 2012 at 09:11 AM 0
Share

Yes, mip maps will make it look blurry, since they are a way to filter your textures. Without proper filtering you get sampling artefacts, they look the way you described it above.

Yes, dropping the white color will also reduce the artifacts, since only green or gray can get sampled.

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Problems making game grid for space rts. (just visible to player not highlighting grid cells) 1 Answer

Generating and altering a mesh at runtime as a grid based terrain 3 Answers

how to quickly disable vertices from rendering in a Mesh? 1 Answer

How do I add grid lines to a material?,How do you add grid lines to a material? 1 Answer

Tile Grid Issues with Separate Vertices 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