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: 57
Joined: Sun Jul 09, 2017 3:28 pm
Location: Brest (France)
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by sam »

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 73084 times
Then once the converted oric picture is displayed,
converted.gif
converted.gif (5.59 KiB) Viewed 73084 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 73084 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 73085 times
300px-The_Persistence_of_Memory.jpg
300px-The_Persistence_of_Memory.jpg (21.77 KiB) Viewed 73085 times
User avatar
Dbug
Site Admin
Posts: 4444
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by Dbug »

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: 451
Joined: Wed Jun 09, 2010 9:23 pm
Location: Turkey
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by peacer »

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: 57
Joined: Sun Jul 09, 2017 3:28 pm
Location: Brest (France)
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by sam »

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
Squad Leader
Posts: 720
Joined: Tue Aug 11, 2009 9:50 am
Location: North of France
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by coco.oric »

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
Historic owner of Oric, Apple II, Atari ST, Amiga
sam
Officer Cadet
Posts: 57
Joined: Sun Jul 09, 2017 3:28 pm
Location: Brest (France)
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by sam »

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
Squad Leader
Posts: 720
Joined: Tue Aug 11, 2009 9:50 am
Location: North of France
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by coco.oric »

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
Historic owner of Oric, Apple II, Atari ST, Amiga
sam
Officer Cadet
Posts: 57
Joined: Sun Jul 09, 2017 3:28 pm
Location: Brest (France)
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by sam »

While I was thinking around what I could do for the next Forever-Party, I've tested the conversion algorithm over several pictures of robots. Result is pretty good and I'd thought it would be great to share them with you.
Planche contact-1.png
Planche contact-1.png (85.78 KiB) Viewed 72283 times
Attachments
robot.zip
10 HIRES
20 FOR I=1 TO 16
30 CLOAD"": PRINT "PRESS A KEY..."
40 GET A$: IF A$="" THEN 40
50 CLS
60 NEXT
RUN
(65.58 KiB) Downloaded 351 times
robot_hrc.zip
10 HIRES
20 FOR I=1 TO 16
30 CLOAD"": PRINT "PRESS A KEY..."
40 GET A$: IF A$="" THEN 40
50 CLS
60 NEXT
RUN
(60.16 KiB) Downloaded 337 times
Last edited by sam on Sun Nov 10, 2019 7:31 pm, edited 5 times in total.
User avatar
peacer
Flight Lieutenant
Posts: 451
Joined: Wed Jun 09, 2010 9:23 pm
Location: Turkey
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by peacer »

Excellent.. They look like 256 coloured pictures..

If only we had such pictures on Oric as demo and ads in the magazines, I am sure Oric would be one of the longest survivor amongst all 8bit computers.. Maybe today there would be O-Phones instead of ios freaks :)
User avatar
ibisum
Wing Commander
Posts: 1646
Joined: Fri Apr 03, 2009 8:56 am
Location: Vienna, Austria
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by ibisum »

These are, without doubt, an astonishing addition to the Oric story. Indeed, if we had been capable of such computation in the 80's, the Oric would've gained a lot more interest. Most of the complaints about the Oric entered around its 'poor attribute clash' graphics - however these pictures demonstrate that there was indeed more spirit in the machine than we knew at the time...
sam
Officer Cadet
Posts: 57
Joined: Sun Jul 09, 2017 3:28 pm
Location: Brest (France)
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by sam »

ibisum wrote: Mon Sep 30, 2019 10:11 am Really nice! The only thing I don't like about this project is that there isn't a GIT Repo for it yet .. ;)
Your wish was fulfilled today. Follow >>this link<<.

sam (better late than never :wink: )
User avatar
Dbug
Site Admin
Posts: 4444
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by Dbug »

If you have time, you could extend your gallery with some comparison pictures generated with libpipi to showcase the differences :)
User avatar
ibisum
Wing Commander
Posts: 1646
Joined: Fri Apr 03, 2009 8:56 am
Location: Vienna, Austria
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by ibisum »

This is really a great resource .. I'm going to spend some time hacking around with it this week ... Wouldn't it be neat to have some kind of Dragons Lair-style game come out of this?
sam
Officer Cadet
Posts: 57
Joined: Sun Jul 09, 2017 3:28 pm
Location: Brest (France)
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by sam »

@ibisum, I've added a version of your avatar in the gallery. I hope you don't mind.
User avatar
ibisum
Wing Commander
Posts: 1646
Joined: Fri Apr 03, 2009 8:56 am
Location: Vienna, Austria
Contact:

Re: Pictoric (was: New conversion algorithm)

Post by ibisum »

I'm honoured, but to be fair I snarfed the pic from elsewhere to use as my avatar .. ;)
Post Reply