Jump to content

Photo

Quantizator


869 replies to this topic

#1 ilmenit OFFLINE  

ilmenit

    Moonsweeper

  • 339 posts

Posted Fri Jan 8, 2010 12:08 PM

Hi,

Quantizator is a new tool for the 8bit Atari.
quantizator.png

Currently only the gr.15 mode (4 colors) is supported.

The current version does not generate executables Attached File  monkeyisland.xex   14.51KB   337 downloads,
but you can load a created MIC and COL files to Graph2Font:
g2f.png

Post your pictures, executables, questions and comments in this thread.

Have fun :)

Edited by ilmenit, Fri Jan 8, 2010 12:13 PM.


#2 ANTIQ OFFLINE  

ANTIQ

    Chopper Commander

  • 132 posts

Posted Mon Jan 11, 2010 6:31 AM

:ponder:
:idea:
:lust:
8)
:grin:

#3 ilmenit OFFLINE  

ilmenit

    Moonsweeper

  • Topic Starter
  • 339 posts

Posted Mon Jan 11, 2010 9:16 AM

Soon I will send a new version with many changes, including better color selection algorithm and nice dithering :)

#4 Allas OFFLINE  

Allas

    Stargunner

  • 1,101 posts
  • Location:Lima - Perú

Posted Mon Jan 11, 2010 9:53 AM

I have to congratulate for the software. Just today i was testing with 10 pictures, some of them C64 pictures, real pictures, HD pictures. The tool works very fine and get a good work. Off course need post manual adjustements on G2F, but it's interesting to see how can the Atari improve the quality on pictures changing colors on DLIs.

I feel the tool should use the 5th color, but I guess that will be so hard for an algorithm.

Greetz
Mario

P.D. Maybe you can add a small verification on filename source. The tool works even if you give a non exist filename.

Soon I will send a new version with many changes, including better color selection algorithm and nice dithering :)


Edited by Allas, Mon Jan 11, 2010 9:55 AM.


#5 ilmenit OFFLINE  

ilmenit

    Moonsweeper

  • Topic Starter
  • 339 posts

Posted Mon Jan 11, 2010 10:17 AM

I feel the tool should use the 5th color, but I guess that will be so hard for an algorithm.


The 5th color have some limitations (4th and 5th can't be used together on a 8 pixel grid).
It's not easy to add in a color selection algorithm.

I plan however to add sprites and color changes in line.

Edited by ilmenit, Mon Jan 11, 2010 10:17 AM.


#6 Philsan OFFLINE  

Philsan

    River Patroller

  • 2,738 posts
  • New Orleans Saints Super Bowl XLIV Champions
  • Location:Switzerland

Posted Mon Jan 11, 2010 10:20 AM

Do you plan to add a graphic interface to your program?

#7 ilmenit OFFLINE  

ilmenit

    Moonsweeper

  • Topic Starter
  • 339 posts

Posted Mon Jan 11, 2010 10:35 AM

Do you plan to add a graphic interface to your program?


I hate programming GUIs :)
If anyone wants to make it, I can change the Quantizator to be DLL for it.

#8 snicklin ONLINE  

snicklin

    Stargunner

  • 1,204 posts
  • Location:UK

Posted Mon Jan 11, 2010 11:31 AM

I've found that if the .col file is locked (as I had a hex-editor open examining it) when creating a new output image of the same name, quantizator will crash.

It's a great bit of software though, we need more and more of these PC based Atari development utilities as they really do help our software to become more professional and quicker to develop.

#9 ilmenit OFFLINE  

ilmenit

    Moonsweeper

  • Topic Starter
  • 339 posts

Posted Tue Jan 12, 2010 4:44 AM

Version 0.95

A lot of changes - new algorithms, preview modes, locking colors.
Take a look into readme.txt for help.

Original picture vs quantized picture
Last_ninja_cover.png configuration01.png
transarctica_02.png output.png

Attached Files


Edited by ilmenit, Tue Jan 12, 2010 5:37 AM.


#10 ilmenit OFFLINE  

ilmenit

    Moonsweeper

  • Topic Starter
  • 339 posts

Posted Tue Jan 12, 2010 6:01 AM

alone.gif alone-output.png

#11 ilmenit OFFLINE  

ilmenit

    Moonsweeper

  • Topic Starter
  • 339 posts

Posted Tue Jan 12, 2010 6:11 AM

barack_obama.jpg configuration10.png

#12 ilmenit OFFLINE  

ilmenit

    Moonsweeper

  • Topic Starter
  • 339 posts

Posted Tue Jan 12, 2010 9:44 AM

Important bug-fix version. New parameters 'cf' and 'dist' weren't parser properly.

Attached Files



#13 twh/f2 OFFLINE  

twh/f2

    Dragonstomper

  • 523 posts
  • Location:Fractalus

Posted Tue Jan 12, 2010 1:02 PM

Ilmenit,

this is a very nice tool. I did some experiments on it and I have to say it's the best in its class which I have seen so far.

some more feedback:

I use on my system windows 7 64bit. When using the quantizator this DLL was missing:
http://www.dll-files...s.shtml?msvcr71

furthermore, while converting, the tool somehow gets in conflict with the systems palette (changing the color depth). an argument for a "head less" execution (e.g. showing no processing window) would be very nice.

keep working on it!! maybe some talented programmer like you finds one day a nice processing algorithm that would make use of the 5th color, pmg and in-line rasterchanges while considering all given limitations.

grtx,
\twh

Edited by twh/f2, Tue Jan 12, 2010 1:05 PM.


#14 twh/f2 OFFLINE  

twh/f2

    Dragonstomper

  • 523 posts
  • Location:Fractalus

