Coding Challenge: 3D on Apple II @TheCodingTrain
Coding Challenge: 3D on Apple II  @TheCodingTrain
Uploaded November 2022 | Updated November 2026, 11 hours ago
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: thecodingtrain.com/challenges/175-3D-cube-applesoft-basic

πŸš€ Watch this video ad-free on Nebula nebula.tv/videos/codingtrain-apple-challenge-3d-cube

πŸŽ₯ Previous video: youtu.be/UNkHditYGls?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ All videos: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH

References:
πŸ’Ύ Big Mess o' Wires: bigmessowires.com/floppy-emu
✨ Nebula: nebula.tv/videos/codingtrain-apple-challenge-3d-cube
🧠 What is Code?: nebula.tv/what-is-code
🎢 Coding Together: soundcloud.com/user-207981744-979066415/coding-together

Related Videos:
πŸŽ₯ Coding Together Track: thecodingtrain.com/tracks/coding-together-apple-ii
πŸŽ₯ Polar Coordinates: youtu.be/O5wjXoFrau4
πŸŽ₯ 3D Rendering with Rotation and Projection: youtu.be/p4Iz0XJY-Qk

AppleSoft BASIC:
🐢 Beagle Basic: apple-iigs.info/doc/fichiers/BeagleBasic.pdf
🍎 The AppleSoft Tutorial: cini.classiccmp.org/pdf/Apple/The%20Applesoft%20Tutorial.pdf
🍎 Basic Programming Reference Manual: https://mirrors.apple2.org.za/Apple%20II%20Documentation%20Project/Software/Languages/Applesoft%20BASIC/Manuals/Applesoft%20II%20BASIC%20Programming%20Reference%20Manual.pdf
πŸͺ§ Peeks, Pokes and Pointers: archive.org/details/peeks-pokes-pointers

Apple II Emulators:
β˜• Applesoft BASIC in JavaScript: calormen.com/jsbasic
🍎 Apple IIjs: scullinsteel.com/apple2
🍎 MicroM8: paleotronic.com/software/microm8

Unedited Raw Footage:
⭐️ Session 1: youtu.be/4yByzgGSfzQ?t=8125s
⭐️ Session 2: youtu.be/lzAPLYApVTU?t=2854s
⭐️ Session 3: youtu.be/g7NAQyBCkZw?t=1438s

Related Coding Challenges:
πŸš‚ 112 3D Rendering with Rotation and Projection: youtu.be/p4Iz0XJY-Qk
πŸš‚ 173 AppleSoft Basic Snake Game: youtu.be/7r83N3c2kPw
πŸš‚ 174 AppleSoft Basic Fractal Tree: youtu.be/UNkHditYGls

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 (twitter.com/willfromamerica)
Eye of the Tiger cover by Leon from @neo
Additional music from from Epidemic Sound

πŸš‚ Website: thecodingtrain.com
πŸ‘Ύ Share Your Creation! thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: github.com/CodingTrain/Suggestion-Box
πŸ’‘ GitHub: github.com/CodingTrain
πŸ’¬ Discord: thecodingtrain.com/discord
πŸ’– Membership: youtube.com/thecodingtrain/join
πŸ›’ Store: standard.tv/codingtrain
πŸ–‹οΈ Twitter: twitter.com/thecodingtrain
πŸ“Έ Instagram: instagram.com/the.coding.train

πŸŽ₯ Coding Challenges: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ Intro to Programming: youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

πŸ”— p5.js: p5js.org
πŸ”— p5.js Web Editor: editor.p5js.org
πŸ”— Processing: processing.org

πŸ“„ Code of Conduct: github.com/CodingTrain/Code-of-Conduct

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

#3dgraphics #1980s #appleii #matrixmath #basic
Coding Challenge: 3D on Apple II2.4: random() Function - p5.js Tutorial5.1 Autonomous Steering Agents Introduction - The Nature of CodeWhere do I get my Coding Challenge ideas?!? Q&A 1.0 #shortsLets finish the tensorflow.js Autoencoder project!5.3 Flee, Pursue, Evade - The Nature of Codeml5.js: Object Detection with COCO-SSDCoding Train Live!:  Genuary Speed Run Challenge!Face Mesh Detection with ml5.jsLava Lamp #genuary #genuary12A Banner of Unnecessary DetailExploring Transformers.js Embeddings and Other Updates
The Coding Train |

Coding Challenge: 3D on Apple II

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER