Objects dont load.

Software: Away3D 4.x

Apollo Meijer, Newbie
Posted: 18 April 2012 07:25 PM   Total Posts: 3

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_COMPLETEonAssetComplete);
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 020i++) 
   
{
    
var a:Head = new Head(); //the class loading my object (extends ObjectContainer3D).
    
a.= (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

 

   

Apollo Meijer, Newbie
Posted: 19 April 2012 05:12 PM   Total Posts: 3   [ # 1 ]

fixed already.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X