Open nickdesaulniers opened 10 years ago
IMO web workers might be better suited as another module, perhaps using webworkify or something similar. An OBJ loader is just string parsing, and shouldn't have any ties to the browser.
This way the parser is useful for Node and other environments that use JS (like CocoonJS, AfterEffects ExtendScript).
Though this would change the interface, parsing should really be done in a separate thread so as not to block the main thread of execution. Meshes like the Stanford Dragon (~9MB) will trigger a slow script warning.