MI-3 picture format converter

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

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 » Sun Aug 09, 2015 8:15 pm

The requirements for zView are here: http://the.zorro.free.fr/zview.html

If you are referring to the last 248 bytes of an Art Director image file, I have no idea. zVeiw does not support color cycling, so the codec simply ignores it.

FedePede04
Atari Super Hero
Atari Super Hero
Posts: 936
Joined: Fri Feb 04, 2011 12:14 am
Location: Denmark
Contact:

Re: picture format converter

Postby FedePede04 » Sun Aug 09, 2015 8:46 pm

rockyone wrote:
lp wrote:Can someone tell me what drawing program creates mi1, mi2, and mi3 files?


Format I created for this game http://www.atari-forum.com/viewtopic.php?f=3&t=20361

change the header of the current format. "$FFFF" serat:" $FFF0" or "$FFF1" or "$FFF2" according to the image resolution
This will support CONVERTER former Mi1 ( After leave )


Hi.
would you like to share your picture format, then i could add it to my drawing / viewer program?
Atari will rule the world, long after man has disappeared

sometime my English is a little weird, Google translate is my best friend :)

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 » Sun Aug 09, 2015 9:52 pm

Just download the Serpent disk image, the information needed to load the images is in the *.bas file and asm listing. I modified the assembler slightly to compile with PureC. ;)

FedePede04
Atari Super Hero
Atari Super Hero
Posts: 936
Joined: Fri Feb 04, 2011 12:14 am
Location: Denmark
Contact:

Re: picture format converter

Postby FedePede04 » Sun Aug 09, 2015 10:46 pm

lp wrote:Just download the Serpent disk image, the information needed to load the images is in the *.bas file and asm listing. I modified the assembler slightly to compile with PureC. ;)


Hi
and thx :)

but there are a couple of problems using the code,

first i would like to know if it is ok to add it to my program,
next i have not see any basic code the last 25 years, so i probably would need some time find out how it work,
also i don't know which basic program i need to use, and if i find out then i don't have the program.
i had a look in the Asm code, and all the comment was in France, which i don't understand any thing of.

so it would just be so much easier if he had the header and the format writing down.
then i should have no problem making my own loader / saver.
Last edited by FedePede04 on Sun Aug 09, 2015 11:01 pm, edited 1 time in total.
Atari will rule the world, long after man has disappeared

sometime my English is a little weird, Google translate is my best friend :)

FedePede04
Atari Super Hero
Atari Super Hero
Posts: 936
Joined: Fri Feb 04, 2011 12:14 am
Location: Denmark
Contact:

Re: picture format converter

Postby FedePede04 » Sun Aug 09, 2015 10:48 pm

btw i just found out that one of the medium sample picture you are using, is actual my graphic for YMT player :lol: :lol:
Atari will rule the world, long after man has disappeared

sometime my English is a little weird, Google translate is my best friend :)

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 Aug 10, 2015 1:04 am

FedePede04 wrote:Hi
and thx :)

but there are a couple of problems using the code,

first i would like to know if it is ok to add it to my program,
next i have not see any basic code the last 25 years, so i probably would need some time find out how it work,
also i don't know which basic program i need to use, and if i find out then i don't have the program.
i had a look in the Asm code, and all the comment was in France, which i don't understand any thing of.

so it would just be so much easier if he had the header and the format writing down.
then i should have no problem making my own loader / saver.


I don't think he would of put all the sources on the disk image if it was not to be used. ;)
I can tell you the header at least:

1 word -> resolution flag, $FFFF is older format I assume, $FFF0=low, $FFF1=medium, $FFF2=high
32 words -> 16 color palette in xbios(7) format
compressed image data follows, always starts at offset 34 (I used op_mi1_2.s to decode it)

With the resolution flag, I did this, so it would load all files:

Code: Select all

' read a word, call it id
if id=$FFFF
  rez = last digit of the file extender
else
  rez = id and $FF
endif

I can't read any French and omikron looks rather weird to us GFA users, but I managed. What language are you using? If it's 'C' I can provide a PureC listing.

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

Re: picture format converter

Postby rockyone » Mon Aug 10, 2015 2:22 am

for FedePede04

Mi1 English :D :http://www.mirari.fr/gwwu

I still do not have to change the backup header ( $FFF0=low, $FFF1=medium, $FFF2=high )
Last edited by rockyone on Fri Aug 14, 2015 7:15 pm, edited 3 times in total.

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

Re: picture format converter

Postby rockyone » Mon Aug 10, 2015 2:30 am

