parseAsync method
dynamic
parseAsync(
- Map<String, dynamic> json
)
Implementation
parseAsync(Map<String, dynamic> json) async {
var animations = parseAnimations(json["animations"]);
var shapes = parseShapes(json["shapes"]);
var geometries = parseGeometries(json["geometries"], shapes);
// print(" ObjectLoader.parseAsync images1: ${json["images"]} ");
var images = await parseImages(json["images"], null);
// print(" ObjectLoader.parseAsync images2: ${images} ");
if (images != null) {
images.keys.forEach((k) {
var im = images[k];
// print(" key: ${k} data: ${im.data} url: ${im.url} ");
});
}
var textures = parseTextures(json["textures"], images);
var materials = parseMaterials(json["materials"], textures);
var object = parseObject(
json["object"], geometries, materials, textures, animations);
// var skeletons = this.parseSkeletons( json.skeletons, object );
// this.bindSkeletons( object, skeletons );
return object;
}