An otherworldly 3D scene in 16 kB of JavaScript
An otherworldly 3D scene in 16 kB of JavaScript
(trigger warning: I know HN isn't keen on anything related to crypto, and this is crypto-art.) Over the course of a couple of months this year I learned path tracing, signed distance fields, GLSL coding, and compacting JavaScript using a coding style you should never use in real life. But this all resulted in a system that can create "photo-realistic" 3D images of an otherworldly scene in 16000 bytes, no dependencies. Monte Carlo path tracing is a very interesting technique, albeit very slow to render. It still amazes me how you can get a huge amount of variation and realistic lighting from a tiny amount of code that basically simulates millions of light rays bouncing around in a mathematically defined scene with some randomness applied.
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Incorrect prediction on native model
Similar products
OpenRISC JavaScript emulator emulates up to 16 cores
Image to Explorable 3D Scene
3D Raycasting Engine in JavaScript
I made a 3D engine in JavaScript and WebGL
Promises in JavaScript
Javascript Keylogger
Ivy - Bound JavaScript
a refreshing JavaScript datepicker
Javascript constructor overloading
Sets in JavaScript