Slick Forums

Discuss the Slick 2D Library
It is currently Thu May 23, 2013 3:08 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Thu May 24, 2012 3:54 am 
Offline
Game Developer
User avatar

Joined: Wed Feb 17, 2010 12:24 am
Posts: 594
See screen shot: http://i.imgur.com/zAWFG.png

The black lines are not part of the map. Sometimes they also occur vertically too.

This happens a lot with my map. It's a simple map, 1024x768 (32x32 tiles).

Slick version 274
Tiled Map Editor Version 0.8.0

Typically it happens if I'm panning over the map quickly. Typically doesn't happen when it's standing still. Happens less with VSYNC enabled (targetFrameRate of 60), but still can happen.

Thoughts?

I'm rendering like this:
Code:
   tiledMap.render(0, 0);


Would using startUse/endUse help? If so, how to use on title map?


Top
 Profile  
 
PostPosted: Thu May 24, 2012 3:49 pm 
Offline

Joined: Mon May 07, 2012 11:36 pm
Posts: 93
In all honesty, that sounds like a graphics card problem.. I could be wrong, but have you tried updating your graphic cards drivers? Might be worth a shot.


Top
 Profile  
 
PostPosted: Thu May 24, 2012 5:41 pm 
Offline
Game Developer
User avatar

Joined: Wed Feb 17, 2010 12:24 am
Posts: 594
AtomizerZero wrote:
In all honesty, that sounds like a graphics card problem.. I could be wrong, but have you tried updating your graphic cards drivers? Might be worth a shot.


Fair enough, it's a slow integrated card. After some testing, it doesn't happen on my gaming workstation nor my gf's computer, so that's more then likely. thanks.


Top
 Profile  
 
PostPosted: Mon May 28, 2012 2:23 pm 
Offline
Slick Zombie

Joined: Sat Jan 27, 2007 7:10 pm
Posts: 1469
Looks like the same issue as this. What does your tileset image look like?

Add a 2px empty border around your sprites and use FILTER_NEAREST for your sprite sheets.


Top
 Profile  
 
PostPosted: Tue May 29, 2012 2:16 am 
Offline
Game Developer
User avatar

Joined: Wed Feb 17, 2010 12:24 am
Posts: 594
davedes wrote:
Looks like the same issue as this. What does your tileset image look like?

Add a 2px empty border around your sprites and use FILTER_NEAREST for your sprite sheets.


I'm using the basic tileMap class: http://slick.cokeandcode.com/javadoc/or ... edMap.html

How do I access the underlying sprite sheet and how do I set the FILTER_NEAREST property?


Top
 Profile  
 
PostPosted: Wed May 30, 2012 4:25 pm 
Offline
Slick Zombie

Joined: Sat Jan 27, 2007 7:10 pm
Posts: 1469
How are you creating your tiled map and tile sets? If you're loading them from file, Slick uses nearest filtering by default (at least, in the latest versions of Slick. I'm not sure about older versions).

Sorry I can't help much without a way to reproduce this problem.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group