Namespace: SceneParser

SQR. SceneParser

Utility to load scenes from J3D/Unity exported JSON files.


(static) fromJSON(assets, options)

Parses the J3D JSON scene data format and creates a SQR.Buffer out of it.
Name Type Description
assets Object The assets loaded with SQR.Loader or otherwise. This method will expect to find all the 3 exported files in there, named 'scene', 'mesh' and 'anim'. Alternatively a prefix can be provided in the seconds, options argument.
options Object Options on how to parse the scene.