Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by ElaxomoeR · Aug 17, 2018 at 10:15 AM · tilemaptiletearing

Tile Tear in Unity

Can anyone help me with this please ? Here how the tear happen and the screenshots of Camera's properties and script below.


how the tear happen Camera Properties Camera Script


I used Tiled and Tiled2Unity software by following this tutorial > Unity RPG Tutorial - Learn to make an RPG game & learn C#!

adsdasdasdsa.jpg (69.1 kB)
11111111111111111.jpg (57.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

2 Replies

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

Answer by eses · Aug 17, 2018 at 10:57 AM

Hi @ElaxomoeR

First of all, you are not moving in pixel increments.

What you need to do, is do some reading on "pixel perfect camera movement" in unity, and in general as technique for retro / pixel games. There are many articles, blog posts, even premade assets.

There is nothing preventing your camera from moving freely as you have chosen to move using deltaTime, imagine your camera sliding in increments smaller than pixel each frame... you are not moving in steps so that you'd move distance that matches pixel's width/height.

Also, camera can't (possibly) be at any distance away for tilemap, consider this, you have 2x2 pixel map, if you back away so that you see 2.5x2.5 pixel area in your camera viewport, is it pixel perfect? Same goes for movement in x an y directions.

The "gaps" might be caused by several things.

I suspect that you haven't read this Tiled2Unity manual page: https://tiled2unity.readthedocs.io/en/latest/fixing-seams/

I've never used Tiled2Unity, but I've read about it. IIRC it creates a textured mesh, and it should be seamless.

Also, "gaps" might be due pixel bleeding / textured polygons / mipmaps. This is not related to Tiled2Unity or Unity, it goes for any 3D rendering system that uses textured polygons. You can minimize this by removing texture filtering in your texture, but it probably won't fix this completely, see Tiled2Unity page.

In this case, I have no idea what you have done, so it might be a tiny seam between polygons, that shows up only when camera moves at certain fractional position and ends up so that the gap shows, or it might be just texture bleeding.

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 ElaxomoeR · Aug 17, 2018 at 03:01 PM 0
Share

Thanks @eses I am just begin the study 2D and I am lost out there. I will read around what you said and thank a lot again for answering my question.

avatar image
0

Answer by slkjdfv · Jun 17, 2020 at 11:54 PM

@ElaxomoeR This will fix your issue.

https://forum.unity.com/threads/no-more-tileset-tile-tearing-in-game-tileset-overflow-tool-is-coming-soon.913817/

It's a tool I made that eliminates tearing by stretching out the edges of your tile set. Using pixel perfect cameras doesn't always fix the issue and you can still get tearing.

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

150 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 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

Tilemap, unique tiles. 1 Answer

Does the gameobject brush create tiles when painting on a 2d Tilemap? 1 Answer

What is the correct way to add gameobjects to tiles 4 Answers

[SEND HELP] Troubleshooting 2D Animated Tile Problem. 0 Answers

Updating tilemap tile sprites? 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