Jump to content

Photo

Graphics 3 Planner - early beta version


23 replies to this topic

#1 Sikor OFFLINE  

Sikor

    Stargunner

  • 1,286 posts
  • Location:Warsaw/Poland

Posted Sun May 11, 2014 11:29 AM

Hello!
XXL at http://atarionline.p...&page=1#Item_11wrote,that he's searching for GFX-man, who can draw GFX for 3rd mode of Basic (8 mode Antic). So, I wrote early beta version for do it.
Handling:
1,2,3,0 - color number
L - load data (960 bytes)
S - save data (960 bytes)
D - drawing/clearing picture
Draw with joystick. Load and save data with full path (for example: D:TEST.SG3).
One more - no DOS exit and no error detect in this beta, but fully functional for this time.
Some info about SG3 (Standard Graphics 3) format:
- four colours
- 40x24 resolution
- no additionalinformation
- only 960 bytes long
In future I'm planning add AG3 (Additional Graphics 3) format:
- add colour options on the end of file (4 bytes)
- maybe add some bytes for info/author for future use (max 800 bytes) - for examples to presentation
- 964 (or 964+800 bytes max) long.
Any ideas, what i can put else into this short tool?
Best regards,
Sikor
====
Edit: link

Attached Files


Edited by Sikor, Sun May 11, 2014 12:02 PM.


#2 Gury OFFLINE  

Gury

    Stargunner

  • 1,185 posts

Posted Sun May 11, 2014 1:01 PM

Hello Sikor!

 

Any such tool can be helpful. You could add some patterns, like squares, circles, etc. It this mode it is harder to make some details, but anyway. Then, filled shapes could be helpful, tool patterns... My thoughts...

 

Thanks for the program.

 

Greetings,

Gury



#3 Sikor OFFLINE  

Sikor

    Stargunner

  • Topic Starter
  • 1,286 posts
  • Location:Warsaw/Poland

Posted Sun May 11, 2014 1:09 PM

Hmm, patterns... Good idea. When i'll be write more code for it - I'll think about it...

#4 Sikor OFFLINE  

Sikor

    Stargunner

  • Topic Starter
  • 1,286 posts
  • Location:Warsaw/Poland

Posted Sun May 11, 2014 3:15 PM

Beta 002 - fixed format length from 960 bytes to 240 bytes - Thx Seban! I forgot, that in GR3 one byte is four pixels...

Attached Files


Edited by Sikor, Sun May 11, 2014 3:56 PM.


#5 Sikor OFFLINE  

Sikor

    Stargunner

  • Topic Starter
  • 1,286 posts
  • Location:Warsaw/Poland

Posted Mon May 12, 2014 11:27 AM

New format AG3 description:
Extended with additional data format SG3. Description indicates the additional elements (described in the order ).
* Information about the color settings at the end of the file ( 4 bytes)
* Differentiator file ( 1 byte in the form of a mark ) :
** N - no further information
** S - short info
** I - info
** A - animation
** F - future applications
* Length of 245 (or 245 + additional ) bytes
Highlights :
* N - indicates the absence of additional information , it ends a file, the file length 245 bytes
* S - a short info, 40 - byte text information at the end of the file, the file length of 285 bytes
* I - info , information Descriptive divided into blocks :
** 240 bytes of data
** 4 bytes in order of color registers 708, 709, 710 and 712
** Discriminant I - 1 byte
** 40 bytes short info ( the same as the differentiator S)
** 1 byte indicating the amount of 120 byte blocks description (1 to 3 )
** Additional descriptions blocks - 120 , 240 or 360 bytes
In total file length will be 406, 526 or 646 bytes
* A - animation ( in preparation)
* F - " future" , the extras are not specified (probably the image width , height , others - in preparation)
== What are the differentiators ? ==
The purpose of this format is to use the image boxes in a custom way. With the description of the work included in the file "on compo " may incorporate a description, and record them at the end of the data does not affect the display . You can use them to encode additional options (for example, the number of frames in the animation and switching time - may well be one slideshow ).

Format *.AG3 will be available from next public beta version.

Edited by Sikor, Mon May 12, 2014 11:28 AM.


#6 matosimi OFFLINE  

matosimi

    Moonsweeper

  • 318 posts
  • Location:Slovakia - Bratislava http://matosimi.atari.org

Posted Tue May 13, 2014 4:38 PM

well, this is my tool for GR3 graphics.

I used it for init screens in Laser Blaster or Monex.

 

Attached File  AtGr3.zip   212.06KB   84 downloads

 

Enjoy :)



#7 Sikor OFFLINE  

Sikor

    Stargunner

  • Topic Starter
  • 1,286 posts
  • Location:Warsaw/Poland

Posted Tue May 13, 2014 11:17 PM

well, this is my tool for GR3 graphics.

Nice tool for PC, my will be for Atari ;) How change colour in your tool?

#8 xxl OFFLINE  

xxl

    Dragonstomper

  • 959 posts
  • Location:Rabka-Zdrój /Poland

Posted Wed May 14, 2014 12:30 AM

well, this is my tool for GR3 graphics.

 

 

how to change colors in editor?



#9 matosimi OFFLINE  

matosimi

    Moonsweeper

  • 318 posts
  • Location:Slovakia - Bratislava http://matosimi.atari.org

Posted Wed May 14, 2014 12:49 AM

 

 

how to change colors in editor?

using mousewheel ;-)



#10 xxl OFFLINE  

xxl

    Dragonstomper

  • 959 posts
  • Location:Rabka-Zdrój /Poland

Posted Wed May 14, 2014 1:05 AM

I've got no wheel on mouse nor touchpad :/

 

maybe buttons?



#11 matosimi OFFLINE  

matosimi

    Moonsweeper

  • 318 posts
  • Location:Slovakia - Bratislava http://matosimi.atari.org

Posted Wed May 14, 2014 1:37 AM

I've got no wheel on mouse nor touchpad :/

 

maybe buttons?

LOL, time to spend some money on HW ;)



#12 xxl OFFLINE  

xxl

    Dragonstomper

  • 959 posts
  • Location:Rabka-Zdrój /Poland

Posted Wed May 14, 2014 2:00 AM

:-) I do not use mouse at all,
only touchpad - tapping and scrolling off
...
because I like it. ;-)


#13 xxl OFFLINE  

xxl

    Dragonstomper

  • 959 posts
  • Location:Rabka-Zdrój /Poland

Posted Wed May 14, 2014 3:10 AM

well, this is my tool for GR3 graphics.

I used it for init screens in Laser Blaster or Monex.

 

superB tool:
1. buttons to change color,
2. import bmp
3. define X-size,Y-size of screen (in bytes)


#14 matosimi OFFLINE  

matosimi

    Moonsweeper

  • 318 posts
  • Location:Slovakia - Bratislava http://matosimi.atari.org

Posted Wed May 14, 2014 3:45 AM

 

:-) I do not use mouse at all,
only touchpad - tapping and scrolling off
...
because I like it. ;-)

 

i was afraid u live in atari age



#15 matosimi OFFLINE  

matosimi

    Moonsweeper

  • 318 posts
  • Location:Slovakia - Bratislava http://matosimi.atari.org

Posted Wed May 14, 2014 3:48 AM

 

 

superB tool:
1. buttons to change color,
2. import bmp
3. define X-size,Y-size of screen (in bytes)

 

i really dont plan any updates of this tool, but i can provide you delphi source (im not sure if i still have it) so you could expand it as u like if u are interested.


Edited by matosimi, Wed May 14, 2014 3:50 AM.


#16 matosimi OFFLINE  

matosimi

    Moonsweeper

  • 318 posts
  • Location:Slovakia - Bratislava http://matosimi.atari.org

Posted Fri May 16, 2014 5:06 PM

So I found it, here is archive with Delphi7 source.

Attached File  atari_gr3Pixeled.zip   227.38KB   67 downloads

 

