MAXIGRAFIK: 208 x 256 true, high-resolution graphics!

Basic and Machine Language

Moderator: Moderators

User avatar
orion70
VICtalian
Posts: 4337
Joined: Thu Feb 02, 2006 4:45 am
Location: Piacenza, Italy
Occupation: Biologist

Post by orion70 »

Mike wrote:Would you be so kind to post the source code for the left one? ;)
Of course:

Code: Select all

10 multi1:clear
20 color0,1:color1,6:color2,2:color3,5
30 forr=0to207step8
40 draw1,r,0to207,r
50 draw1,0,rtor,207
60 draw2,r,207tor,255
70 nextr
80 forz=4to73step8
90 circle3,104,104,z,75
100 circle3,104,104,75,z
110 nextz
120 forw=207to255step8
130 draw2,0,wto207,w
140 nextw
150 show
160 multi0
Mike wrote:As I wrote above, that would most probably require a "fall-back" to MINIGRAFIK, and the 40-column routines available for MG. A line-based editor for ASCII texts should be quite easy to implement in BASIC, given the components already available. If you like, we can develop this one here in Denial, in an open thread ... just post a WIP. :)
OK, I'll make the first attempts available ASAP :wink: .
armypavarmy
Vic 20 Hobbyist
Posts: 107
Joined: Wed Oct 02, 2013 1:54 am
Location: Italy

Re: MAXIGRAFIK: 208 x 256 true, high-resolution graphics!

Post by armypavarmy »

hello everyone is Armando
These demo screens are
realized by me with Maxigrafik
The listed ones are available to those who have them.
Greetings ...... Armando
Maxigrafik-Screen.rar
(1.89 KiB) Downloaded 65 times
armypavarmy
Vic 20 Hobbyist
Posts: 107
Joined: Wed Oct 02, 2013 1:54 am
Location: Italy

Maxigrafik

Post by armypavarmy »

Hello
here are my last works
with Maxigrafik
converted from CBM Plus / 4 and ZX
Spectrum.
I hope I like it. Armando
Maxigrafik-Screen.rar
(2.74 KiB) Downloaded 85 times
User avatar
Mike
Herr VC
Posts: 4816
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Re: Maxigrafik

Post by Mike »

15 downloads of "Maxigrafik-Screen.rar" (mine included) without any other replies thus far leave me at least with some question marks above my head. At least, Armando didn't make it *that* simple to assess what is to do with the files "d1d-scr", "gasket-scr" and "snoopy-scr" contained within the archive.

Either people are indeed well acquainted with MAXIGRAFIK and thus know how to use the files and just don't bother to follow-up here - which raises the question why there haven't been other releases for MAXIGRAFIK in the meantime -, or they downloaded the archive, don't know what to do with the files, don't find any hint somewhere in the forum what could be done with the files, and are too afraid(?) to ask. Whatever.

To clear up that matter regardless, these three files are supposed to be used with the two commands GLOAD and SHOW of the MAXIGRAFIK extension. They contain completely rendered pictures, but are - unfortunately - not the BASIC programs that were used to render those pictures. Those BASIC programs actually might have been much more interesting (for a follow-up discussion) than 'just' some converted line art. IMO.

...

Armando, I'd also suggest you switch to *.zip for further uploads: *.rar is a proprietary archive format, and the only program that officially supports it is WinRAR. WinRAR comes with a shareware licence, i.e. it is subject to a charge after a trial period. Actually, for myself I'm also not too eager to install yet another specialised file browser onto my computer just for decompressing that single *.rar archive that comes across once a year. Any arguments regarding *possibly* *slightly* better compression rates don't outweigh the unnecessary hassles with that format.

Here are the three files (download), repackaged in a *.zip archive.

Greetings,

Michael
armypavarmy
Vic 20 Hobbyist
Posts: 107
Joined: Wed Oct 02, 2013 1:54 am
Location: Italy

Maxigrafik---Bingo

Post by armypavarmy »

Hello
I am preparing the "Bingo"
with Maxigrafik to large
numbers.
in enclosed demo screeen.
when the program finishes
will attach. the file.
-------------- Armando greetings
scr-bingo.rar
(651 Bytes) Downloaded 88 times
tonyrocks
Vic 20 Hobbyist
Posts: 118
Joined: Mon Jan 04, 2016 10:17 pm
Website: http://www.tonyrocks.com
Location: Pittsburgh
Occupation: IBM Watson Engr

