# \[papervision\] Add different image to each cube side and rotate?

**URL:** <https://forum.kirupa.com/t/papervision-add-different-image-to-each-cube-side-and-rotate/321231>\
**Category:** Uncategorized\
**Created:** [April 13, 2011, 7:15pm UTC](https://forum.kirupa.com/t/papervision-add-different-image-to-each-cube-side-and-rotate/321231 "2011-04-13T19:15:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![keitai](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@keitai](https://forum.kirupa.com/u/keitai)\
**Post date:** [April 13, 2011, 7:15pm UTC](https://forum.kirupa.com/t/papervision-add-different-image-to-each-cube-side-and-rotate/321231/1 "2011-04-13T19:15:48Z")

</div>

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

```auto
 
        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

```auto

           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
