Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Lines between tiles
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
nekochan  
View profile  
 More options Apr 22 2009, 11:07 pm
From: nekochan <y...@pc4.so-net.ne.jp>
Date: Wed, 22 Apr 2009 20:07:08 -0700 (PDT)
Local: Wed, Apr 22 2009 11:07 pm
Subject: Lines between tiles
Hi, all!
It's my first post here :)

I'm developing a tile-based scrolling game
with TileMapAtlas.

As pointed out in this group before,
there appear thin lines between tiles
and it's not a very good news for me.

I found that I can hide the line by
putting the same color as the edge of a tile
on the neighboring edge of tile to the next :
If a tile's right side was green,
paint the left side of the next tile green.

Doing like this of course is not a good solution
because it spoils neighboring tiles.
But guessing from this, by modifying TileMapAtlas to allow "offset"
to skip a few pixels between tiles will get the same result,
which will be a first-aid to this problem.

I, however, am new to cocos2d and I don't know
where to modify.
I even don't know if it's possible or not.
Somebody please give me advice ;)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leto  
View profile  
 More options Apr 23 2009, 3:17 am
From: Leto <kau...@gmail.com>
Date: Thu, 23 Apr 2009 17:17:23 +1000
Local: Thurs, Apr 23 2009 3:17 am
Subject: Re: [cocos2d-iphone] Lines between tiles

Hey nekochan

I had an issue with lines between tiles too and the best solution for me was
switching to 2D Projection.  You do that with [[Director sharedDirector]
set2Dprojection]; after it's attached to the window.  Side-effect is 3D
effects and camera don't work so well.

My other problem was with "UV bleed" because in an atlas the float
coordinates for UVs are not too precise and some pixels/colour can bleed.
 You can try spacing the tiles on the graphic apart by 1px or painting an
extra border around the tile e.g. if the tile is 32x32 paint an extra border
to make it 34x34.

Search for alis/aliasing also.

Just some suggestions

--Leto


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
riq  
View profile  
 More options Apr 23 2009, 3:26 am
From: riq <ricardoques...@gmail.com>
Date: Thu, 23 Apr 2009 09:26:50 +0200
Local: Thurs, Apr 23 2009 3:26 am
Subject: Re: [cocos2d-iphone] Re: Lines between tiles
nekocha, could you try with v0.7.2 rc ?

thanks,

riq.

--
http://blog.sapusmedia.com
http://monodiario.blogspot.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nekochan  
View profile  
 More options Apr 24 2009, 1:07 pm
From: nekochan <y...@pc4.so-net.ne.jp>
Date: Fri, 24 Apr 2009 10:07:00 -0700 (PDT)
Subject: Re: Lines between tiles
Leto, Riq,
Thanks for your replies!

I wasn't careful enough to find the update information
of TileMapAtlas in change log X(

But anyway, I have several codes to test with my current condition
and don't want to update cocos2d until it's finished,
So I've just tried Leto's idea first.
It worked fine!!
It's a nice quick-aid :)

After I've done my tests I'll update to v0.7.2 :)

Thanks!!
----
  Nekochan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
codem01@gmail.com  
View profile  
 More options Jun 14 2009, 11:57 am
From: "code...@gmail.com" <code...@gmail.com>
Date: Sun, 14 Jun 2009 08:57:04 -0700 (PDT)
Local: Sun, Jun 14 2009 11:57 am
Subject: Re: Lines between tiles
I had the same problem with adjacent AtlasSprites (v0.7.3) and
switching to 2D projection also fixed it.

On Apr 23, 2:17 am, Leto <kau...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »