{"action":"created","issue":{"url":"https://api.github.com/repos/mono/CocosSharp/issues/335","labels_url":"https://api.github.com/repos/mono/CocosSharp/issues/335/labels{/name}","comments_url":"https://api.github.com/repos/mono/CocosSharp/issues/335/comments","events_url":"https://api.github.com/repos/mono/CocosSharp/issues/335/events","html_url":"https://github.com/mono/CocosSharp/issues/335","id":122246889,"number":335,"title":"Tiled tile map artifacts when resized 2x,3x etc.","user":{"login":"witlock","id":8792184,"avatar_url":"https://avatars.githubusercontent.com/u/8792184?v=3","gravatar_id":"","url":"https://api.github.com/users/witlock","html_url":"https://github.com/witlock","followers_url":"https://api.github.com/users/witlock/followers","following_url":"https://api.github.com/users/witlock/following{/other_user}","gists_url":"https://api.github.com/users/witlock/gists{/gist_id}","starred_url":"https://api.github.com/users/witlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/witlock/subscriptions","organizations_url":"https://api.github.com/users/witlock/orgs","repos_url":"https://api.github.com/users/witlock/repos","events_url":"https://api.github.com/users/witlock/events{/privacy}","received_events_url":"https://api.github.com/users/witlock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-15T11:01:21Z","updated_at":"2015-12-19T04:14:31Z","closed_at":null,"body":"This is taken from the official Tiled example (https://developer.xamarin.com/guides/cross-platform/game_development/cocossharp/tiled/):\r\n\r\nhttp://i.imgur.com/M39dmUi.png\r\nThe one pixel lines are kind of the problem I'm talking about.\r\n\r\nI'm not trying to fit a certain size map on my screen. All I'm doing is displaying as much of the map as my camera/screen size allows.\r\n\r\nMine:\r\n![artifacts](https://cloud.githubusercontent.com/assets/8792184/11809008/959a8f8e-a32c-11e5-9df0-8ff4d252c6a0.jpg)\r\n"},"comment":{"url":"https://api.github.com/repos/mono/CocosSharp/issues/comments/165945683","html_url":"https://github.com/mono/CocosSharp/issues/335#issuecomment-165945683","issue_url":"https://api.github.com/repos/mono/CocosSharp/issues/335","id":165945683,"user":{"login":"rtabbara","id":3273442,"avatar_url":"https://avatars.githubusercontent.com/u/3273442?v=3","gravatar_id":"","url":"https://api.github.com/users/rtabbara","html_url":"https://github.com/rtabbara","followers_url":"https://api.github.com/users/rtabbara/followers","following_url":"https://api.github.com/users/rtabbara/following{/other_user}","gists_url":"https://api.github.com/users/rtabbara/gists{/gist_id}","starred_url":"https://api.github.com/users/rtabbara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtabbara/subscriptions","organizations_url":"https://api.github.com/users/rtabbara/orgs","repos_url":"https://api.github.com/users/rtabbara/repos","events_url":"https://api.github.com/users/rtabbara/events{/privacy}","received_events_url":"https://api.github.com/users/rtabbara/received_events","type":"User","site_admin":false},"created_at":"2015-12-19T04:14:31Z","updated_at":"2015-12-19T04:14:31Z","body":"@witlock This is somewhat related to #338 and #339. Historically, to avoid border artefacts, the actual texture area used for any given tile is slightly reduced. After, #338, one can now toggle this behaviour on and off by using the <code>HalfTexelOffset</code> property. There's also the static <code>CCTileMap.DefaultHalfTexelOffset</code> that you can set as once-off to apply to all your tile-maps.. However, to maintain pre-existing behaviour, by default this is set to true.\r\n\r\nI think once you turn off this property, as well as ensure that the tile map's <code>Antialiasing</code> is also off, then you should get the desired behaviour.\r\n\r\nBut in general, if you want something a bit more robust, I would recommend laying out your tiles in such a way so that there aren't high-contrast 1 pixel borders around a given tile. In other words, if the borders of your tiles are as homogeneous as possible, then this greatly reduces the visual effect of any scaling inconsistencies.\r\n"}}