Hey guys!
I am new to Away3d and using this lib now for 2 weeks.
The problem i am having at this point is that when i load more then 1 OBJ object only the first will be shown in the view.
i embed my object like this.
[Embed(source="../bin/head/cube.obj", mimeType="application/octet-stream")]
protected var Model:Class;
i load my obj like this:
Parsers.enableAllBundled();
AssetLibrary.addEventListener(AssetEvent.ASSET_COMPLETE, onAssetComplete);
AssetLibrary.loadData(new Model());
the class in wich this happends extends the ObjectContainer3D and i add the mesh to this container aswell
i add this container to the view.scene.
When i do for example this.
for (var i:int = 0; i < 20; i++)
{
var a:Head = new Head(); //the class loading my object (extends ObjectContainer3D).
a.x = (Math.random() * 1000) - 500;
world.addChildToView(a); //custom class for handeling view3D
}
trace says that world.view(view3D).scene.numChildren = 20;
but my viewport only shows 1 instance of this model.
I hope someone can help me with this problem!
thanks in advance for reading this :D!!
gr Apollo