Hi.
I’m new in Away and I’m trying to figure it out. I loaded a awd model into my scene with bitmaps, and all working fine. I have created some primitives as well with different materials and lights, and that’s fine as well. But I don’t know how to control awd model. When I try to access loader3d properties there is no for example .light property. How can I convert that loader3d object to mesh? I can’t controll, materials, lights ect of this kind of object.
I used:
_loader = new Loader3D();
_loader.load( new URLRequest(”../assets/model.awd”));
_view.scene.addChild(_loader);
And Ihave tried this also:
[Embed(source=”../assets/spider5/spider5.awd”, mimeType=“application/octet-stream”)]
private var MyModel : Class;
AssetLibrary.addEventListener(AssetEvent.ASSET_COMPLETE, onAssetComplete);
AssetLibrary.loadData(new MyModel());
private function onAssetComplete(event:AssetEvent):void{
if (event.asset.assetType == AssetType.MESH) {
_myModel = event.asset as Mesh;
_view.scene.addChild(_myModel);
}
}
But this one gives me an error that _myModel is null.