Jump to content

Photo

Move along folks, nothing to see here!

Graphic Format Image Converter GTIA JAG

89 replies to this topic

#1 Irgendwer OFFLINE  

Irgendwer

    Stargunner

  • 1,390 posts
  • Location:Germany

Posted Sun Oct 26, 2014 5:17 PM

Hi,

as some may know, I played quite a while with the A8 graphics modes to achieve unexpected output (like http://atariage.com/...#entry1737525).

 

I never liked interlace or the scan line grille of APAC, so since several years I tried to cope with the restrictions and tried various things. Finally I have a result which I find convincing.

The format is nothing really new, just works like HIP without interlace and can be coloured (the profile image of member 'pirx' seems to use this principle already), but I created a converter which is very easy to use, and at least I'm not aware of a similar one. Since I haven't found any description of this format in conjunction with a name, I named it 'JAG' (Just Another Graphics-(format)).

 

The creation process is half automatic and a conversion takes about two dozens of clicks (colour assignments), which can be performed in a minute.

(I had a fully automatic process, but results are less convincing.)

 

When compared to RastaConverter (BIG LIKE!), the only disadvantages are the lower resolution and on NTSC systems the images are not that colourful, but the advantages are:

 

* CO2 friendly: conversion is  question of minutes ;)

* no affinity to banding (but depending on mode/selection slightly scan line grille)

* no use of PMGs (less memory and DMA load) (and usable in game scenarios (even with limited colour possibilities)

* simple to save & load

* simple code for depiction

* ATM moderate DLI load: converter supports a single palette for the complete image (this is subject to change, which can improve output quality a lot - depending on the input image)

* easier to use in animation scenarios (generation is more 'stable', since available colours can be distributed more freely)

* more shades (currently only the obvious theoretical 144 (9*16) per image, in the future all 256)

 

There are still bugs in the converter I need to fix (some are detectable in the images below), output has to be beautified (e.g. top colour border) and I have to write some instructions too, but hopefully next week I can release V1 (if there is demand?).

 

Have fun and stay tuned...

 

 

Bild1.png

Bild2.png

Bild3.png

Bild4.png

Bild5.png

Bild6.png

Bild7.png

Bild8.png

Bild10.png


Edited by Irgendwer, Sun Oct 26, 2014 5:22 PM.


#2 Irgendwer OFFLINE  

Irgendwer

    Stargunner

  • Topic Starter
  • 1,390 posts
  • Location:Germany

Posted Sun Oct 26, 2014 5:19 PM

...some more stuff

 

Bild12.png

Bild13.png

Bild14.png

Bild15.png

Bild16.png

Bild17.png

Bild18.png

Bild19.png

Bild20.png

 



#3 Irgendwer OFFLINE  

Irgendwer

    Stargunner

  • Topic Starter
  • 1,390 posts
  • Location:Germany

Posted Sun Oct 26, 2014 5:20 PM

...final round with XEXs

Bild21.png

Bild22.png

Bild23.png

Bild24.png

Bild25.png

Bild26.png

 

Attached Files

  • Attached File  xex.zip   112.34KB   242 downloads


#4 8Bitjunkie OFFLINE  

8Bitjunkie

    Moonsweeper

  • 363 posts
  • Location:Germany

Posted Sun Oct 26, 2014 5:25 PM

DEMAND :-)



#5 snicklin OFFLINE  

snicklin

    River Patroller

  • 2,132 posts
  • Location:Australia

Posted Sun Oct 26, 2014 5:41 PM

These are very nice!



#6 Irgendwer OFFLINE  

Irgendwer

    Stargunner

  • Topic Starter
  • 1,390 posts
  • Location:Germany

Posted Sun Oct 26, 2014 6:04 PM

These are very nice!

 

Thanks, I forgot a very important one ;-) :

 

C3d.png

 

Attached File  JAG Centron 3D.xex   9.89KB   181 downloads



#7 flashjazzcat ONLINE  

flashjazzcat

    Quadrunner

  • 13,814 posts
  • Location:United Kingdom

Posted Sun Oct 26, 2014 6:06 PM

Sweet!

#8 Stephen ONLINE  

Stephen

    Quadrunner

  • 7,173 posts
  • A8 Gear Head
  • Location:No longer in Crakron, Ohio

Posted Sun Oct 26, 2014 8:06 PM

Holy $hit that's awesome.  In a total bit of co-incidence (or universal randomness, of which I am believing in less and less as time goes by), I am listening to Tubular Bells on vinyl this evening with the gf :)



#9 Bryan OFFLINE  

Bryan

    Quadrunner

  • 10,925 posts
  • Cruise Elroy = 4DB7
  • Location:Chesaning, MI

Posted Sun Oct 26, 2014 8:18 PM

 

Thanks, I forgot a very important one ;-) :

 

 

Wow! Finally there's a version of Centron that runs on the A8! And without all that annoying gameplay!

Edited by Bryan, Sun Oct 26, 2014 8:18 PM.


#10 TheNameOfTheGame OFFLINE  

TheNameOfTheGame

    Dragonstomper

  • 637 posts
  • Location:Almost Heaven, West Virginia

Posted Sun Oct 26, 2014 8:35 PM

These are on A8?????  OMG, amazing!  :-o :-o :-o



#11 Albert OFFLINE  

Albert

    Quadrunner

  • 34,853 posts

Posted Tue Oct 28, 2014 3:36 AM

Wow, those look fantastic! I love the photo of the Atari 800. :) Would be interesting to see animations or games using this technique!

..Al

#12 pirx OFFLINE  

pirx

    Moonsweeper

  • 438 posts
  • Location:Poland

Posted Tue Oct 28, 2014 3:47 AM

This format is indeed very nice! To generate my pictures in this format I used simple python script and PIL (Python Imaging Library). And it does animate nicely: http://a8.fandal.cz/...p?files_id=6309

 

Best,

 

pirx



#13 pirx OFFLINE  

pirx

    Moonsweeper

  • 438 posts
  • Location:Poland

Posted Tue Oct 28, 2014 5:50 AM

BTW - you can nicely hide jaggy (pun intended) borders under 2 black missiles. It improves the effect greatly.



#14 a8isa1 OFFLINE  

a8isa1

    Stargunner

  • 1,513 posts

Posted Tue Oct 28, 2014 6:53 AM

Irgendwer, the sample pictures seem quite colorful on my NTSC TV, although the palette is shifted a tiny bit.

 

Thanks for this and all your efforts!


Edited by a8isa1, Tue Oct 28, 2014 6:54 AM.


#15 flashjazzcat ONLINE  

flashjazzcat

    Quadrunner

  • 13,814 posts
  • Location:United Kingdom

Posted Tue Oct 28, 2014 6:58 AM

Be nice to see Avery's 50FPS video player using this mode, for comparison purposes too. Just tried the XEXs and it's a very pleasing effect.

#16 emkay OFFLINE  

emkay

    Quadrunner

  • 9,496 posts
  • What's up?
  • Location:Holy Grail ;)

Posted Tue Oct 28, 2014 11:18 AM

Very good.
Some of the images also have better details than the Rastaconverter, because of the linearity, that the image is stored with.

Particular

-Venus
-Tubular Bells
-Tiger
-Mandrill
-Frog
-Doblo
-Astronaut

Thinking about the fact that PMG is still unused...

Edited by emkay, Tue Oct 28, 2014 11:37 AM.


#17 Irgendwer OFFLINE  

Irgendwer

    Stargunner

  • Topic Starter
  • 1,390 posts
  • Location:Germany

Posted Tue Oct 28, 2014 2:06 PM

BTW - you can nicely hide jaggy (pun intended) borders under 2 black missiles. It improves the effect greatly.

 

Hmm - are you sure? Contrary to Gr.10 where COLBK forms the background color and has to be black for all 16 shades, in GR.10 the background color is COLPM0. So even when using one Player and the associated Missile to be black and hide the border grille your loosing one color for depiction.

 

IMHO there are two solutions (both reduce performance):

* use overscan (currently no problem with DMA load) and fill the border area with COLBK pixels on GR.10 lines

* switch COLBK and COLPM0 colors in DLI for every scan-line (would work now too, but reduces color changing possibilities for improved reproduction in the future...)

 

For those cases where the DMA/DLI-load is already critical, applying the second darkest color to COLPM0 seems a feasible solution to me.

 

 

Wow, those look fantastic! I love the photo of the Atari 800. :) Would be interesting to see animations or games using this technique!

 

