Hi,
Does anyone know if it(s possible to put some text on a cube, but avoid that the text is stretched ?
for example, if i test this code, the text is barely lisible, i’d like to have the text to its normal size, and put it on the cube, and rotate the cube for example :
private function initMaterials():void{
cubeMaterialsData = new CubeMaterialsData();
var textfield:TextField = new TextField();
textfield.text = "SavageLook.com";
textfield.setTextFormat(new TextFormat("Arial", 30, 0xff0000));
textfield.autoSize = "left";
//text_sprite = new Plane({width:TEXT_WIDTH, height:TEXT_HEIGHT});
var bmd:BitmapData = new BitmapData(textfield.width, textfield.height, true, 0x00000000);
bmd.draw(textfield);
cubeMaterialsData.front = new BitmapMaterial(bmd);
cube = new Cube({name:"cube", x:0, y:0, z:0, width:100, height:100, depth:100});
cube.cubeMaterials = cubeMaterialsData;
example on this site : http://www.adenek.com/
Thanks for your help