Already replied in the forums. Please don't post in both places unless you've gone a significant amount of time without an answer in one place.
Forum post for reference: http://away3d.com/forum/viewthread/606/#When:17:34:58Z Cheers /R On Aug 28, 7:41 pm, Erroll <[email protected]> wrote: > 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 then > rotate the cube for example : > > [code]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; > [/code] > > Thanks for your help
