I created an AWD1 file with prefab.  I can import it in and display
one my problem comes in when I try to loop through and create more or
clone.

The code below will not create a new ObjectContainer3D for some reason
and I am sorry my error might be something simple.  When I loop
through this function and push and push a model into the array and
then display it in the view all items in the array have the same x,y,z
and name.  So I am kind of perplexed.  For some reason right now I
also noticed with prefab I am having issues with export to as3 class
file.  I have done these things before and I am trying to redo an old
demo I made with away3d.

I have also tried to clone the model but this has not been successful
either.

for(var i:int = 0; i <= 100; i++){
        fishArr.push(new ObjectContainer3D());
        fishArr[i] = ObjectContainer3D(e.resource);
        fishArr[i].name = 'fish'+i;
        fishArr[i].z = randRange(-600,600);
        fishArr[i].x = randRange(-600,600);
        fishArr[i].y = randRange(-600,600);
        trace(fishArr[i]);
        _view.scene.addChild(fishArr[i] as ObjectContainer3D);
}

Original Demo might donkey punch an old processor.
http://i-create.org/actionscript/TweetTank/

I also tried to export a wavefront .obj but I ran into the same issue
that is discussed here:
http://ultravisual.co.uk/blog/2011/03/22/more-molehill-away3d-fun/

Any help on this endeavor would be greatly appreciated.  Thank you in
advance.

Reply via email to