Hi, I have this code for skybox,
var test:BitmapMaterial = new BitmapMaterial(new DIAMOND_TEXTURE().bitmapData, true, false, false);
var test2:BitmapMaterial = new BitmapMaterial(new UP().bitmapData, true, false, false);
skyBox = new SkyBox(new CubeMap(test2.bitmapData, test2.bitmapData, test2.bitmapData, test2.bitmapData, test.bitmapData, test2.bitmapData));
view.scene.addChild(skyBox);
test 2 is 1024x1024 image and test is 16x16 image, now whenever I try to use 16x16 image as a part of my skybox I get this error:
[Fault] exception, information=Error: Error #3700: A texture sampler binds an incomplete texture. Make sure to upload(). All miplevels are required when mipmapping is enabled.
I have disabled mipmaping when I created both of the textures in the constructor of test & test2.
Do you have any idea what could cause this and how to fix it?