Pictoric (was: New conversion algorithm)

The Oric video chip is not an easy beast to master, so any trick or method that allows to achieve nice visual results is welcome. Don't hesitate to comment (nicely) other people tricks and pictures :)
sam
Officer Cadet
Posts: 33
Joined: Sun Jul 09, 2017 3:28 pm
Location: Brest (France)
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by sam » Mon Sep 30, 2019 11:21 pm

The comparison of Dali's painting you made, shows many differences
ImageImage
That's odd. Removing the pixels shouln't alter the remaining ones. But your 2 versions of Dali's paining isn't showing this.

If I analyze the 1st picture above, I dont count 8 unique colors but 256. How is this possible? An oric picture should have exactly 8 colors max. In addition, it seem the aspect ratio isn't respected on the 2nd picture. Did you convert some modified version of the ".tap.bmp" file ?

[EDIT] oh! I know hat you did which explains this: you captured the oric picture from an oric emulator. Mis mean that your 2nd source isn't 240x200 but includes extra black pixels in the bottom of the image (this is especially visible on the "cleaned" version above: the bottom part has now 4 times more black rows). The convesion will then blend the dithered pixels reducing quality alot. You should'nt need to do that. You should use the ".tap.bmp" file as 2nd source. It contains the exact content of the tap file, but in bitmap version for easy hand-cleanup. Since the size is correct, no blending occurs and the remaining pixels are left untouched.

Here is how I would "improve" a picture after conversion by hand. First I'd do the conversion in grafX2.
300px-The_Persistence_of_Memory.jpg
300px-The_Persistence_of_Memory.jpg (21.77 KiB) Viewed 319 times
Then once the converted oric picture is displayed,
converted.gif
converted.gif (5.59 KiB) Viewed 319 times
I'd remove the "noisy" pixels by hand, and call the convertion once again.
300px-The_Persistence_of_Memory.tap.png
300px-The_Persistence_of_Memory.tap.png (4.36 KiB) Viewed 319 times
As you can see, there is no changed except for the removed pixels.

Maybe in v1.1 I'll add code to consider that low-intensity pixels are actually black, removing these scatered pixels here and there. But I need to test before, because this could also alter the quality of some other pictures.
Attachments
converted.gif
converted.gif (5.59 KiB) Viewed 320 times
300px-The_Persistence_of_Memory.jpg
300px-The_Persistence_of_Memory.jpg (21.77 KiB) Viewed 320 times

User avatar
Dbug
Site Admin
Posts: 2981
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by Dbug » Tue Oct 01, 2019 7:16 am

EDIT: Just saw SAM's answer, discard that message:

That's interesting: When I do that with the pipi algorithm, the picture stays globally the same because after conversion what you got is a picture that follows the Oric format, so there's no need to compute error factors, etc...

I've used that a lot when doing graphics like intro pictures: Convert a complicated picture, then retouch it, convert it again, etc... that makes it possible to do interesting multi parts pictures with originally converted pictures on which you can add pixelizes logos, tweak the texts, etc...

User avatar
peacer
Flight Lieutenant
Posts: 393
Joined: Wed Jun 09, 2010 9:23 pm
Location: Turkey
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by peacer » Tue Oct 01, 2019 9:51 am

Ah sorry.. thats my mistake then.. I had to use screenshot by another utility isnted of generated bmp's as I turned off "generate .bmp" option

Thank you very much for your explanations

sam
Officer Cadet
Posts: 33
Joined: Sun Jul 09, 2017 3:28 pm
Location: Brest (France)
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by sam » Tue Oct 01, 2019 6:35 pm

sam wrote:
Mon Sep 30, 2019 11:21 pm
Maybe in v1.1 I'll add code to consider that low-intensity pixels are actually black, removing these scatered pixels here and there. But I need to test before, because this could also alter the quality of some other pictures.
I have made a test, but it seem that too much "dark" things are being deleted

User avatar
coco.oric
Flight Lieutenant
Posts: 469
Joined: Tue Aug 11, 2009 9:50 am
Location: North of France
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by coco.oric » Mon Oct 07, 2019 4:12 am

Hello Sam,
Congratulations for your studies on Oric.
I've looked at Grafx2 and don't see how to launch lua add-on with.

Can you resume how to use your lua software ?
coco.oric as DidierV, CEO Member
Image Image

sam
Officer Cadet
Posts: 33
Joined: Sun Jul 09, 2017 3:28 pm
Location: Brest (France)
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by sam » Mon Oct 07, 2019 7:15 am

yeah, just put the file Pictoric.lua where you want, then right-click on the Fx button (it'll become white). Use the browser to pick the file where you placed it (GrafX2 will remember the location for next time). Press the "RUN" button, and voilà!
Attachments
Sans titre.png

User avatar
coco.oric
Flight Lieutenant
Posts: 469
Joined: Tue Aug 11, 2009 9:50 am
Location: North of France
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by coco.oric » Mon Oct 07, 2019 7:52 pm

Thanks a lot, i'd look at grafx2 a few years ago, hoping that i'll be able to put a script with oric constraints but i've stopped. Too difficult for me.
Now it's works. Too easy to edit some pics with that process
coco.oric as DidierV, CEO Member
Image Image

Post Reply