fabric-engine/JSSceneGraph — pull request #125 by phtaylor (2012-02-01 20:06:11+00:00)
Title: Unifying parser interfaces

@ Jerome:

The collada parser was 'synchronous', which was fine when we were loading small files, but not when loading big files like I have started doing.

The alembic interface was very confusing. In fact, it didn't make sense to call parseAlembic, just to get an AlembicLoad node, so I modified the parser to work like the others, but also in the actual demos, I construct the AlembicLoad node directly.

The way we were handling asynchronously loading OBJ files no longer matched anyting else, so I made it work the same.

e.g.

with this change, all parsers take 3 parameters, (url, options, callback).
This makes it work a lot more like the basic HTTL request system.