Author Topic: Unstitching?  (Read 6462 times)

0 Members and 1 Guest are viewing this topic.

Offline tahvoo

  • Newbie
  • *
  • Posts: 7
Unstitching?
« on: May 31, 2016, 07:30:34 AM »
Does anyone know of a way to unstitch a map that has already been created? I know there has been algorithms and rudimentary programs made to stitch screenshots together to create a map... But I am wondering if there is something that does the reverse? ie Is there a program that can unstitch an already created map into individual high-res screenshots?

Offline JonLeung

  • Administrator
  • *****
  • Posts: 3313
Re: Unstitching?
« Reply #1 on: May 31, 2016, 07:54:50 AM »
Well, you won't be doing it from an image straight from VGMaps.com.  These image formats (.PNG mostly, but also .GIF and .JPG) definitely just keep what you see, there's not going to be any "history" that you can dig through.  All you can really do is crop out a section that matches the resolution of the screen (like a 256 x 224 chunk out of a NES or Super NES map, for instance - which obviously won't have any HUD stuff).  Unless you want to go to the trouble of contacting the mapper and requesting their work files.

Offline Trop

  • Hero Member
  • *****
  • Posts: 849
Re: Unstitching?
« Reply #2 on: May 31, 2016, 08:33:56 AM »
You could unstitch by grid like Jon said but then you would have transparency contamination all over.  Of course if you were going for the original game look that wouldn't matter.

Offline tahvoo

  • Newbie
  • *
  • Posts: 7
Re: Unstitching?
« Reply #3 on: May 31, 2016, 09:50:04 AM »
Is there an updated version of "Revned's Slicer" that allows for more expansion on the size of tile dimensions? The message board enititled "Recommended programs to assist your mapping" has a dead link for his "Slicer/Splicer". Only the second link provided for "2008-Slicer" works. Perhaps this would address my issue?

Offline JonLeung

  • Administrator
  • *****
  • Posts: 3313
Re: Unstitching?
« Reply #4 on: May 31, 2016, 10:06:11 AM »
I remember using Revned's Slicer and Splicer tools.  For the Super Kid Icarus maps (for April Fools' Day quite a few years back) they were handy in chopping maps into 16 x 16 squares, then replacing them and splicing them back together.  In that way it was like a tile replacement tool.

The Slicer by itself would still just cut an image into 16 x 16 squares, which might be good if you want individual tiles (assuming the original image is correctly aligned to begin with), though that sounds different than what you're looking for in the original question, which sounded like you wanted screenshots.

Offline Revned

  • Hero Member
  • *****
  • Posts: 1092
Re: Unstitching?
« Reply #5 on: May 31, 2016, 12:18:44 PM »
You can find the slicer tool here, but you might have to manually crop the source images beforehand since it doesn't support starting offsets (like if the map includes a border or padding).

Command line usage:
java -jar tile-slicer.jar slice -w <screen width> -h <screen height> <map filename> <output directory name>
« Last Edit: May 31, 2016, 12:19:56 PM by Revned »

Offline tahvoo

  • Newbie
  • *
  • Posts: 7
Re: Unstitching?
« Reply #6 on: May 31, 2016, 01:21:57 PM »
Do you know if its for Mac or PC? I seem to be having trouble getting it to work on a Mac...

Offline Revned

  • Hero Member
  • *****
  • Posts: 1092
Re: Unstitching?
« Reply #7 on: May 31, 2016, 05:44:50 PM »
It should work for both, and I even made it on a Mac. What happens when you run it? It assumes the output directory exists, but otherwise it just worked fine for me.

Offline TerraEsperZ

  • Hero Member
  • *****
  • Posts: 2274
Re: Unstitching?
« Reply #8 on: May 31, 2016, 08:36:24 PM »
I'm trying to understand what's the intended purpose for this. Unless a game has absolutely no visible UI elements and no parallax scrolling, there's no way you can actually "recreate" the screenshots it was assembled from because they would almost certainly have been edited or cropped in some way before being used.
Current project that I really should try to finish:
-Drill Dozer (GBA)
-Sonic 3D Blast (Genesis)
-Naya's Quest (PC)

Pending project:
-A ton of stuff that will never be finished