MI-3 picture format converter

Moderators: exxos, simonsunnyboy, Mug UK, Zorro 2, Moderator Team

rockyone
Captain Atari
Captain Atari
Posts: 306
Joined: Thu Jan 20, 2011 8:47 pm
Contact:

Re: picture format converter

Postby rockyone » Wed Oct 05, 2016 7:49 pm

I also found on other sites, but it's still the same copy that does not work
the "RLE" "zigzag" has it been used on ST ?

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2233
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: picture format converter

Postby lp » Thu Oct 06, 2016 10:08 am

That disk image didn't work for me either. However this one did:
http://www.atarimania.com/utility-atari ... 28363.html

rockyone
Captain Atari
Captain Atari
Posts: 306
Joined: Thu Jan 20, 2011 8:47 pm
Contact:

Re: picture format converter

Postby rockyone » Thu Oct 06, 2016 5:52 pm

Tested with TOS US GB FR, it is not good :evil:

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2233
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: picture format converter

Postby lp » Thu Oct 06, 2016 5:55 pm

It's working in Hatari at my setup, see the setup info in the screen shot.

Screen Shot 2016-10-06 at 2.00.36 PM.png
You do not have the required permissions to view the files attached to this post.

rockyone
Captain Atari
Captain Atari
Posts: 306
Joined: Thu Jan 20, 2011 8:47 pm
Contact:

Re: picture format converter

Postby rockyone » Thu Oct 06, 2016 6:29 pm

I've ever used "Hatari", but I'll try to see what programme.Avec "Steem" I is not found no copies of "Paintwork" that works

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2233
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: picture format converter

Postby lp » Fri Oct 07, 2016 2:31 am

I tried packbits decompression, but that didn't work. I dis-assembled picswitch7 and followed the Nvision trail to some RLE code and translated it to C. I made a compressed st high *.sc2 file and it depacks it ok. It looks to me like the same decompression is used on all 3 modes. Sorry for the C as I cannot use BASIC for zView codecs. ;)

Code: Select all

/* rle depack paintworks */
int32 cnt=0,s=0,d=0;
do {
   uint8 c=bmap[s++];
   if (c & 0x80) {      /* neg? */
      c = c & 0x7f;
      for(i=0; i<c; i++) {
         temp[d++]=bmap[s++];   /*literal */
      }
   } else {
      uint8 b=bmap[s++];
      for (i=0; i<c; i++) {
         temp[d++]=b;
      }
   }
   cnt = cnt + c;
} while (cnt<bms);


I get this decoding an st medium image, the paintworks title from the disk:
Screen Shot 2016-10-06 at 10.25.08 PM.png

It looks like it needs another pass to arrange the planes, but how? Not sure yet.
You do not have the required permissions to view the files attached to this post.
Last edited by lp on Fri Oct 07, 2016 6:06 pm, edited 1 time in total.

rockyone
Captain Atari
Captain Atari
Posts: 306
Joined: Thu Jan 20, 2011 8:47 pm
Contact:

Re: picture format converter

Postby rockyone » Fri Oct 07, 2016 7:19 am

good progress :cheers:
Did you check the resolution in the image's head?
restore order plans

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2233
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: picture format converter

Postby lp » Fri Oct 07, 2016 1:15 pm

Header layout thus far:

Code: Select all

Offset    Size    Description
------    ------  ----------------------------------------------------------
0         2       always 0
2         2       resolution      0=low 1=medium 2=high
4         32      pallete         xbios format (hardware order)
36        12      file name       "12345678.123" (not used, always spaces)
48        2       ?
50        2       ?
52        2       ?       
54        9       file id         "ANvisionA"
63        1       bit flags       %CRRRIIII       
                                    Compressed: 0=no 1=yes
                                    Resolution: 0=low 1=medium 2=high
                                    Image type: 0=page 1=screen 2=clipboard 4=pattern
                                    Note: page use image height*2
64-127    64      ?               