FedePede04 wrote:btw i just found out that one of the medium sample picture you are using, is actual my graphic for YMT player :lol: :lol:


Me, which one?

FedePede04
Atari Super Hero
Atari Super Hero
Posts: 936
Joined: Fri Feb 04, 2011 12:14 am
Location: Denmark
Contact:

Re: picture format converter

Postby FedePede04 » Mon Aug 10, 2015 4:27 am

lp wrote:
FedePede04 wrote:Hi
and thx :)

but there are a couple of problems using the code,

first i would like to know if it is ok to add it to my program,
next i have not see any basic code the last 25 years, so i probably would need some time find out how it work,
also i don't know which basic program i need to use, and if i find out then i don't have the program.
i had a look in the Asm code, and all the comment was in France, which i don't understand any thing of.

so it would just be so much easier if he had the header and the format writing down.
then i should have no problem making my own loader / saver.


I don't think he would of put all the sources on the disk image if it was not to be used. ;)
I can tell you the header at least:

1 word -> resolution flag, $FFFF is older format I assume, $FFF0=low, $FFF1=medium, $FFF2=high
32 words -> 16 color palette in xbios(7) format
compressed image data follows, always starts at offset 34 (I used op_mi1_2.s to decode it)

With the resolution flag, I did this, so it would load all files:

Code: Select all

' read a word, call it id
if id=$FFFF
  rez = last digit of the file extender
else
  rez = id and $FF
endif

I can't read any French and omikron looks rather weird to us GFA users, but I managed. What language are you using? If it's 'C' I can provide a PureC listing.


thx again and thx for explain the header :)

in the beginning when i had my ST, i did use GFA, but i did not take long before i went over and use only ASM.
On the PC, i code in Pascals(Delphie) and Asm.
Last edited by FedePede04 on Mon Aug 10, 2015 4:37 am, edited 1 time in total.
Atari will rule the world, long after man has disappeared

sometime my English is a little weird, Google translate is my best friend :)

FedePede04
Atari Super Hero
Atari Super Hero
Posts: 936
Joined: Fri Feb 04, 2011 12:14 am
Location: Denmark
Contact:

Re: picture format converter

Postby FedePede04 » Mon Aug 10, 2015 4:36 am

thx for the English version, i will try to add it to my programs. i just need to make a sprite Animate routine finish first.

the file is TEMP_FON.PC2 i made the graphic for a player that could play project-ymer score on the ST, but i stop after i had made the GUI, later on i reuse the GFX and the GUI to make my YMT-Player instead for.

http://demozoo.org/productions/136445/

Atari will rule the world, long after man has disappeared

sometime my English is a little weird, Google translate is my best friend :)

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

Re: picture format converter

Postby rockyone » Mon Aug 10, 2015 9:15 am

bug
Last edited by rockyone on Mon Aug 10, 2015 9:26 am, edited 1 time in total.

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

Re: picture format converter

Postby rockyone » Mon Aug 10, 2015 9:16 am

FedePede04 wrote:
Hi
and thx :)

but there are a couple of problems using the code,

first i would like to know if it is ok to add it to my program,
next i have not see any basic code the last 25 years, so i probably would need some time find out how it work,
also i don't know which basic program i need to use, and if i find out then i don't have the program.
i had a look in the Asm code, and all the comment was in France, which i don't understand any thing of.

so it would just be so much easier if he had the header and the format writing down.
then i should have no problem making my own loader / saver.


yes you can use the code in the time you want it
I use
- Omikron v3.03, its compiler and sometimes the compiler to version 3.06. but he does not like the mix of graphics function omikron and direct GEM.
- Devpac 2 and 3 for the assembler
- Sometimes the GFA to watch sources

Omikron is available here http://www.mirari.fr/file/browse?f=578&u=506


YMT player, I had forgotten or had this image

FedePede04
Atari Super Hero
Atari Super Hero
Posts: 936
Joined: Fri Feb 04, 2011 12:14 am
Location: Denmark
Contact:

Re: picture format converter

Postby FedePede04 » Mon Aug 10, 2015 10:03 am

hi
thx lp and rockeyone, i have manage to add it for my viewer, now i just have to do save, and also add it for ST-Paint :)

viewer.png
You do not have the required permissions to view the files attached to this post.
Atari will rule the world, long after man has disappeared

sometime my English is a little weird, Google translate is my best friend :)

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

Re: picture format converter

Postby rockyone » Mon Aug 10, 2015 11:01 am

Good.
  This is an image of "Art Director".
