Fun with Emscipten, Crunch, and DXT
Or: Craziness Compiling C++ into Javascript

Problem: Textures use too much GPU memory
Solution: DXT!
Problem: Loading JPG and then encoding to DXT in Javascript is slow
Solution: Crunch!
Problem: Need to write Crunch decoder in Javascript.
Solution: Emscripten!

http://www-cs-students.stanford.edu/~eparker/files/crunch/decode_test.html

This is a fun little project I've done over the past week.

Thanks to +Rich Geldreich, +Colt McAnlis, and +Travis Heppe for their help on this.
Photo
Shared publiclyView activity