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: 35
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 1272 times
Then once the converted oric picture is displayed,
converted.gif
converted.gif (5.59 KiB) Viewed 1272 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 1272 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 1273 times
300px-The_Persistence_of_Memory.jpg
300px-The_Persistence_of_Memory.jpg (21.77 KiB) Viewed 1273 times

User avatar
Dbug
Site Admin
Posts: 3049
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: 398
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: 35
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: 496
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
Historic owner of Oric, Apple II, Atari ST, Amiga

sam
Officer Cadet
Posts: 35
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: 496
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
Historic owner of Oric, Apple II, Atari ST, Amiga

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

Re: Pictoric (was: New conversion algorithm)

Post by sam » Sun Nov 10, 2019 1:27 pm

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 470 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 14 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 14 times
Last edited by sam on Sun Nov 10, 2019 7:31 pm, edited 5 times in total.

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

Re: Pictoric (was: New conversion algorithm)

Post by peacer » Sun Nov 10, 2019 2:57 pm

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: 1131
Joined: Fri Apr 03, 2009 8:56 am

Re: Pictoric (was: New conversion algorithm)

Post by ibisum » Mon Nov 11, 2019 5:33 pm

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...

Post Reply