Hi,
I am having problems with adding images to a cube. I like to have a specific image on the bottom and when turned show the image
bmp = new BitmapFileMaterial("../lib/logo.jpg");
bmp.smooth = true;
matListBmp = new MaterialsList({
front:new ColorMaterial(Math.random()*0xffffff),
back:new ColorMaterial(Math.random()*0xffffff),
left:new ColorMaterial(Math.random()*0xffffff),
right:new ColorMaterial(Math.random()*0xffffff),
top:new ColorMaterial(Math.random()*0xffffff),
bottom:bmp
})
cube= new Cube(matListBmp, 300, 300, 300);
and i turns out like swfA
bldd.nl/prototypes/swfA.swf
and this
bmp = new BitmapFileMaterial("../lib/logo.jpg");
bmp.smooth = true;
matListBmp = new MaterialsList({
front:new ColorMaterial(Math.random()*0xffffff),
back:bmp,
left:new ColorMaterial(Math.random()*0xffffff),
right:new ColorMaterial(Math.random()*0xffffff),
top:new ColorMaterial(Math.random()*0xffffff),
bottom:new ColorMaterial(Math.random()*0xffffff)
})
cube= new Cube(matListBmp, 300, 300, 300);
looks like
bldd.nl/prototypes/swfB.swf
3/ how do i embed the logo during export to swf??
regards