The items marked with '?' are unknown, could be related to program settings or color cycling. There is also what looks like extra color palettes stored behind the image. These I ignore for now.
Last edited by lp on Fri Oct 07, 2016 5:37 pm, edited 1 time in total.

rockyone
Captain Atari
Captain Atari
Posts: 306
Joined: Thu Jan 20, 2011 8:47 pm
Contact:

Re: picture format converter

Postby rockyone » Fri Oct 07, 2016 2:39 pm

byte 63
resolution......type....... uncompressed.....compressed
0-1............Sc0-1............$1................$81..$82
0-1............Cl0-1............$2................$91..$92
2..............Sc2..Cl2........?.$3...Not $4.....$83..$94..? not tested
-------------------------------------------------------------------------
unknown format..............byte 63
0...............Pt0..............$4................certainly compressed
1...............Pt1..............$14
2...............Pt2..............$14 ? value of file R2, not tested
0-1............Pg0-1............$10

File patterns : 128 byte header same format and Unused space before the data , EOf palette.
low in resolution 16 * 16 screen dots
Last edited by rockyone on Fri Oct 07, 2016 4:50 pm, edited 1 time in total.

rockyone
Captain Atari
Captain Atari
Posts: 306
Joined: Thu Jan 20, 2011 8:47 pm
Contact:

Re: picture format converter

Postby rockyone » Fri Oct 07, 2016 3:06 pm

I prefer Steem has Hatari, I am not alone :mrgreen:
[img][img]http://www.mirari.fr/JzN8[/img][/img]

I have not found the resolution on Hatari :oops:

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2233
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: picture format converter

Postby lp » Fri Oct 07, 2016 5:35 pm

I already have byte 63 figured out, it is a bit field, see my post with the header info, you might have to scroll within the box to see it all. I would not trust the file extension, but use byte 63 as it tells all. Clipboard and screen format are identical, the image type for clipboard simply tells Paintworks to load it into the clipboard buffer and not the work screen buffer. I made samples of all formats compressed and uncompressed and all load ok, except st low and st medium compressed. Still not sure how to re-arrange the planes after the RLE pass.

In Hatari I go to Preferences -> Atari Screen -> Monitor -> Mono or RGB
Then when it boot, change rez at the desktop.

rockyone
Captain Atari
Captain Atari
Posts: 306
Joined: Thu Jan 20, 2011 8:47 pm
Contact:

Re: picture format converter

Postby rockyone » Fri Oct 07, 2016 6:27 pm

thank you I did not notice a mono / rgb
The uncompressed files are similar to "NEO" and "CLE" of "Cyber_Paint 2". and load well in Neochrome

rockyone
Captain Atari
Captain Atari
Posts: 306
Joined: Thu Jan 20, 2011 8:47 pm
Contact:

Re: picture format converter

Postby rockyone » Fri Oct 07, 2016 8:00 pm

I feel that the plans are designed as a low-resolution image.
19 offset words

rockyone
Captain Atari
Captain Atari
Posts: 306
Joined: Thu Jan 20, 2011 8:47 pm
Contact:

Re: picture format converter

Postby rockyone » Sat Oct 08, 2016 5:53 pm

I board send a message in your PM

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2233
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: picture format converter

Postby lp » Mon Oct 10, 2016 5:17 am

Figured it out with further dis-assembly of picswitch7. The planes are simply separated word-wise. zView can now load all CLx, SCx, and PGx files.

Screen Shot 2016-10-10 at 1.08.18 AM.png
You do not have the required permissions to view the files attached to this post.

rockyone
Captain Atari
Captain Atari
Posts: 306
Joined: Thu Jan 20, 2011 8:47 pm
Contact:

Re: picture format converter

Postby rockyone » Tue Oct 11, 2016 12:55 am

good work :cheers:
I do not have time to continue.
in addition, I lost 68k code that I started.
if I understand Google translat, plans are separated

rockyone
Captain Atari
Captain Atari
Posts: 306
Joined: Thu Jan 20, 2011 8:47 pm
Contact:

