dmarcos / aframe-motion-capture-components

Capture entity motions and replay them on other entities
http://swimminglessonsformodernlife.com/aframe-motion-capture-components/
MIT License
132 stars 31 forks source link

provide methods to compress and deflate the JSON data #33

Open ngokevin opened 7 years ago

ngokevin commented 7 years ago

Looking into how best to do this (GZIP/binary/etc), but a raw 15-20 second recording with a camera and two hands is 2MB. For uploading to services like myjson.com or rawgit.com, their maximum is around 1MB. Also nice to compress them to be easily stored within GitHub pages.

The replayers should also be able to detect whether the data is passed via JSON or some compressed format and automatically deflate.

I see there's some code for a binary option in the components, but doesn't look like it's being used or is active.

ngokevin commented 7 years ago

Perhaps I can use uploadcare instead of myjson, just need a key.