Yep - thought so too. I will try out animations later on for sure. Thinking about doing the 'Rose to Skull' sequence of Myst (http://www.youtube.c...0dvZhzwP0#t=133), and porting later the complete game... :lol:

 

 

Thinking about the fact that PMG is still unused...

 

Since the color registers are all in use PMGs should be used with care or interesting things could be added utilizing GPRIOR... (have to check that later too)

 

Thank you all for the applaud!


Edited by Irgendwer, Tue Oct 28, 2014 2:08 PM.


#18 Xuel OFFLINE  

Xuel

    Dragonstomper

  • 726 posts
  • Location:US

Posted Tue Oct 28, 2014 2:47 PM

Hmm - are you sure? Contrary to Gr.10 where COLBK forms the background color and has to be black for all 16 shades, in GR.10 the background color is COLPM0. So even when using one Player and the associated Missile to be black and hide the border grille your loosing one color for depiction

 

How about setting PRIOR[3:0] to 1111 and enabling 5th player so that missiles will be rendered as black regardless of COLPF3? See also Chapter 6, Table 5 in the Altirra Harware Reference Manual.

 



#19 Xuel OFFLINE  

Xuel

    Dragonstomper

  • 726 posts
  • Location:US

Posted Tue Oct 28, 2014 3:54 PM

Black borders proof of concept:
 
Attached File  jagborder.xex   8.38KB   153 downloads
jagborder.png
 
I just added the following code to your executable:
 
    mva #$29 HPOSP3
    sta HPOSM1
    mva #$CF HPOSP2
    sta HPOSM0
    mva #$9F $2047
    sta $2011
    mva #$FC GRACTL
    mva #$FF GRAFM
    sta GRAFP2
    sta GRAFP3
    sta SIZEM

The basic concept is that a player over 5th player yields black.

#20 gilsaluki OFFLINE  

gilsaluki

    Dragonstomper

  • 730 posts

Posted Tue Oct 28, 2014 4:27 PM

Jim Carrey (Lincoln parody) says, "That's Kwell".



#21 pirx OFFLINE  

pirx

    Moonsweeper

  • 438 posts
  • Location:Poland

Posted Tue Oct 28, 2014 4:31 PM

Hey, you can do this with missiles only - here's code from my intro above:

    ;vertical blinds (missiles)
    lda #$30
    ldx #28 ;blinds start
    sta PMG+$300-1,x
    lda #$FF
PMGblinds
    sta PMG+$300,x
    inx
    cpx #189  ;blinds end
    bne PMGblinds
    
    mva #41 HPOSM0
    mva #41-8 HPOSM3
    mva #208 HPOSM1
    mva #216 HPOSM2

    mva #$ff  SIZEM
    mva #>PMG PMBASE
    mva #3 PMCNTL
    mva #%00000001 SIZEP0
    
    lda #%00111110
    sta dmactls 

and also in DLI:     

GTIACTLBITS = %010110
    lda #$80+GTIACTLBITS 
    sta WSYNC
    sta GTIACTL   

and so on.

 

Best,

 

pirx



#22 Xuel OFFLINE  

Xuel

    Dragonstomper

  • 726 posts
  • Location:US

Posted Tue Oct 28, 2014 4:56 PM

Some refinements:

Attached File  jagborder-wider.xex   8.39KB   155 downloads
jagborder-wider.png

  • Wider right and left borders
  • Black top border

Source on github.

 

Pirx, the reason missiles alone don't work here is because Irgendwer is not setting COLPM0 or COLPF3 to black. Maybe if he reorganized his color settings it would work like that.



#23 Irgendwer OFFLINE  

Irgendwer

    Stargunner

  • Topic Starter
  • 1,390 posts
  • Location:Germany

Posted Tue Oct 28, 2014 5:13 PM

Pirx, the reason missiles alone don't work here is because Irgendwer is not setting COLPM0 or COLPF3 to black. Maybe if he reorganized his color settings it would work like that.

 

Thank you all for the hints. I enjoy the momentum very much.

You are right, there is no black in PMx, because I don't like to switch black from BK to PM0 to save the cycles for further features. There is no point using PMGs when PM0 is black anyway (?), since then the fringes wouldn't appear...

Using GRAFM instead of PMG-DMA is also a plus.



#24 Xuel OFFLINE  

Xuel

    Dragonstomper

  • 726 posts
  • Location:US

Posted Tue Oct 28, 2014 5:31 PM

Thank you all for the hints. I enjoy the momentum very much.

 
It's very cool indeed. I'd like to try some animations at some point. Looking forward to your converter.
 

There is no point using PMGs when PM0 is black anyway (?), since then the fringes wouldn't appear...

 

True, the borders won't alternate between black and colored lines, but you'll still have a jagged edge due to the offset of 9-color mode. In both cases, PMGs can provide a nice straight border.



#25 pirx OFFLINE  

pirx

    Moonsweeper

  • 438 posts
  • Location:Poland

Posted Sun Nov 23, 2014 5:28 PM

Heeeey, 

We are waiting :)







Also tagged with one or more of these keywords: Graphic, Format, Image, Converter, GTIA, JAG

0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users