Re: Maxigrafik---Bingo

Post by tonyrocks »

I cannot read RAR files. :( Can you use zip?
armypavarmy
Vic 20 Hobbyist
Posts: 107
Joined: Wed Oct 02, 2013 1:54 am
Location: Italy

Re: Maxigrafik---Bingo

Post by armypavarmy »

Attach file compressed 7Zip
scr-bingo.7z
(688 Bytes) Downloaded 65 times
armypavarmy
Vic 20 Hobbyist
Posts: 107
Joined: Wed Oct 02, 2013 1:54 am
Location: Italy

Re: Maxigrafik

Post by armypavarmy »

Hello Mike
About your notes:

I thought I'd send the screens first to know if
Someone was interested.
No problem for the listener.
First I can send them ...... ..Zippati.
Thank you for your interest in my work.
Your advice is useful and valuable to me.
I usually use the 7Zip program.
Tell me if it's okay.
Thanks again ............ .Armando
User avatar
Mike
Herr VC
Posts: 4816
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Re: Maxigrafik

Post by Mike »

If you look into the various threads here in Denial where I posted examples for MINIGRAFIK, I usually followed up "teaser" pictures with the programs that produced those screens. Unless those pictures were the result of manual work in MINIPAINT, and obviously no such program existed (I'd then still attach the corresponding MG file).

I did so without necessarily being asked for, merely I think it's just illogical to post something along programmed computer art into the Programming section of a Forum without following up with the program that did the feat. Regards "gauging the interest": with a hobby as obscure as ours one needs a good lot of instrinsic motivation anyhow - you'll fare much better getting responses for your VIC-20 work here in Denial than in any other related forum. But you should be at least a little more consequent. :)

So it's up to you: you attach the programs here in the threads, and you might find people here obliged to say something about those programs, follow up, improve them, spark new ideas, whatever. Just those static screens probably aren't going deliver enough incentive for this. My thoughts already.

And regarding the file type best suited for attachments, just look around what's usually used in the forum: you'll find plain *.d64 files, *.prg or *.d64 (or other storage image file types) archived in *.zip, etc. - unfortunately, plain *.prg is disallowed by the forum software for whatever reason. On the contrary, *.7z and especially *.rar are extremely, well, rare. *.zip is supported out-of-the-box in all Windows installations since XP, it is also a standard archive format with all Unixes (that includes Macs, iOS and Android) so there's no good reason to use yet another compressor unless for specialist needs. Programs (or parts thereof) in text form should be posted in code-tags, that should go without saying. Etc.
armypavarmy
Vic 20 Hobbyist
Posts: 107
Joined: Wed Oct 02, 2013 1:54 am
Location: Italy

Maxigrafik

Post by armypavarmy »

Maxprg.zip
(1.35 KiB) Downloaded 65 times
The enclosed file contains four programs for Maxigrafik.
These are the programs I've written that I had already written
The "scr-demo" files in the previous topics.
Lists have been drawn from Plus / 4 and Zx Spectrum programs
And adapted by me for Maxigrafik.
Armando
User avatar
Mike
Herr VC
Posts: 4816
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Re: Maxigrafik

Post by Mike »

Nice! Here's my suggestion for program "1.13" (download):

Code: Select all

10 REM LISTING 1.13-V3
15 N=12
20 R=10
25 MULTI0:CLEAR
30 FORI=0TON-1
35 P=2*{PI}*I/N
40 X=3*R*COS(P)
45 Y=5*R*SIN(P)
50 CIRCLE1,104.5+X,128.5-Y,3*R,5*R
55 NEXT
60 SHOW
This shows the drawing centered on screen at (104,128), also with correctly rounded co-ordinates. The x- and y-semiaxes have been carefully chosen to compensate the PAL pixel aspect ratio of ~1.67:1.00, so CIRCLE indeed draws circles and they are all arranged in circle-form around the screen centre so they all intersect there.

The variables N and R in lines 15 and 20 can be changed to other sensible values to obtain slightly different drawings.

...

As for the other three programs, they could quite as well have been done with MINIGRAFIK. They either don't occupy that big screen area for their drawings to justify the use of MAXIGRAFIK, or - in case of "gsr" - could easily be reduced to the smaller 160x192 resolution without "losing" the effect. Would also have the charm that one could see how they work (which is not possible with MAXIGRAFIK).

It would also be possible to re-port "1.13" to MINIGRAFIK, even if MG misses the CIRCLE command. That command could easily be retro-fitted with a small ML library (but as no-one asked for that, thus far I didn't bother to post it. :P)
armypavarmy
Vic 20 Hobbyist
Posts: 107
Joined: Wed Oct 02, 2013 1:54 am
Location: Italy

Re: Maxigrafik

Post by armypavarmy »

Hello
Thak for 113v3.zip.........OK- OK

Minigraph does not have circle command
It would be ok for me if inserted.
Graphics programs I write to them
first with Minigrafik because '
it shows development.
Besides that nice to see it is also useful
to edit any parameters in the list.
with Minigrafik programs I can use
if I need "Diskmerge" and "Renumber"
without problems.
When the programs are Ok I write listed for Maxigrafik

One of the problems with some conversions
This is due to the fact that the graphical commands are available
are very limited in use options.

Armando
User avatar
Mike
Herr VC
Posts: 4816
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Re: Maxigrafik

Post by Mike »

armypavarmy wrote:One of the problems with some conversions
This is due to the fact that the graphical commands are available
are very limited in use options.
MINIGRAFIK implements a minimal set of graphics commands on purpose.

I aimed to include all really necessary and indispensable commands. A programm that uses MG will always need the commands to switch on the graphics, clear the bitmap and return to text mode. Without at least a pixel plot command we'd sorely miss the purpose, no? The line-drawing variant was included because doing lines just with single pixel plots incurs a speed hit that can't be tolerated for most applications - so line-drawing is in, too. At least some applications also require a pixel read function - it's there. Unless one can save and load the hires screen, you really can't take that extension serious (now guess what: screen load/save is *missing* with Super Expander). You can count on that most client programs use nearly all code of MG, so there's no dead code around when it is active.

Any extensions beyond that would only add bloat if they were added to the core of MINIGRAFIK. I excluded colour definition commands, because POKEs to the addresses 646, 36878 and 36879 are entirely sufficient to do the job. Not all programs need to draw circles, not all programs need to print text into the bitmap. Still, in the past I have provided ML libraries that add those functions. Often enough, they can also be implemented as BASIC sub-routines, and still be fast enough for most needs. Not everything needs to be provided as dedicated BASIC command.

I have published quite a few examples beyond simple 'toy' programs for MINIGRAFIK over the last years. Take a look how they do things, and what can be done with the - what you call apparently "very limited" - set of its graphics commands. And then please re-think your opinion.
armypavarmy
Vic 20 Hobbyist
Posts: 107
Joined: Wed Oct 02, 2013 1:54 am
Location: Italy

Re: Maxigrafik

Post by armypavarmy »

Hi Mike


One of the problems with some conversions
This is due to the fact that the graphical commands are available
are very limited in use options.

Maybe I did not explain
and I was misunderstood.
The Limits Note of the
Graphic controls only concern MAXIGRAFIK
if the program was done for graphics.
if you can not or do not want to improve it.
sorry but patience.

Armando
User avatar
Mike
Herr VC
Posts: 4816
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Re: Maxigrafik

Post by Mike »

armypavarmy wrote:One of the problems with some conversions
This is due to the fact that the graphical commands are available
are very limited in use options.
I'm lost on that one. What do you expect? A pixel plot is specified by a co-ordinate pair and colour source. A line plot needs two co-ordinate pairs and a colour source. With MAXIGRAFIK, the CIRCLE command takes the centre, the two half-axes, and colour. All commands can be switched between hires and multi-colour. So, what's your problem exactly? At one point, you'll have to put an algorithm around the graphics primitives anyhow, so the program draws exactly what you want.

You can't expect that both graphics extensions would aim to reproduce a 1:1 compatibility to the graphics commands of some other computer. The commands are tooled to suit the VIC-20 hardware.
if you can not or do not want to improve it.
sorry but patience.
As I wrote, MINIGRAFIK got support with ML libraries over time. These libraries are just not going to be added to the main executable of MINIGRAFIK. Simple as that.

In principle, that also applies to MAXIGRAFIK. But in that case, the user base has been much smaller than with MINIGRAFIK in the last years, so there had been much less incentive on tokra's and my side to improve anything there. MAXIGRAFIK works fine as is. Besides, the graphics mode of MAXIGRAFIK was surpassed quite soon by newer graphics modes, also for NTSC. I wrote some converters for those new graphics modes, but that was it: no one here in the forum asked for further programming support for those modes. You should understand that whatever time then is available gets devoted to other projects.
Post Reply