I've tried John Brookes's solution and it works... BUT
1.If segments set as 1,it will work. but if not 1,it only changed one tile of one side. 2.myCube6.meterial = meterial; All sides changed as the same meterial. And then ,to get one side changed ,i have to change multiple faces material? Oncejoin On Dec 10 2010, 4:55 am, John Brookes <[email protected]> wrote: > Poorly sick n dying, so half arsed answer :p > > With lite you can set the cubes face material > > Face(Mesh(Yourcube).faces[0]).material = new > BitmapMaterial(Cast.bitmap(imgAsset)); //FRONT > Face(Mesh(Yourcube).faces[1]).material = new > BitmapMaterial(Cast.bitmap(imgAsset2)); //BACK > > BUT > The UV mapping is still cube6 style. > > So take a look at the difference between away3.6 cube.as and lites cube6 > > For example just with front/back > Cube6 in lite line 54 & 55 > _uvtData.push(1/3 - udelta - i*(1 - 6*udelta)/(3*_segmentsW), 1 - vdelta - > j*(1 - 4*vdelta)/(2*_segmentsH), 1); > > _uvtData.push(1/3 + udelta + i*(1 - 6*udelta)/(3*_segmentsW), 1/2 - vdelta - > j*(1 - 4*vdelta)/(2*_segmentsH), 1); > > change to (Little clue found in 3.6 cube.as line 175/176) > _uvtData.push( 1 - i/_segmentsW, 1 - j/_segmentsH,1); > > _uvtData.push( i/_segmentsW, 1 - j/_segmentsH,1); > > Then the front and back can be changed. > Do similar for left/right top/bottom.
