[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 561: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 617: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1065: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1065: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1065: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 370: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5312: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5312: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5312: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
Sprite Stitch Board! • Spriter - a chart generator for Mac - Page 2
Page 2 of 7

Re: Spriter - a chart generator for Mac

Posted: Fri May 20, 2011 12:42 pm
by ScienceDad
Hey, that's fantastic! :grin: I notice that the 'white' colour is annotated with a semi-circle in your Mario image, however - that should have been a reserved colour and I had put a routine in for this reason, but obviously it's not working properly... hmm.

As for the colour matching, I am calculating the "Euclidean distance" of each colour in the RGB colour space to the nearest DMC thread RGB values. This is like calculating the hypoteneuse of a right-angle triangle, only in 3D. Unless there's a bug, of course!

Could you please write me the RGB coordinates of the blue colour being linked to purple?

Thanks!
- sd

Re: Spriter - a chart generator for Mac

Posted: Fri May 20, 2011 1:45 pm
by StitchPlease
Would this help at all for the color matching?


Keep up the great work! It's amazing!

Re: Spriter - a chart generator for Mac

Posted: Fri May 20, 2011 5:09 pm
by ScienceDad

Re: Spriter - a chart generator for Mac

Posted: Sat May 21, 2011 5:21 am
by Lord Libidan
I was doing some fiddling around, trying to work out what the problem with the colours was. And I found it. That colour list goes to colour 3799. Its missing colours 3801 to 5283. Now some of those are variations (4010-4240), and some are odd colours (pearls, etc) but most are normal colours. All the colours that I thought came out wrong were in the missing section.

I also had some odd experiences with it too, sometimes it just doesn't want to work. There seems to be no pattern in the not working files though, so I'll keep using it till I can tell you more info, and also sometimes I get a crazy output. (see attachment) In short, it stripes everything. The background is mainly black, but it stripes everything else as well... It has 34 colours in the pattern, so it isn't colour heavy and all the things you've said in your first post are fine. It also appears to just be that image. I can edit it down to be smaller, copy and paste into a file that I know will work, and it still comes up with the odd results, or just won't make the pattern at all... Is it due to transparency? I don't think there is any in the image, but when putting the image together I used it to copy things in, etc...

Full Pattern.pdf
(861.87 KiB) Downloaded 121 times


EDIT: The crazy output seems to be formed when you "select all" "copy" "paste" an image into a new blank image. Using either paintbrush program or pixlr.com
I'll see what else makes it happen/how to fix it.

Re: Spriter - a chart generator for Mac

Posted: Sat May 21, 2011 4:24 pm
by ScienceDad

Re: Spriter - a chart generator for Mac

Posted: Sat May 21, 2011 8:24 pm
by ScienceDad
Okay, I found another DMC to RGB conversion table published at , which has 454 DMC colours, 94 more colours than the table I had been using!

Just for giggles, I threw together a couple of 3d scatter plots using the RGB values of both sources for a side-by-side comparison:
dmc2rgb_comparison.png
dmc2rgb_comparison.png (87.75 KiB) Viewed 2623 times


What's also interesting is that these two tables disagree quite a bit! The mean distance in RGB colour space for a given DMC floss is 40 units (on a scale of 0 to 255) with an interquartile range (25%-75%) of 22.8 to 52.5 ! That's really substantial!

I'm going to roll this new table into my revision of Spriter 0.3 beta. Hopefully I'll finish writing the new function that will partition a sprite into multiple pages of output, with pixels split into 10x10 blocks that are labeled with numbers. Also adding thread counts into the legends, with page-specific and overall counts.

I love to code :grin:

- sd.

Re: Spriter - a chart generator for Mac

Posted: Sun May 22, 2011 3:12 am
by Lord Libidan

Re: Spriter - a chart generator for Mac

Posted: Sun May 22, 2011 11:01 am
by amneufeld
454 is the current total of solids. so nice find. Lot of places are missing those last few dozen new ones.

Re: Spriter - a chart generator for Mac

Posted: Sun May 22, 2011 11:19 pm
by ScienceDad
Tonight I'm posting Spriter v0.3 beta, with the following new features and bug fixes:

- partitions sprite image into 50x50 pixel grids on printable 8.5"x11" (landscape) pages
- legends have page-specific and total thread counts
- now using complete table of DMC RGB values
- program automatically opens PostScript file as PDF after processing
- pixel grid partitioned into 10x10 subgrids
- grid axes are labelled at every 10-th row and 10-th column
- changed packaging of application to be (hopefully) independent of Python2.x version number - please report any problems using this update!
- "icons" (annotations of pixels of similar colours) are now drawn in a colour that is related to the base colour, instead of just black or white - this makes for a more visually-appealing overall chart
- tinkered with how "icons" are being drawn
- legend now only lists thread colours that are present on the current page, in an attempt to prevent colour-rich sprites from causing the legend to overrun the size of the page
- writing better PostScript code to make smaller files
- legend no longer contains duplicate DMC colours (resulting from 2 pixel RGBs matching the same thread)

To download, please go to the first post in this thread, where I will have replaced the .zip file attachment.

Here is an example page (10 of 20) taken from a Super Mario World 3 map (as usual, converted to PNG from the PDF output of Spriter):
mario2k3-map1-pg10.png
mario2k3-map1-pg10.png (32.41 KiB) Viewed 2583 times


Share and Enjoy! :grin:

(And please keep reporting those bugs, it's a huge help!)
- sd.

Re: Spriter - a chart generator for Mac

Posted: Mon May 23, 2011 2:11 am
by Lord Libidan
Wow. You really did some work on it... a lot better.
The colour lists are a bit odd though. Have you thought about having a full list on its own page at the end, it would make things less confusing. and then you could have a larger section on each page for the pattern... (That's what KGchart does) I assume making it so only a set number of colours come up on that page and the rest on another is easy enough?
I also still can't get the program to deal with new images. Only downloaded and images prior to downloading it...

EDIT:
The weird output. Worked it out. Its all down to dimensions. I'll explain with files so you can try it yourself. The original image works fine. Image 2, which is a slice of the original image comes up with the odd output. The previous images I've had problems with are also thin but long images. I don't know what the dimensions need to be to stop this yet, but its the same if its too wide with a thin height.
(In spoiler tags to reduce space)