Away3D 4 : Apply a texture for each face of cube

Software: Away3D 4.x

pol2095, Newbie
Posted: 31 December 2011 09:51 AM   Total Posts: 1

Hello,

i try to assign a texture for each face of cube but but the texture doesn’t appear

var bmd1:BitmapData = new Mr1().bitmapData;
var 
bmd2:BitmapData = new Mr2().bitmapData;
var 
bmd3:BitmapData = new Mr3().bitmapData;
var 
bmd4:BitmapData = new Mr4().bitmapData;
var 
bmd5:BitmapData = new Mr5().bitmapData;
var 
bmd6:BitmapData = new Mr5().bitmapData;
var 
cubeMap:CubeMap = new CubeMap(bmd4bmd2bmd5bmd5bmd1bmd3);
var 
mat:SkyBoxMaterial = new SkyBoxMaterial(cubeMap);
_cube = new Cube(mat8070705,55false);
addChild(_cube); 

Thanks

   

Avatar
jansensan, Newbie
Posted: 03 January 2012 08:35 PM   Total Posts: 16   [ # 1 ]

I had written a blog post about adding a texture to a cube a while back when I had difficulties: http://jansensan.net/apply-a-texture-on-a-cube-in-away3d-4-0

You seem to be doing it differently though, it may not help as much. Also, keep in mind that since I wrote that the code might have changed.

Best of luck!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X