Hi,
Is there a easier way to create a Sprite3D with text on it that applying bitmap on it with text? Is there something in Away3d v4 like TextField3D in previous versions?
I used:
var newText:TextField = new TextField();
newText.width = 300;
newText.text = "My dynamic text";
var txtForm:TextFormat = new TextFormat();
txtForm.color = 0xffffff;
txtForm.size = 48;
newText.setTextFormat(txtForm);
var btTxt:BitmapData = new BitmapData(1024, 1024, true, 0x000000);
btTxt.draw(newText, null, null, null, null, true);
var myTxtMat : BitmapMaterial = new BitmapMaterial(btTxt, true, false, true);
_board = new Sprite3D(myTxtMat, 128, 64);
So there is a text on my Sprite. There is a lot of steps I have to take to accomplish that. Ans still I need to fix UV for a bitmap to make it looks good (not stretch in a corner as it is now). And what if I change a text dynamicly. I have to update all that material. So my question is there a easier way to make it? And if not, can someone help me with align that text on my material to my Sprite3D