It has a color cycle
I like the simplicity of construction of the color cycle Artdirector
8 color palettes, and a display time possible for differing color palettes.
This is the simplest and the first that I emulate
Tny are easy too, "neo" and "degas" after the holidays
I have not managed to create a picture with color rotation with "Néochrome" ca me may seem complicated without reading the doc :coffe:

FedePede04
Atari Super Hero
Atari Super Hero
Posts: 936
Joined: Fri Feb 04, 2011 12:14 am
Location: Denmark
Contact:

Re: picture format converter

Postby FedePede04 » Mon Aug 10, 2015 1:42 pm

rockyone wrote:Good.
  This is an image of "Art Director".
It has a color cycle
I like the simplicity of construction of the color cycle Artdirector
8 color palettes, and a display time possible for differing color palettes.
This is the simplest and the first that I emulate
Tny are easy too, "neo" and "degas" after the holidays
I have not managed to create a picture with color rotation with "Néochrome" ca me may seem complicated without reading the doc :coffe:


i have both done Neo and Degas color cycles, i will try and look in my code and describe here how it work,
as i remember Neo color cycles was not so hard, but Degas was a hard nut to cr..k :lol:
i am not home at the moment so it will probably first be tomorrow that i have the time to do it.
Atari will rule the world, long after man has disappeared

sometime my English is a little weird, Google translate is my best friend :)

FedePede04
Atari Super Hero
Atari Super Hero
Posts: 936
Joined: Fri Feb 04, 2011 12:14 am
Location: Denmark
Contact:

Re: picture format converter

Postby FedePede04 » Mon Aug 10, 2015 8:47 pm

Hi
I just had a look in my code and what a mess it is, so it will take a little longer before i can post my color cycle routine here.

just a Suggestion why don't you use the first byte in your header as a version no.
then it would much easier if you expand the header.
Atari will rule the world, long after man has disappeared

sometime my English is a little weird, Google translate is my best friend :)

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

Re: picture format converter

Postby rockyone » Tue Aug 11, 2015 10:17 am

[quotejust a Suggestion why don't you use the first byte in your header as a version no.
then it would much easier if you expand the header.][/quote]

I did not understand very well

my English is google translator :oops:

FedePede04
Atari Super Hero
Atari Super Hero
Posts: 936
Joined: Fri Feb 04, 2011 12:14 am
Location: Denmark
Contact:

Re: picture format converter

Postby FedePede04 » Tue Aug 11, 2015 12:10 pm

rockyone wrote:[quotejust a Suggestion why don't you use the first byte in your header as a version no.
then it would much easier if you expand the header.]


I did not understand very well

my English is google translator :oops:[/quote]

yes we have a problem, when English are not our native language. google translate is also my friend :D

ok i will try to explain it a little better, in honor of google translate.
let say that a couple a months from now you decide to have color cycle in your format.
then zView and my Viewer would not working with your pictures any more, because you have to change the header to have the color cycle informations. and if you again change your format to have a custom width / height, then you have to change the picture header again.
by adding a format byte, then we would know, if our viewer can show this picture or not,
so that the Viewer don't crash

Examples:

current format
byte 00 picture format : $ff current format
byte 01 picture resolutions : $00 - $02
word 02-33 palette functions : color values;
34 - Eof : Data array for picture

example 1:
byte 00 picture format : $fe format that allow color cycle
byte 01 picture resolutions : $00 - $02
word 02-33 palette functions : color values;
byte 34 : 4 highest bit color cycle present : lowest 4 bit cycling on - off
byte 35 : 4 highest bit left /begin color for color cycling : lowest 4 bit : Right / End cycling color.
byte 36 : Cycling direction : $00 Left color cycling : $01 Right color cycling
byte 37 : Color Cycling Speed
38 - Eof : Data array for picture

example 2:
byte 00 picture format : $fd format that allow color cycle - custom width / height
byte 01 picture resolutions : $00 - $02
word 02-33 palette functions : color values;
byte 34 : 4 highest bit color cycle present : lowest 4 bit cycling on - off
byte 35 : 4 highest bit left /begin color for color cycling : lowest 4 bit : Right / End cycling color.
byte 36 : Cycling direction : $00 Left color cycling : $01 Right color cycling
byte 37 : Color Cycling Speed
word 38 : Custom Width
word 40 : Custom Height
42 - Eof : Data array for picture

and so on :)

i hope that it will give you an idea of what i mean :)
Atari will rule the world, long after man has disappeared

sometime my English is a little weird, Google translate is my best friend :)

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

