Skip to content

Renders wireframes 3d models in Applesoft Basic for an apple 2. Includes the Utah Teapot model by default.

Notifications You must be signed in to change notification settings

Footkick72/teapot-rasterizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

teapot-rasterizer

A custom 3d model display for an Apple II, written in Applesoft BASIC as a short project.

Renders wireframes 3d models in Applesoft BASIC for an Apple II. Includes the Utah Teapot model by default.

Screen Shot 2021-06-28 at 9 04 53 PM

For a quick demo, paste the file basic_program.txt into https://www.calormen.com/jsbasic/, an online Apple II emulator. By default, it includes the Utah Teapot model. If you would like to change this, teapotdatascraperOFFformat.py is a python program to convert the 3d model format OFF into the format my program uses. OFF is slightly more obscure than something like OBJ, but it was the format of the Utah Teapot model I found. To use the output of the conversion program, paste the "data" output printed to console in place of lines 7000-onward, and change np and nf (lines 20 and 30) to nverticies and nfaces, respectively. xfst, yfst, and zfst (lines 120-140) can all be adjusted as wished to move the model around. The model can also be rotated by changing xrot, yrot, and zrot (lines 150-170), which are the rotations about the x, y, and z axes, respectively, applied pre-offset.

About

Renders wireframes 3d models in Applesoft Basic for an apple 2. Includes the Utah Teapot model by default.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages