Pictoric (was: New conversion algorithm)
Re: Pictoric (was: New conversion algorithm)
Just a quick question: can this algorithm be adapted to spew out AIC format pictures???
Re: Pictoric (was: New conversion algorithm)
That's not actually a bad idea: Basically have the algorithm select the best combinations of ink, paper, invert, with a fixed set of color attributes on the left side of the screen.
Re: Pictoric (was: New conversion algorithm)
Try to press the "RUN" button on the GrafX2 launch dialog while pressing the "a" key on the keyboard with the latest version on github. This restrict the color changes on the first column only. But this isn't what you really meant I guess. You'd probably want to add the fact that odd and even line uses the very same repeating color scheme, wouldn't you ? So this is a totally different algorithm: try all color 4-tuples on odd/even lines that minimize the total error on the screen. Am I right ?
Re: Pictoric (was: New conversion algorithm)
Exactly!!! And additionally, is it possible to optionally specify those two colors (rather than let the software choose)?
If you could produce a version that does this, then I would like to integrate it with 8bit-Unity. My own AIC encoder is quite poor at reproducing details.
For example, take a look at the attached conversion... can you do better?? (black areas were post-processed, to improve visibility)
- Attachments
-
- scene1.png (76.98 KiB) Viewed 273081 times
-
- goblin-oric-320.PNG (87.33 KiB) Viewed 273081 times
Re: Pictoric (was: New conversion algorithm)
I must say I am impressed of the latest demos of 8-bit unity. Keep on with the good work!!!
Re: Pictoric (was: New conversion algorithm)
If you chose the 2 colors, then the algorithm reduces to a plain dither.
I'll see what I can do on that topic. Stay tuned.
Re: Pictoric (was: New conversion algorithm)
Thanks!! I tried the current AIC mode of the script, but the result is not that much clearer than my current algorithm...
There are more details, but the dither makes the whole thing looks a lot more "noisier".
There are more details, but the dither makes the whole thing looks a lot more "noisier".
- Attachments
-
- scene1-PictOric-AIC.png (10.81 KiB) Viewed 273051 times
Re: Pictoric (was: New conversion algorithm)
Thanks Chema! There was a long period of inactivity, but the COVID situation actually gave me some free time to progress on it (funny how life is!). My next goal is to finish the 8bit-Hub prototype work, and release it as a product to the 8bit community.
Re: Pictoric (was: New conversion algorithm)
Sure! Error diffusion is just that: add noise to simulate missing color. I'm about to think that ordered dither might be better for AIC but ordered dithering with Oric constraints is something different.
Anyway I've improved the tool a lot:
- I've added a bit of documentation for GrafX2 (I had to remove the #!env stuff. I don't know how to keep them both). The AIC converter is now called when you press on the "c" key while pressing the "Run" button (this is a common key between us & fr keyboard as "a" was mapped to "q" on many non-fr keyboards.)
- When you press "c" while pussing the "Run" button, a new UI dedicated to AIC mode pops up:
You can also tune the error damping factor. The closer it is to 1, the more the error is propagated downward. Usually this is set to something like 0.998, but as AIC doesn't have that many color available, so it is reduced down to 0.7. You can experiment with it and tell here which value seem to work the best for you (value of 0 disable the error propagation completely, resulting in much less colorful image, but less noisy as well which might be a good choice. I can't tell, I haven't experimented that much. Maybe 0.3 is the best compromise, please test & report.)
By default conversion takes about 40secs on my machine because the tool compares all the 6x6=36 combination of odd/even lines color. But you can speed up by roughly two using the "Even <= Odd" entry. It adds extra constraints on the color pairs to be tested. Let's name c1 the color for odd lines, and c2 the one for even lines. If your choice is- 1, then only pairs where c1<=c2 are accepted (eg. couple 3,6 is possible but not 6,3)
- -1, then only pairs where c2<=c1 are accepted (eg. 6,3 is possible, but not 3,6)
- 0 then all c1,c2 are possible, even c1==c2 making it a monochrome picture.
Using it you can select both the odd and even line color (0 will let the tool choose the best color for you). - If you are happy with the settings, you can press "OK" and get the result.
You can compare the result between non AIC and AIC output here: AIC does not look that bad to me in spite of the missing "green" color for the leafs.
The tool indicates the chosen color pair in the bottom line with "AIC=c1,c2" (here c1=3, c2=6)
Re: Pictoric (was: New conversion algorithm)
I actually quite like the one called "maybe".
What settings did you use to generate that one?
What settings did you use to generate that one?
Re: Pictoric (was: New conversion algorithm)
I picked up your latest version, and ended up using: err_att = 0.2 ~ 0.3, with aic = {{3,6}}
The results are pretty good imo!!! If you don't mind, I would like to integrate PictOric inside 8bit-Unity.
The results are pretty good imo!!! If you don't mind, I would like to integrate PictOric inside 8bit-Unity.
- Attachments
-
- goblin-ingame.PNG (209.05 KiB) Viewed 272999 times
-
- grubs-ingame.PNG (275.85 KiB) Viewed 272999 times
Re: Pictoric (was: New conversion algorithm)
AH AH!!!! I found the ultimate trick!!!!
If I apply my AIC palette to the input image (21 colors that represent all possible combinations between AIC rows), then the result through Pictoric is much more vivid and colorful! I am really happy with the look of this!
If I apply my AIC palette to the input image (21 colors that represent all possible combinations between AIC rows), then the result through Pictoric is much more vivid and colorful! I am really happy with the look of this!
- Attachments
-
- scene1-oric.png (68.54 KiB) Viewed 272994 times
-
- goblin-palettized-ingame.PNG (222.75 KiB) Viewed 272994 times
- ibisum
- Wing Commander
- Posts: 1655
- Joined: Fri Apr 03, 2009 8:56 am
- Location: Vienna, Austria
- Contact:
Re: Pictoric (was: New conversion algorithm)
Looks pretty good, and this is going to be an exciting release for Oric .. and it should be noted that the sitting guy on the left could just get a bit more white-space around his head area and it'd be a lot more clear to the player that its an entity for interaction.
Re: Pictoric (was: New conversion algorithm)
It is generated by the next version in the pipe. That version will contain some nice enhancements
- An algorithm to generate "Ordered" dithered image on the ORIC (NEW!). This works with AIC and non AIC.
- A setting panel to fine-tune things
- Persistent settings that are reused when you launch the tool again. This mean there is no need to go to the panel settings if you have found nice parameters.
- Some bugfixes (ofc).
Notice: If you have picture you want me to test, please provide a link to them and I'll try to see what I can do for them.