mega-happy-sprite now has load bmp support

Talk about development tools here

Moderator: BigEvilCorporation

Stef
Very interested
Posts: 3043
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Sat Jan 19, 2013 12:50 pm

I'm looking for a image software which is able to take whatever image as input and optimize it for RGB333 display... I searched for severals hours now and cannot find anything, that's just crazy ! Does that actually exists ???
I do not speak about tools which just reduce colors number by clearing lower bits but tools which can actually use dithering to optimize the final RGB333 rendering.

Ti_
Very interested
Posts: 82
Joined: Tue Aug 30, 2011 7:50 am

Post by Ti_ » Sat Jan 19, 2013 1:32 pm

Stef wrote: Does that actually exists ???
I know only one.
"Image to Sega"
It's doesn't clear 3bits, but use other simple method.

bastien
Very interested
Posts: 208
Joined: Mon Jun 25, 2007 7:19 pm
Location: Besançon,France
Contact:

Post by bastien » Sat Jan 19, 2013 3:18 pm

You can use the xicolor dither plugin for photoshop paintshop pro or gimp.
The plugin name is ximagic

Stef
Very interested
Posts: 3043
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Sat Jan 19, 2013 4:41 pm

Thanks for your fast replies !

The first tool can be useful as it can convert any images (without the usual 16 colors restriction) to genesis color image but still it is not able to do color quantization and optimization.

The later one seems to be able to do what exactly i want but i do not have photoshop, i will try some free alternatives which support photoshop plugin :)

Thanks again guys !

sega16
Very interested
Posts: 251
Joined: Sat Jan 29, 2011 3:16 pm
Location: U.S.A.

Post by sega16 » Sat Jan 19, 2013 4:53 pm

You can use my direct color converter. First you convert the image to direct color and convert it back to png then the outputted png will have only genesis colors. http://sega16.x10.mx/directcolor.html

Stef
Very interested
Posts: 3043
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Sat Jan 19, 2013 6:57 pm

Well i tried all solutions and... all failed X'D

XiColor can optimize images for RGB333 *but* it can't reduce colors at the same time (for instance if you want to reduce to 16 colors only).
So if you convert your base image to RGB333 you can end up with an image with 70 colors for instance. Then if you try to reduce the number of colors to 16 after the first operation, it will reintroduce new colors outside the RGB333 range :-(
It would be nice to choose at same time the color range (RGB333) and maximum color count but XiColor is not able to do that.

sega16>Thanks :) I tried your directcolor tool but again can't get what i want : i used the i3 switch as i want to convert for genesis palette but resulting images do not fit in the RGB333 space but in RGB666 (i can have color as #D86448 for instance).
I also want to specify the number of maximum colors to use for the conversion which is not possible.

Well, i guess i will have to continue with my awful 16 colors conversions :p

bastien
Very interested
Posts: 208
Joined: Mon Jun 25, 2007 7:19 pm
Location: Besançon,France
Contact:

Post by bastien » Sat Jan 19, 2013 7:05 pm

I use paint shop pro for reduce color after the Xi magic dithering.
For Free software i think The Gimp can made that too.
maybe you can find some other solution here ( french link):
http://www.yaronet.com/posts.php?sl=&h=1&s=150367

sega16
Very interested
Posts: 251
Joined: Sat Jan 29, 2011 3:16 pm
Location: U.S.A.

Post by sega16 » Sat Jan 19, 2013 8:07 pm

Stef wrote: sega16>Thanks :) I tried your directcolor tool but again can't get what i want : i used the i3 switch as i want to convert for genesis palette but resulting images do not fit in the RGB333 space but in RGB666 (i can have color as #D86448 for instance).
I also want to specify the number of maximum colors to use for the conversion which is not possible.
No my program is not RGB666 it is RGB333 colors but for RGB333 mode it outputs each pixel in sega genesis palette format which is BBBxGGGxRRRx x is always 0.The forumla for converting to 3bit is (x+18)/36
So 255 would end up as 7 which is the 3bit max value.

