yes, when it comes to the addition of the model but thats one thing... If I sended you to tutorials is because you expect your code do as you want with very little definition.
in speudo code you are saying: buildview add geometry view show me geometry + materials just now but what for instance if your textures needed more than 5 millisecond to load??? what if camera looks else where? what if camera is in middle of an object and look directly thrue back faces? what is camera is just above the objects and object is really small? so the way to go is, (still in speudo code since you must learn to do it yourself ) buildview add geometry add enterfame listener onEnterframe function view show me geometry + materials so may be first render stuff isn't there yet, but chances are high they will show up once loaded. you assume also the camera is same as in Prefab, but is it really? you code should, just to be sure, define a camera position, most usefull is if beyond objects bounderies (you're sure the cam would see everything) and force it to look at a given element (because it might look the other way). here if you see in prefab the objects at center, then let camera lookat 0,0,0 Then the object itself, just add to meshes[i], the property bothsides:true. then you are also sure you do not look at an invisible side of the geometry. Prefab gives you precious infos about your object coordinates and camera coordinate (right click on scene and select camera debug) Just compare with your project camera settings. then and only then, you will be in state of analyzing what is going wrong, if anything goes wrong... and if there is indeed a problem with the exporter, you can then count on my full support. Fabrice On Feb 6, 2010, at 10:31 AM, [email protected] wrote: > I'm just about to give up. Will this do the trick? > > 2/ > import myoutputs.myClass; > [..] > > var holder:myClass = new myClass(); > > var body:Mesh = holder.meshes[0]; > var hair:Mesh = holder.meshes[2]; > var bag:Mesh = holder.meshes[6]; > > view.scene.addChild(hair:Mesh); > view.scene.addChild(body); > view.scene.addChild(bag:Mesh); > > [..] > view.render();
