Coding Challenge: 3D on Apple II
The Coding Train The Coding Train
1.68M subscribers
315,589 views
0

 Published On Nov 12, 2022

Take a trip back in time and watch me attempt to build a 3D graphics engine in AppleSoft BASIC on a restored Apple II+ computer! Can I render a spinning cube? Code: https://thecodingtrain.com/challenges...

šŸš€ Watch this video ad-free on Nebula https://nebula.tv/videos/codingtrain-...

šŸŽ„ Previous video: Ā Ā Ā ā€¢Ā AppleĀ ][Ā CodingĀ Challenge:Ā FractalĀ TreeĀ Ā 
šŸŽ„ All videos: Ā Ā Ā ā€¢Ā CodingĀ ChallengesĀ Ā 

References:
šŸ’¾ Big Mess o' Wires: http://www.bigmessowires.com/floppy-emu/
āœØ Nebula: https://nebula.tv/videos/codingtrain-...
šŸ§  What is Code?: https://nebula.tv/what-is-code
šŸŽ¶ Coding Together: Ā Ā /Ā coding-togetherĀ Ā 

Related Videos:
šŸŽ„ Coding Together Track: https://thecodingtrain.com/tracks/cod...
šŸŽ„ Polar Coordinates: Ā Ā Ā ā€¢Ā 3.4Ā PolarĀ CoordinatesĀ -Ā TheĀ NatureĀ of...Ā Ā 
šŸŽ„ 3D Rendering with Rotation and Projection: Ā Ā Ā ā€¢Ā CodingĀ ChallengeĀ #112:Ā 3DĀ RenderingĀ w...Ā Ā 

AppleSoft BASIC:
šŸ¶ Beagle Basic: http://www.apple-iigs.info/doc/fichie...
šŸŽ The AppleSoft Tutorial: http://cini.classiccmp.org/pdf/Apple/...
šŸŽ Basic Programming Reference Manual: https://mirrors.apple2.org.za/Apple%2...
šŸŖ§ Peeks, Pokes and Pointers: https://archive.org/details/peeks-pok...

Apple II Emulators:
ā˜• Applesoft BASIC in JavaScript: https://www.calormen.com/jsbasic/
šŸŽ Apple IIjs: https://www.scullinsteel.com/apple2/
šŸŽ MicroM8: https://paleotronic.com/software/micr...

Unedited Raw Footage:
ā­ļø Session 1: Ā Ā Ā ā€¢Ā MembersĀ Live:Ā RecordingĀ theĀ AppleSoft...Ā Ā 
ā­ļø Session 2: Ā Ā Ā ā€¢Ā MembersĀ Live:Ā ArchiveĀ ofĀ AppleĀ ][Ā Rec...Ā Ā 
ā­ļø Session 3: Ā Ā Ā ā€¢Ā MemberĀ Live:Ā ArchiveĀ ofĀ 3rdĀ AppleĀ ][Ā ...Ā Ā 

Related Coding Challenges:
šŸš‚ 112 3D Rendering with Rotation and Projection: Ā Ā Ā ā€¢Ā CodingĀ ChallengeĀ #112:Ā 3DĀ RenderingĀ w...Ā Ā 
šŸš‚ 173 AppleSoft Basic Snake Game: Ā Ā Ā ā€¢Ā WhatĀ wasĀ CodingĀ likeĀ 40Ā yearsĀ ago?Ā Ā 
šŸš‚ 174 AppleSoft Basic Fractal Tree: Ā Ā Ā ā€¢Ā AppleĀ ][Ā CodingĀ Challenge:Ā FractalĀ TreeĀ Ā 

Timestamps:
0:00 The future of computer graphics!
0:39 Viewer comments
1:58 Editing code in BASIC
3:28 Floppy Emu disk emulator
5:09 Double buffered animation
6:55 Initialize high resolution graphics for 2 pages
7:42 Animating a line
8:50 CALL to clear the screen
9:22 Switching screens
13:18 The "draw loop"
14:55 Rotate a line
15:45 Add points
16:36 Add a subroutine that draws a line between two points
17:55 Scaling the line
20:55 Matrix Multiplication for Rotation
29:26 Animate rotation
32:00 Clear background
33:17 Subroutine to add the points of a cube
35:40 Subroutine to draw the lines
36:46 Incorporating matrix math.
40:24 Edit code to add more points
41:46 Connect the points to draw a cube
43:03 Beautiful, 3D rotating cube!!
43:17 x-axis rotation
43:52 Ways to optimize the code
44:42 Can you add perspective projection?
45:08 See you next time on Coding Together!

Editing by Mathieu Blanchette
Animations by Jason Heglund
Coding Together Theme by Will from America (Ā Ā /Ā willfromamericaĀ Ā )
Eye of the Tiger cover by Leon from @neo
Additional music from from Epidemic Sound

šŸš‚ Website: http://thecodingtrain.com/
šŸ‘¾ Share Your Creation! https://thecodingtrain.com/guides/pas...
šŸš© Suggest Topics: https://github.com/CodingTrain/Sugges...
šŸ’” GitHub: https://github.com/CodingTrain
šŸ’¬ Discord: https://thecodingtrain.com/discord
šŸ’– Membership: http://youtube.com/thecodingtrain/join
šŸ›’ Store: https://standard.tv/codingtrain
šŸ–‹ļø Twitter: Ā Ā /Ā thecodingtrainĀ Ā 
šŸ“ø Instagram: Ā Ā /Ā the.coding.trainĀ Ā 

šŸŽ„ Coding Challenges: Ā Ā Ā ā€¢Ā CodingĀ ChallengesĀ Ā 
šŸŽ„ Intro to Programming: Ā Ā Ā ā€¢Ā StartĀ learningĀ here!Ā Ā 

šŸ”— p5.js: https://p5js.org
šŸ”— p5.js Web Editor: https://editor.p5js.org/
šŸ”— Processing: https://processing.org

šŸ“„ Code of Conduct: https://github.com/CodingTrain/Code-o...

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecod...

#3dgraphics #1980s #appleii #matrixmath #basic

show more

Share/Embed