slimbuck.com

home work projects about

Interactive experiments that run in your browser.

Playtracer

The image below is being generated by a very simple path tracer I wrote based on Peter Shirley's Ray Tracing in One Weekend.

It is written in C++ and compiled to WebAssembly using emscripten.

You can modify the number of samples used to generate a pixel (more samples will result in a better looking image) and the number of browser threads to use (more threads should result in faster execution) and then re-render the image. Timing is displayed in the text box below the image.

Open full screen ↗

Permalink

HASTY 3D

I wrote this simple blockout-type game and published to the Google Play Store.

Since the game is written in C++ and uses OpenGL ES 2.0, I used the magical emscripten to compile the game for the web. The result is a mostly-working version of HASTY 3D, running the browser.

This app requires Atomic support and so unfortunately does not run on Safari (and likely older browsers). Threading seems to run slowly resulting in audio clicks.

Space: drop piece q, w, e, a, s, d: rotate piece Up, down, left, right: move piece Enter: ui select

Open full screen ↗

Permalink