Hello,

The below lines of code apply a BitmapTexture to Primitives but fail
to apply BitmapMaterial to a mesh.
Any idea what I am missing with the mesh? (I tried exporting the mesh
without any material from blender but same issue, I also tried turning
on and off the .autoLoadTextures property on the loader before
exporting the mesh to a .as Class but no luck)

Thanks :-)
/////////////////////////////////////////////////////
[Embed(source="assets/images/photo.jpg")]
private var AppleImage:Class;
private var bitmapMaterial:BitmapMaterial;

//...later in the code:

bitmapMaterial = new BitmapMaterial(Cast.bitmap(AppleImage));

//...later in the code:
cube.material = bitmapMaterial; //work
sphere.material = bitmapMaterial; //works
mesh.material = bitmapMaterial; //does not work ???

Reply via email to