Hires Graphics
Moderator: Moderators
- Mike
- Herr VC
- Posts: 4888
- Joined: Wed Dec 01, 2004 1:57 pm
- Location: Munich, Germany
- Occupation: electrical engineer
Hi, Legacy,
cut and paste are quite a recent addition to VICE. Short that facility being available in VICE before, there were already other tokenizers around, like Schlowski's BasEdit, which can handle upper-case letters. BasEdit produces *.prg files.
Listings without control chars, or special symbols can be transferred with a small 4-line program.
Michael
cut and paste are quite a recent addition to VICE. Short that facility being available in VICE before, there were already other tokenizers around, like Schlowski's BasEdit, which can handle upper-case letters. BasEdit produces *.prg files.
Listings without control chars, or special symbols can be transferred with a small 4-line program.
Michael
By the way, at what smaller resolution would this kind of animated globe be feasible? At 128x128 pixels each frame equals 2K if video and colour matrices are unchanged.
How long would it take to generate a frame in ML, and how many frames need to be precalculated if we want the globe to rotate at least one frame per second? Even then, the internal 4K RAM probably is best used for double buffering so we can copy graphics data into one half while displaying the other.
How long would it take to generate a frame in ML, and how many frames need to be precalculated if we want the globe to rotate at least one frame per second? Even then, the internal 4K RAM probably is best used for double buffering so we can copy graphics data into one half while displaying the other.
Anders Carlsson
- Mike
- Herr VC
- Posts: 4888
- Joined: Wed Dec 01, 2004 1:57 pm
- Location: Munich, Germany
- Occupation: electrical engineer
The following program displays the rotating Earth globe with 24 phases, in full resolution, at ~4 frames per second. It needs a fully expanded VIC-20, with RAM in BLK1, BLK2, BLK3, and BLK5.carlsson wrote:By the way, at what smaller resolution would this kind of animated globe be feasible? At 128x128 pixels each frame equals 2K if video and colour matrices are unchanged.
How long would it take to generate a frame in ML, and how many frames need to be precalculated if we want the globe to rotate at least one frame per second? Even then, the internal 4K RAM probably is best used for double buffering so we can copy graphics data into one half while displaying the other.
Similarily to the first incarnation, in line 11, R1 can be adapted for different aspect ratios: R1=57 is correct for PAL; NTSC, and VICE should use R1=71, and R1=47, respectively. Line 21 contains a {PI} symbol.
Main work is done by a ultra-fast line-routine, which does ~30000 pixels per second.
Cheers,
Michael
P.S.: It is now 00:53 CET, time to go to bed.
Edit: type-in listing removed. It is contained in the MG batch suite.
Last edited by Mike on Sat Jul 28, 2012 10:22 am, edited 1 time in total.
I should've guessed you were on the task!
While I haven't tried it yet, I understand the MINI-GRAFIK program needs to be loaded. Then you seem to save (or is it load?) a file to disk. Is it a 24K memory dump of all the pre-calculated coordinates that your first program will generate?
While I haven't tried it yet, I understand the MINI-GRAFIK program needs to be loaded. Then you seem to save (or is it load?) a file to disk. Is it a 24K memory dump of all the pre-calculated coordinates that your first program will generate?
Anders Carlsson
- Mike
- Herr VC
- Posts: 4888
- Joined: Wed Dec 01, 2004 1:57 pm
- Location: Munich, Germany
- Occupation: electrical engineer
Both. It is checked whether the file "LIN" already exists on disk, and whether it is the correct data for the aspect ratio R1 specified in line 11. If neither of these preconditions is true, then the program calculates new data for the file, which takes roughly 40 minutes. Doing that chore once is enough.carlsson wrote:... you seem to save (or is it load?) a file to disk.
Actually, the file "LIN" is 49 blocks in length.Is it a 24K memory dump of all the pre-calculated coordinates that your first program will generate?
Michael
- orion70
- VICtalian
- Posts: 4343
- Joined: Thu Feb 02, 2006 4:45 am
- Location: Piacenza, Italy
- Occupation: Biologist
Another programming wonder .
For the lazy ones, here's a disk with the rotating globe program (R1=47, works in fully expanded VICE emu). It's complete with the generated LIN file.
Instructions:
1) load"*",8,1
2) run
3) load"globe",8
4) run
5) Wait approx. two minutes (or press ALT+W)
6) Enjoy
For the lazy ones, here's a disk with the rotating globe program (R1=47, works in fully expanded VICE emu). It's complete with the generated LIN file.
Instructions:
1) load"*",8,1
2) run
3) load"globe",8
4) run
5) Wait approx. two minutes (or press ALT+W)
6) Enjoy