I've tried it and it works... BUT I didn't change any of the UV mapping script, and it seems to work fine, so... what is wrong? I also don't have to do a single render...
Declan On Dec 9, 9:55 pm, 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.
