For our project we want to dynamically animate a rigged hand with Away3d 4. I believe it allows you to do that in 3.6 but we can’t figure out how to accomplish this 4.x.
_loader = new Loader3D();
_loader.addEventListener(AssetEvent.ASSET_COMPLETE, onAssetComplete);
_loader.addEventListener(LoaderEvent.RESOURCE_COMPLETE, onLoaderComplete);
_loader.load(new URLRequest('assets/skellyRig.3DS'));
if (event.asset.assetType == AssetType.MESH) {
mesh = Mesh(event.asset);
mesh.scale(100);
view.scene.addChild(mesh);
}
else if(event.asset.assetType == AssetType.MATERIAL) {
mat = ColorMaterial(event.asset);
}
I successfully load in a model with the code above but the rig(skeleton) never gets loaded. What am I doing wrong here and can anyone point me in the right direction?