i'm trying this :
function initMaterials():void
{
skyboxmaterial = new BitmapMaterial( Cast.bitmap(aster) );
}
...
skybox = new Skybox6( skyboxmaterial );
skybox.quarterFaces();
scene.addChild( skybox );
and i' getting this :
ArgumentError: Error #2015: Invalid BitmapData.
at flash.display::BitmapData()
at aster()
at away3d.core.utils::Cast$/bitmap()
at Engine6_1_collada_fla::MainTimeline/initMaterials()
at Engine6_1_collada_fla::MainTimeline/init()
at Engine6_1_collada_fla::MainTimeline/frame1()
aster is a Bitmap (800x600) imported in the Library. i also tried on a
3000x2000 bitmap. intially it worked but after doing some
modifications in the code (but not altering the materials code) i get
the same error...