Hi, blue.

That's because the as3exporter didn't export any information about
material, and Away3D automatically set Wireframe+Color Material to
objects that don't have material.
You must manually give a material to your object, BitmapMaterial class
is the simple one to give a texture to your 3D object.

import away3d.materials.BitmapMaterial;

...
[Embed(source="../../../../../assets/textures/bitmap1.png")]
private const Bitmap1:Class;
...

public function init()
{
   // your initialization process
   var myMesh:Mesh = new MyAs3_3DObject();
   myMesh.material = new BitmapMaterial(new Bitmap1().bitmapData,
{ smooth:true } );  // give it material with a texture
}

On Sep 12, 12:41 am, blue <[email protected]> wrote:
> I tried loading the f360.3ds file and simply add it to the view, and
> it worked fine. But then I tried exporting it as as3
> class(as3exporter). Now when I add an instance of the class, the car
> model does show, but instead of the texture I see wireframe+color
> material, and I can't seem to be able to assign or change the material
> of the instance at all......any ideas?

Reply via email to