Re: picture format converter

Postby rockyone » Thu Oct 13, 2016 8:04 pm

MI-5 10-2016
Do not open the write protected files

GEMDOS an error, fopen in mode 2
Last edited by rockyone on Thu Oct 20, 2016 12:08 am, edited 1 time in total.

rockyone
Captain Atari
Captain Atari
Posts: 306
Joined: Thu Jan 20, 2011 8:47 pm
Contact:

Re: picture format converter

Postby rockyone » Thu Oct 20, 2016 12:02 am

a different version of format supported by Paint Work
NVISION PIC.jpg

TITLE SC0.jpg


https://demozoo.org/groups/36736/
You do not have the required permissions to view the files attached to this post.

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2233
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: picture format converter

Postby lp » Thu Oct 20, 2016 7:21 am

My working copy looks different than yours, I have v1.5 I am not sure about the PIC files. When I add the pic extender in my version it saves in NVision format anyway.
Last edited by lp on Fri Dec 02, 2016 8:34 pm, edited 2 times in total.

TXG/MNX
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 117
Joined: Fri Oct 24, 2003 10:05 am

Re: picture format converter

Postby TXG/MNX » Thu Oct 20, 2016 10:14 am

Hi can you add save as BMP aswell ?

That would make it easy to use the graphics on other Atari computers aswell. For the other Atari systems like the 7800 and Jaguar you can convert / use bmp files.

rockyone
Captain Atari
Captain Atari
Posts: 306
Joined: Thu Jan 20, 2011 8:47 pm
Contact:

Re: picture format converter

Postby rockyone » Thu Oct 20, 2016 11:15 am

I have the same version as you.

Paintwork load only PIC

Two versions and two different name : N-Vision and Paintworks
(Both not working with Steem)

PIC files could be the compatible format Néochrome of N-Vision ?

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2233
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: picture format converter

Postby lp » Thu Oct 20, 2016 1:38 pm

I see now, the image you posted was NVISION.PIC from the demo loaded into Paintworks, lol Paintworks will load any file 32128 bytes, if you rename *.pic to *.bla it does not care. I think it looks at the size and assumes neo. Maybe from an earlier version of paintworks? They may of been renamed *.pic for the purpose of the demo, they save 604 bytes over sc0 format?

rockyone
Captain Atari
Captain Atari
Posts: 306
Joined: Thu Jan 20, 2011 8:47 pm
Contact:

Re: picture format converter

Postby rockyone » Thu Oct 20, 2016 2:46 pm

yes :mrgreen:


Uptade Mi-3

Correction of the opening of write-protected files.

Added loading files "SC0-2" and "CL0-2" of Paintwork.
I would do the backup in these formats when I have time.

rockyone
Captain Atari
Captain Atari
Posts: 306
Joined: Thu Jan 20, 2011 8:47 pm
Contact:

Re: picture format converter

Postby rockyone » Sun Oct 23, 2016 6:31 pm

TXG/MNX wrote:Hi can you add save as BMP aswell ?

That would make it easy to use the graphics on other Atari computers aswell. For the other Atari systems like the 7800 and Jaguar you can convert / use bmp files.



to which this post ?

rockyone
Captain Atari
Captain Atari
Posts: 306
Joined: Thu Jan 20, 2011 8:47 pm
Contact:

Re: MI-3 picture format converter

Postby rockyone » Sun Jan 22, 2017 10:34 pm

Update : http://www.atari-forum.com/viewtopic.php?f=72&t=28191


Added MSP, PA3, PPP formats

Activation SC0-2 backup uncompressed and without color cycles

Reactivation of TNY backup blocked by error in the latest version :shrug:

Reactivation of the automatic conversion of a cycle from eight colors to ART format.
The conversion of the animation speed is almost in accordance with the format


Social Media

     

Return to “Other BASIC”

Who is online

Users browsing this forum: No registered users and 1 guest