-
Previous work
02/10/2023 at 23:23 • 0 commentsIn terms of historic re-enactment, there can never be a return to manually entering a new program, line by line, only referring to the programmer's reference guide, as was done in 1985. The post 1985 world is always going to be modifying existing internet examples.
While there were general purpose 3D drawing libraries, lions don't believe they were optimized. They had to use floating point & transformation matrices to be general purpose.
The goog spits out many previous 3D graphics programs.
This contains a complete assembly language listing which does a 3D transformation & line drawing using all integers.
The initialization is impressively simple compared to even a modern game engine.
It uses its own optimized multiply & divide routines instead of calling BASIC. Trig routines are lookup tables. The problem is reduced to just replacing the cube coordinates with gear coordinates.
Instead of using a transformation matrix, it rotates the cube model using high school trig formulas. Most of the code is the model rotation in rotate_loop. 2 variants rotate only 1 axis. 1 variant rotates 2 axes. It might need a more general way of rotating & translating the model so the different gear models can be drawn simultaneously.
The 3D projection is done with a simple lookup table that scales XY based on Z.
There is a hidden line removal technique which is specific to a cube.
A more general hidden line removal technique is shown.
-
Tools
02/10/2023 at 07:50 • 0 commentsThe mane tools are a cross compiler, a disk image creator, & an emulator. It's purely intended for the 320x200 bitmap mode.
The preferred toochain is CC65. That has an assembler & C compiler. Apparently C is hopeless on the 6502.
Disk images are created with c1541, which is part of the emulator.
https://codebase64.org/doku.php?id=base:tools_for_putting_files_into_a_.d64_image
The lion kingdom must confess to being more fascinated with commodore emulation 25 years ago than now that the rest of the world is. All the demos seem to cut off after 2000, so retro computing might just be the gootube algorithm's own fabrication.