home..

Week 12 - Interface and Application Programming

group page // repo source files // objectives

Contents

hero >

threejs >

threejs is pretty cool! 3d in the browser.

I had a chat with my favorite gpt and after some iteration, arrived at a webapp that displays a rotating cube (the hello world of three.js), which changes color upon receiving enter keystrokes from a accompanying python script.

behold, my advanced color-changing cube, controlled by physical input from microcontroller (soon).

video demonstrating a local webserver (static_server.py) with a three.js script receiving updates via socket connection from color_handler.py

the next logical step is to port some of this code over to micropython, and substitute the enter keystroke with something from inputs week.

I tried getting a bit fancier with the three.js script to load a gltf file of my final project, but ended up running into some issues with the script.

the model being displayed in various mediums; clearly the file itself is fine

© 2023 Alan Han   •  Powered by Soopr   •  Theme  Moonwalk