Unable to use textures with different dimensions for skybox.

Software: Away3D 4.x

zvone, Newbie
Posted: 21 October 2011 10:08 AM   Total Posts: 7

Hi, I have this code for skybox,

var test:BitmapMaterial = new BitmapMaterial(new DIAMOND_TEXTURE().bitmapDatatruefalsefalse);
   var 
test2:BitmapMaterial = new BitmapMaterial(new UP().bitmapDatatruefalsefalse);
   
skyBox = new SkyBox(new CubeMap(test2.bitmapDatatest2.bitmapDatatest2.bitmapDatatest2.bitmapDatatest.bitmapDatatest2.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?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X