TMX AndEngineExample issue

  ... in the unlikely case you discovered a bug, post it here.

Re: TMX AndEngineExample issue

Postby Nicolas Gramlich » Wed Jul 28, 2010 10:30 pm

I created a tool that transforms TileSets like this:
desert_tiled.png
Original TileSet.
desert_tiled.png (29.02 KiB) Viewed 2029 times


into a TileSet like this:
fixed_desert_tiled.png
Fixed TileSet.
fixed_desert_tiled.png (24.26 KiB) Viewed 2029 times


The difference is that each tile now has an additional 1px padding around itself, with the outermost pixel row/column of each side copied into that border. I'm 99,999999% sure this works on every device :!:

As doing this manually will obviously cause serious brain damage :P , I created this commandline-tool, that handles this task in a fraction of a second. Usage:
Code: Select all
-f C:\Users\nico\Desktop\test\desert_tiled.png -w 32 -h 32 -m 1 -s 1


Could the guys who experienced the flickering please test the latest version from the repository. Thanks :)

(I'll push the tool to a new repository, once you verified the flickering is now really gone :P)

Best Regards,
Nicolas
Nicolas Gramlich
Site Admin
 
Posts: 1734
Joined: Mon Jun 07, 2010 6:20 pm
Location: Schriesheim, Germany

Re: TMX AndEngineExample issue

Postby badlogicgames » Wed Jul 28, 2010 11:49 pm

Kudos for that solution :)

Are you planning on increasing the performance of that little thing? I get 12fps on my N1 when executing the AndEngineExample example.
badlogicgames
 
Posts: 19
Joined: Sat Jul 10, 2010 5:27 pm

Re: TMX AndEngineExample issue

Postby Nicolas Gramlich » Thu Jul 29, 2010 12:23 am

On the Nexus (Android 2.2) I'm getting. The Camera-Size (800x480) is way too big actually, you can't see much on small displays:
07-29 00:21:56.792: DEBUG/AndEngine(22650): FPS: 44,80 (MIN: 18 ms | MAX: 43 ms)
07-29 00:22:01.802: DEBUG/AndEngine(22650): FPS: 44,12 (MIN: 19 ms | MAX: 40 ms)
07-29 00:22:06.802: DEBUG/AndEngine(22650): FPS: 43,35 (MIN: 19 ms | MAX: 37 ms)
07-29 00:22:11.812: DEBUG/AndEngine(22650): FPS: 40,67 (MIN: 18 ms | MAX: 94 ms)


Switching back to 480x320 should bring it back up to 60 FPS.

Best regards,
Nicolas
Nicolas Gramlich
Site Admin
 
Posts: 1734
Joined: Mon Jun 07, 2010 6:20 pm
Location: Schriesheim, Germany

Re: TMX AndEngineExample issue

Postby badlogicgames » Thu Jul 29, 2010 12:24 am

my bad, i had an outdated version which probably didn't use the culling i saw in the code.
badlogicgames
 
Posts: 19
Joined: Sat Jul 10, 2010 5:27 pm

Re: TMX AndEngineExample issue

Postby Nicolas Gramlich » Thu Aug 05, 2010 6:27 pm

Totally forgot to post the link to the tool I uploaded to Google Code :)
Not the most efficient code but still fixes probably any tileset in under a second.

:arrow: http://code.google.com/p/andenginetmxti ... factfixer/

Best Regards,
Nicolas
Nicolas Gramlich
Site Admin
 
Posts: 1734
Joined: Mon Jun 07, 2010 6:20 pm
Location: Schriesheim, Germany

Re: TMX AndEngineExample issue

Postby MaXMC » Thu Nov 18, 2010 3:19 pm

What happens if your tileset doesn't have black lines between tiles? Will the neighboring tile bleed through instead?
MaXMC
 
Posts: 6
Joined: Thu Nov 18, 2010 12:50 pm

Re: TMX AndEngineExample issue

Postby Nicolas Gramlich » Tue Nov 30, 2010 3:14 am

MaXMC wrote:What happens if your tileset doesn't have black lines between tiles? Will the neighboring tile bleed through instead?


Yep
Nicolas Gramlich
Site Admin
 
Posts: 1734
Joined: Mon Jun 07, 2010 6:20 pm
Location: Schriesheim, Germany

Re: TMX AndEngineExample issue

Postby MaXMC » Mon Dec 06, 2010 2:33 pm

Nicolas Gramlich wrote:
MaXMC wrote:What happens if your tileset doesn't have black lines between tiles? Will the neighboring tile bleed through instead?


Yep


Well... that sucks.
MaXMC
 
Posts: 6
Joined: Thu Nov 18, 2010 12:50 pm

Re: TMX AndEngineExample issue

Postby stanchat » Fri Mar 18, 2011 7:46 pm

If your tileset doesn't have these black lines, short of a manual process is their any tool that will insert these black lines automatically. Also if I run this tool on tileset that doesn't have these lines will this work? Or can I just run it through twice and have the same net effect?
stanchat
 
Posts: 24
Joined: Tue Sep 07, 2010 7:59 pm

Re: TMX AndEngineExample issue

Postby stanchat » Sat Mar 19, 2011 3:18 pm

Nicolas Gramlich wrote:Totally forgot to post the link to the tool I uploaded to Google Code :)
Not the most efficient code but still fixes probably any tileset in under a second.

:arrow: http://code.google.com/p/andenginetmxti ... factfixer/

Best Regards,
Nicolas


Is their a binary only version of this tool?
stanchat
 
Posts: 24
Joined: Tue Sep 07, 2010 7:59 pm

PreviousNext

Return to Bugs

Who is online

Users browsing this forum: No registered users and 4 guests