timknip/js3ds — pull request #1 by smike (2013-03-31 00:07:01+00:00)
Title: Materials and binary parsing

Hi,
Thanks so much for writing this library! It's come in really useful for me, but I needed to extend it a bit and hopefully the changes can be useful to other as well.

I've added the beginnings of parsing materials. For now I'm just getting colors but I might add more in the future.

I also started using a different library to parse binary data. I ran into bugs with BinaryParser where it didn't mask the typed data properly, so sometimes I would get a word with data in bits higher than 16. Also, jDataView tries to use native DataView objects if the browser supports them so I think it should be a bit faster.

BTW, shameless plug, but you can try my chrome extension to make looking at the diffs a bit easier. https://chrome.google.com/webstore/detail/side-by-side-diff-view-in/ihmhmdmhllhleioijdeoocgoddjckbcd or https://github.com/smike/diffhub

Thanks again!
--smike