Hires Graphics

Basic and Machine Language

Moderator: Moderators

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

Earth globe

Post by Mike »

Hi,

This program displays an Earth globe. You specify the longitude, and latitude, that is centered. The north pole is always facing up.

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 11 also contains a {PI} symbol. That noted, any tokenizer should work.

Cheers,

Michael

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.
User avatar
orion70
VICtalian
Posts: 4341
Joined: Thu Feb 02, 2006 4:45 am
Location: Piacenza, Italy
Occupation: Biologist

Post by orion70 »

Another wonder to show to my C64 friends :D .
Here's a screenshot of the new desktop, after a bit of GIMPing on the image:
Image
I'm working on the animated gif of the revolving globe now - it will take a while, but the result will be the first 3D animation made with a Commodore VIC-20 (well, with a little help from other tools, but... :P ).
User avatar
ral-clan
plays wooden flutes
Posts: 3702
Joined: Thu Jan 26, 2006 2:01 pm
Location: Canada

Post by ral-clan »

Wow, that's impressive. Especially considering the small size of the code.
User avatar
orion70
VICtalian
Posts: 4341
Joined: Thu Feb 02, 2006 4:45 am
Location: Piacenza, Italy
Occupation: Biologist

Post by orion70 »

Last edited by orion70 on Wed Dec 03, 2008 2:50 am, edited 1 time in total.
User avatar
Jeff-20
Denial Founder
Posts: 5759
Joined: Wed Dec 31, 1969 6:00 pm

Post by Jeff-20 »

:shock:
High Scores, Links, and Jeff's Basic Games page.
User avatar
Mike
Herr VC
Posts: 4842
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Post by Mike »

Jeff-20 wrote::shock:
A perfect candidate to include in the Denial home page images. :D

Alessandro, you've had a great idea. Could you make a GIF animation with 24 phases (one for each hour)?

Michael
Last edited by Mike on Thu Dec 04, 2008 1:58 am, edited 1 time in total.
User avatar
orion70
VICtalian
Posts: 4341
Joined: Thu Feb 02, 2006 4:45 am
Location: Piacenza, Italy
Occupation: Biologist

Post by orion70 »

OK 15 degrees instead of 20. And invert the sense of rotation, of course. :oops:

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

Post by orion70 »

Done. As usual, smoother if played in Windows viewer.

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

Post by Mike »

Fine. :D Which latitude did you use?

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

Post by orion70 »

30° N. Slightly north of the Tropic of Capricorn (23° N). Best angle to see Europe, Greenland, the whole Africa, Asia, and the Americas (Tierra del Fuego being few pixels out).
Not so nice view of Australia, and no Antarctica at all though. :P
User avatar
ral-clan
plays wooden flutes
Posts: 3702
Joined: Thu Jan 26, 2006 2:01 pm
Location: Canada

Post by ral-clan »

I can see my house from here!
User avatar
orion70
VICtalian
Posts: 4341
Joined: Thu Feb 02, 2006 4:45 am
Location: Piacenza, Italy
Occupation: Biologist

Post by orion70 »

:D :D :D
Legacy
Vic 20 Enthusiast
Posts: 154
Joined: Wed Dec 31, 2008 4:01 pm

Post by Legacy »

I wish you guys would post programs in lower case, it makes it a pain when I paste into VICE :shock:
User avatar
Mike
Herr VC
Posts: 4842
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Post by Mike »

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
User avatar
orion70
VICtalian
Posts: 4341
Joined: Thu Feb 02, 2006 4:45 am
Location: Piacenza, Italy
Occupation: Biologist

Post by orion70 »

Legacy wrote:I wish you guys would post programs in lower case, it makes it a pain when I paste into VICE :shock:
Copy and paste in M$ Word, select all, and press shift+F3. Voilà. :wink:
Post Reply