Shared publicly  - 
 
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.
5
11
Vincent Scheib's profile photoBrandon Jones (Toji)'s profile photoJose Luis Hidalgo's profile photoBrad Jones's profile photo
3 comments
 
Very nice, now we need a dart version of it !
Add a comment...