Hi everyone, sorry for my english, I’m Brazilian.
I’m having trouble seeing any textField3d, in the view. I tried several ways:
// criando a 3D-viewport
cena = new Scene3D();
camera = new TargetCamera3D();
camera.z=-3000;
conteiner = new ObjectContainer3D();
View = new View3D({scene:cena,camera:camera,x:(width/2)-150, y:(height/2)-80});
//Awayy3d is a UIcomponent
Awayy3d.addChild(View);
var textfield:TextField3D = new TextField3D(“Arial”);
textfield.text=“away3d”;
textfield.size=300;
textfield.width=300;
textfield.material = new WireColorMaterial(0xFFFFFF);
textfield.x=750;
textfield.y=-750;
textfield.z=-200;
conteiner.addChild(textfield);
View.scene.addChild(conteiner);
View.scene.addChild(textfield);
cena.addChild(textfield);
I’m trying to write some names for use in a 3d chart, and eventually use addHitBox, to use to open a few infos
i cant find any problems in the code.. but the application dont show any text in the view…
update: I made some changes in the code:
like, I open a file with the style font.swf external loader to load some kind of font, and use in the creation of textfield3d
var fonts:Array = Font.enumerateFonts().sortOn(“fontName”);
for (var i:int = 0; i < fonts.length; i++)
{ var font:F
}
VectorText.extractFont(ldr.contentLoaderInfo.bytes);
var textfield:TextField3D = new TextField3D(font.fontName);
and font.fontName have Motorwerk, who is a type of font… but i still seeing nothing :/