Posted Tue Jan 12, 2010 1:03 PM

Version 0.95

A lot of changes - new algorithms, preview modes, locking colors.
Take a look into readme.txt for help.

Original picture vs quantized picture


Hey Ilmenit,

it would be nice if you couldshare the command line args you have used to convert the pictures!

grtx,
\twh

#15 ANTIQ OFFLINE  

ANTIQ

    Chopper Commander

  • 132 posts

Posted Tue Jan 12, 2010 7:11 PM

(I couldn't set /w=150.)

Parrot2.JPG configuration02.png

#16 Stephen OFFLINE  

Stephen

    River Patroller

  • 4,588 posts
  • A8 Gear Head
  • Location:Akron, Ohio

Posted Tue Jan 12, 2010 7:57 PM

Are those images really being displayed on the Atari?

Stephen Anderson

#17 ilmenit OFFLINE  

ilmenit

    Moonsweeper

  • Topic Starter
  • 339 posts

Posted Wed Jan 13, 2010 8:04 AM

Are those images really being displayed on the Atari?


Yes, you can try to make your own :)

Attached File  parrot.xex   4.97KB   178 downloads
Clipboard01.png

Version 0.97 Attached File  Quantizator097.zip   1.27MB   207 downloads

Changes:
- new: for /fastpreview and /preview additonal parameters (like setting height or palette) work and are added to the .bat files
- new: XEX file is generated (gr. 15) if width<=160 and height<=192
- new: close application button is active
- fix: wrong command was written to .bat
- fix: screen flashing in Windows Vista and 7 shouldn't happen any more.

(I couldn't set /w=150.)


The width must be dividable by 4, because 4 pixels are encoded in one byte in gr. 15.

Edited by ilmenit, Wed Jan 13, 2010 8:32 AM.


#18 GroovyBee OFFLINE  

GroovyBee

    7800 Developer

  • 7,741 posts
  • Busy bee!
  • Location:North, England

Posted Sat Jan 16, 2010 5:04 PM

I'd like to display these sorts of images on the Atari 7800 (when I get time to write an app to do it). What is the format of the MIC and COL files?

#19 ANTIQ OFFLINE  

ANTIQ

    Chopper Commander

  • 132 posts

Posted Sat Jan 16, 2010 9:28 PM

MIC
COL

#20 atarixle ONLINE  

atarixle

    Chopper Commander

  • 244 posts
  • Location:Germany

Posted Sun Jan 17, 2010 5:40 AM

Wow this little masterpiece of software is the most impressiv and usefull program this year (until the new version of g2f came out ofc ;-) ) ... well done, I hope for the 5th color too (I know you can :-) )

#21 GroovyBee OFFLINE  

GroovyBee

    7800 Developer

  • 7,741 posts
  • Busy bee!
  • Location:North, England

Posted Sun Jan 17, 2010 5:57 AM

MIC
COL


I'd seen those but there is not enough information for me to write a display app. I'm interested how things are packed into the file at a byte encoded level. I'm not an A8 coder (yet).

#22 ANTIQ OFFLINE  

ANTIQ

    Chopper Commander

  • 132 posts

Posted Sun Jan 17, 2010 11:41 AM

I think the MIC file Quantizator creates is just a raw ANTIC mode E bitmap with the dimensions you ask for.

ANTIC E has 2bpp:

00 BAK
01 PF0
10 PF1
11 PF2

The COL file is a COLBK value per line, then zeros to the end of the page, then COLPF0 values, more padding, and so on.

I think!

#23 JAC! OFFLINE  

JAC!

    Stargunner

  • 1,010 posts
  • Always looking for GFX and MSX for my demos
  • Location:Lebach, Germany

Posted Sun Jan 17, 2010 4:30 PM


Do you plan to add a graphic interface to your program?


I hate programming GUIs :)
If anyone wants to make it, I can change the Quantizator to be DLL for it.



Hi ilmenit,
Any chance for porting this to Java? I would volunteer even. This masterpiece would fit perfectly into WUDSN IDE which can act as the graphical frontend. I already have some GFX tools in there, so the frameworkis ready to plug this in (including storage of Quantizator parameter files).
JAC!

#24 nonner242 OFFLINE  

nonner242

    River Patroller

  • 3,622 posts
  • ALL your base ALL belong to us!!!!!!!!!!!!!!
  • Location:OHIO

Posted Sun Jan 17, 2010 5:30 PM

I'd like to display these sorts of images on the Atari 7800 (when I get time to write an app to do it). What is the format of the MIC and COL files?


I would love to have that GB!Posted Image
The things I could do!Posted Image

#25 emkay OFFLINE  

emkay

    Quadrunner

  • 7,042 posts
  • What's up?
  • Location:Holy Grail ;)

Posted Mon Jan 18, 2010 1:26 AM

Well, after weird things happened I wanted never to come to C64age erm Atariage. But this tool is really worth to break with it.
Seen people asking "can the A8 really show them" makes me asking myself, what have they realized ever?

Ilmenit, your tool is a real milestone. Showing the real feature of using 4 colour grahpics with the huge A8 colour palette.


dune.png output.png


Have a look t the pillar to the left. This really is some style, we could name it "Line-Arts".
Based on this, a dream may come true Posted Image

midline.GIF

The picture shows just simple midline changes on the bottom .... lda ... sta ..
Using x and y registers can double the amount of changes.

Well, not using Charmode and PMG, but just using the midline changes could enhance the style of the pictures, because we had less colour crossings and thus even more colors for the single elements.
The simple midline changes allow to reuse colours 2 times in fixed ranges. Do you think you can add this somehow into your converter?




0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users