Re: picture format converter

Postby rockyone » Wed Aug 12, 2015 1:45 pm

oh yes, I will certainly change the size MI1:
-include The control word numbers to reduce unnecessary bytes.
  -and certainly a color rotation.
But right now, I'm enjoying the little sunlight that it is in Normandy :mrgreen:

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

Re: picture format converter

Postby rockyone » Tue Aug 18, 2015 2:42 pm

Code: Select all

FedePede04: btw i think that you can, run into problems converting Degas colors cycling picture, into Neo colors cycling picture.
Degas have 4 colors animators where Neo only have one.


I did not know the operation of the color cycles before my routines for fair: art, tny, degas and Neo.
But the images have a color cycle, the conversion is posible.

I played with Degas Elite, but my favorite remains Synthetic Art 3,.
For color ring, when we know, no need to Degas

Image
He played well animation and compress the image without losing ..

Image
http://www.mirari.fr/DWX0
in St-Paint it disappears, Colors sometimes :mrgreen:
Last edited by rockyone on Fri Aug 21, 2015 4:56 pm, edited 1 time in total.

FedePede04
Atari Super Hero
Atari Super Hero
Posts: 936
Joined: Fri Feb 04, 2011 12:14 am
Location: Denmark
Contact:

Re: picture format converter

Postby FedePede04 » Tue Aug 18, 2015 5:43 pm

rockyone wrote:in St-Paint it disappears, Colors sometimes :mrgreen:


you had me scared for a moment :lol:
i just tested the same picture using Degas Elite, and it does the same thing :D

but i did found the problem, Number 2 right color animation is out of range, there is $0f in it.

"00001200 B1 00 00 00 00 01 00 02 00 03 00 00 00 0F 00 02 ±...............
Atari will rule the world, long after man has disappeared

sometime my English is a little weird, Google translate is my best friend :)

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

Re: picture format converter

Postby rockyone » Wed Aug 19, 2015 1:23 am

Me : He played well animation and compress the image without losing ..(Degas)


80010AAA0F0000F0000F0E3303E3033E0C6606C6066C0B8808B8088B0AAA0AAA0AAA me and degas elite
00010AAA0F0000F0000F00000000000000000000000000000000000000000000000000 ST_PAINT
no gain space ?

that's why I had changed the colors especially for ST_Paint :angel:
Last edited by rockyone on Thu Aug 20, 2015 10:55 pm, edited 1 time in total.

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

Re: picture format converter

Postby rockyone » Thu Aug 20, 2015 10:43 pm

it seems possible to make a color cycle DALÍ.
without documents, I do not know.
do you have information or pictures to give me ?
I would not be surprised that it is identical to "NEO"

color conversion cycle "TNY" and "Neo" to "Degas" finished

postscript: no new version of the current converter

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

Re: picture format converter

Postby rockyone » Fri Aug 21, 2015 5:01 pm

FedePede04: Number 2 right color animation is out of range

Oh yes, I know why. :oops: weird, it still works
I replace the image :mrgreen:

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

Re: picture format converter

Postby rockyone » Mon Aug 24, 2015 2:21 am

Code: Select all

FedePede04 wrote:
ok i will try to explain it a little better, in honor of google translate.
let say that a couple a months from now you decide to have color cycle in your format.
then zView and my Viewer would not working with your pictures any more, because you have to change the header to have the color cycle informations. and if you again change your format to have a custom width / height, then you have to change the picture header again.
by adding a format byte, then we would know, if our viewer can show this picture or not,
so that the Viewer don't crash

Not taking into account thank you
1 word header: $ffff reading always supported
     becomes: $ffff to $ffb2
$0 to $2 for the resolution
$f to "$b : number of saved cycle. 0 to 4

........first color cycle (if used)
1 byte: color - identical Neo and Tny -
High 4 bits: color left
low 4 bits: color right

1 byte: direction and speed
High 4 bits: direction 0,1,2 - identical DEgas Elite
low 4 bits: speed 0 à 128 identical Degas Elite :oops:

........second color cycle (if used)
........third color cycle (if used)
........fourth color cycle (if used)

1 word number itération for use in slide shows identical Tny and Neo

Following are unchanged


* colors cycles are saved (on or off) only if the values are consistent

Custom width and height, what use?
Not taking into account thank you
Last edited by rockyone on Thu Sep 10, 2015 1:53 pm, edited 2 times in total.


Social Media

     

Return to “Other BASIC”

Who is online

Users browsing this forum: No registered users and 1 guest