Stef
Very interested
Posts: 3043
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Sat Jan 19, 2013 8:55 pm

sega16 wrote:
Stef wrote: sega16>Thanks :) I tried your directcolor tool but again can't get what i want : i used the i3 switch as i want to convert for genesis palette but resulting images do not fit in the RGB333 space but in RGB666 (i can have color as #D86448 for instance).
I also want to specify the number of maximum colors to use for the conversion which is not possible.
No my program is not RGB666 it is RGB333 colors but for RGB333 mode it outputs each pixel in sega genesis palette format which is BBBxGGGxRRRx x is always 0.The forumla for converting to 3bit is (x+18)/36
So 255 would end up as 7 which is the 3bit max value.
Strange... i obtained an image with colors outside that range, for instance color #D86448 which give :
B: 01011000
G: 01100100
R: 11010000

I forgot to mention that i tested that by using -i3 to do conversion then i used the -o switch to get back an "normal" image from the genesis directcolor image.

Stef
Very interested
Posts: 3043
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Sat Jan 19, 2013 9:10 pm

bastien wrote:I use paint shop pro for reduce color after the Xi magic dithering.
For Free software i think The Gimp can made that too.
maybe you can find some other solution here ( french link):
http://www.yaronet.com/posts.php?sl=&h=1&s=150367
Thanks, i already tested the Xixxx tools and it appears they can't reduce colors and using specific space color at space time, you can do one operation or the other, but not both at same time which is what i intend to do : reduce image to 16 colors and keep result colors in RGB333 space.
That is really amazing since it does not sound as a very unusual operation but still i can't find any good solution for that :-/
The other tool "PNGQuant" is able to reduce colors but again, without color space restriction.

TmEE co.(TM)
Very interested
Posts: 2395
Joined: Tue Dec 05, 2006 1:37 pm
Location: Estonia, Rapla City
Contact:

Post by TmEE co.(TM) » Sun Jan 20, 2013 1:11 am

I quantisize in PaintShopPro asd do color reduction in Irfanview or PSP, one works better for some things than other...
Mida sa loed ? Nagunii aru ei saa ;)
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen

Stef
Very interested
Posts: 3043
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Sun Jan 20, 2013 11:32 am

Yep well looks like we cannot quantize colors on image with a specified color space constraint, software probably exists but pretty difficult to find :p
I will just continue the old method, quantize then apply color space constraint ^^

Chilly Willy
Very interested
Posts: 2849
Joined: Fri Aug 17, 2007 9:33 pm

Post by Chilly Willy » Sun Jan 20, 2013 8:49 pm

Or perhaps maybe sega16 can modify his direct color converter to do what you wish? Never hurts to ask. :D

Stef
Very interested
Posts: 3043
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Mon Jan 21, 2013 8:57 am

Hehe i guess that is not that easy, good quantizer / color reduction algorithm exists but i think we cannot easily modify them to work on limited RGB space ;)

sega16
Very interested
Posts: 251
Joined: Sat Jan 29, 2011 3:16 pm
Location: U.S.A.

Post by sega16 » Fri Jan 25, 2013 12:07 am

Chilly Willy wrote:Or perhaps maybe sega16 can modify his direct color converter to do what you wish? Never hurts to ask. :D
I have a better program that will be done soon. It is called retro graphics toolkit. It has a nice gui that lets you edit tiles. It also supports importing images.The way I handled color reduction is I downloaded an open source algorithm and then reduced the outputed colors to rgb333 colorspace and if the rgb888 to rgb333 conversion causes duplicate color it will try reducting with 17 colors and so on. It will stop at 256 colors to prevent infinate loop it also checks if the image has less or equal to 16 colors to begin with. I just have to fix a few glitches then it should be ready. I have no idea for a release date. However in the mean time my program is open source and I am sure that it is an easy fix.

Post Reply