I could not resist, so I spent 1 hour (it's quite funny reinventing delphi syntax) to add keyboard controls: (keys 1,2,3 select colors) and 32/40 pixel width switch:

 

atgr3v11.png

 

ZIP archive contains also executable (not only sources).

 

There will be no more updates, but you can use my source and add what u need.

 

Regards,

Martin


Edited by matosimi, Fri May 16, 2014 5:09 PM.


#17 xxl OFFLINE  

xxl

    Dragonstomper

  • 959 posts
  • Location:Rabka-Zdrój /Poland

Posted Sun May 18, 2014 2:08 AM

I could not resist, so I spent 1 hour (it's quite funny reinventing delphi syntax) to add keyboard controls: (keys 1,2,3 select colors) and 32/40 pixel width switch:

 

 

 

:D

 

thx



#18 matosimi OFFLINE  

matosimi

    Moonsweeper

  • 318 posts
  • Location:Slovakia - Bratislava http://matosimi.atari.org

Posted Sun May 18, 2014 4:08 AM

Beta 002 - fixed format length from 960 bytes to 240 bytes - Thx Seban! I forgot, that in GR3 one byte is four pixels...

Sikor, sorry for bombing your thread... but it could save your time and effort.



#19 Sikor OFFLINE  

Sikor

    Stargunner

  • Topic Starter
  • 1,286 posts
  • Location:Warsaw/Poland

Posted Sun May 18, 2014 5:50 AM

@matosimi: no problem, I write it for fun. I like work on real atari - XXL can use your program, so, I have no deadline for it ;)

#20 Gury OFFLINE  

Gury

    Stargunner

  • 1,185 posts

Posted Thu May 29, 2014 2:35 PM

Hej Matosimi, I updated your program a little. I added some new features, which I hope will be useful for someone. And I hope it is ok I modified your program in such a way.

 

atgr3_2.jpg atgr3_1.jpg atgr3_5.jpg atgr3_6.jpg atgr3_7.jpg atgr3_3.jpg

 

Here are notes about the new version (text from source code)

 

  Original program by MatoSimi
  Modification Gury
 
  29.5.2014
  ---------
 
  - Porting to Lazarus and Free Pascal development environment (from Delphi)
  - New features
  - Few bug fixes
  ---------------
  - Added toolbox with new features:
    - Drawing shapes: square, rectangle, circle, diamant
    - Program settings: shape ratio and distance
    - Atari BASIC viewer source code to use pictures in your own programs on Atari
  - Two palettes to choose from: Atari default and grayscale
  - Bug fix: no trailing pixels when moving in any of four directions
 
  Development environment:
    Lazarus (version 1.0.12)
    Free Pascal Compiler (version 2.6.2)
 
Here is executable program and source code, it is free for any use:
Attached File  Atgr3_v1_2.zip   1.6MB   74 downloads
 
Enjoy!
Gury
 
 


#21 matosimi OFFLINE  

matosimi

    Moonsweeper

  • 318 posts
  • Location:Slovakia - Bratislava http://matosimi.atari.org

Posted Sat May 31, 2014 9:40 AM

 

And I hope it is ok I modified your program in such a way.

 

No, i'm quite surprised that you decided to spend time on such thing :). btw, you removed the 40/32 width switch that i put there on xxl's request.

and those shapes are really funny, their "rendering" is so slow. I checked your code, i thought there are delays or something, but there are not! i dont know lazarus/fpc so i dont know what makes it that slow.



#22 Gury OFFLINE  

Gury

    Stargunner

  • 1,185 posts

Posted Sun Jun 1, 2014 4:07 AM

Hi Matosimi,

I will add 40/32 width switch feature again. I am sorry for slow rendering, it is just me and the way I choose to draw things in the matrix on the screen. The reason is my Plot procedure, which draws pixels in matrix for every step in drawing process. I will have to recode program to make it faster. Lazarus and Free Pascal are NOT the problem, because they are very fast, even faster then Delphi and C is some respects.



#23 snicklin OFFLINE  

snicklin

    River Patroller

  • 2,000 posts
  • Location:Australia

Posted Sun Jun 1, 2014 5:02 AM

It looks like a nice little tool, just a shame that I'm not planning anything in GR.3.

 

Is there any reason this couldn't be extended for GR.15?



#24 Gury OFFLINE  

Gury

    Stargunner

  • 1,185 posts

Posted Sun Jun 1, 2014 5:25 AM

Thanks, it could be extended for any graphics mode by remapping matrix and some code in the program.

 

Sorry, Sikor, to intrude topic on your nice tool for Atari computers. I will move to new topic for this program. Please keep up with your tool.






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users