made little misstyping
var textfield3d:TextField3D = new TextField3D("Impact");
should be var textfield3d:TextField3D = new TextField3D("Arial"); if
you have Arial embeded in the swf of course...Fabrice On Sep 30, 5:16 pm, Fabrice3D <[email protected]> wrote: > Not sure what's the issue here, but I have the feeling you go for the > most complex of the 3 options I gave to you :) > > so I'll try here walk you through the process... > > k, first make fla, make a textfield, type arial in it, on textfield > props panel , select embed fonts, like 114 chars > then compile this swf and name it extrusionfonts.swf and place it in a > map relative to your project, say "fonts" > > first import the required tools to extract the vector data from the > fonts > import wumedia.vector.*; > import now the textfield3d class > import away3d.primitives.TextField3D; > > In your code embed your font swf > [Embed(source="fonts/extrusionfonts.swf", mimeType="application/octet- > stream")] > public var FontBytes:Class; > > [..] code as usual > > then call this example of method > > private function make3DTextfield():void > { > VectorText.extractFont(new FontBytes(), null, false); --> data is > extracted here > var textfield3d:TextField3D = new TextField3D("Impact"); > textfield3d.material = new ColorMaterial(0xFFFFFF); > textfield3d.text = "hello awaytext"; > textfield3d.align = "center"; > textfield3d.size = 150; > textfield3d.textWidth = 2000; > textfield3d.y = -800; > textfield3d.z = 200; > textfields.ownCanvas = true; > view.scene.addChild(textfields); > > } > > I hope this will help you. > again, movieclipsprite and sprite2d are also good 2d options. > in case you have font issues there, then it would be more a flash/as3 > issue in general than away3d issue... > > Fabrice > > On Sep 30, 2009, at 4:45 PM, GBear wrote: > > > > > > > Hi Fabrice > > > Sorry to be a pain, but three hours wasted! > > > I open Basic_Text.fla and it works but after I copy and paste the text > > relevant lines into my own fla i get: > > > ERROR missing Arial font > > > I've checked every setting I can think of, copied the font component > > from the Basic fla library to my own library, still nothing. > > > and changing the font doesn't help. > > > Googled, scrolled through the whole src, nothing, the only font I > > found is in papervision folder. where are they in Away3D? > > > Thanks in advance! > > > On Sep 30, 4:23 pm, GBear <[email protected]> wrote: > >> Thanks Fabrice, I'm sure this will save me time looking in the wrong > >> places. > > >> Cheers. > > >> On Sep 30, 3:37 pm, Fabrice3D <[email protected]> wrote: > > >>> Hi GBear, > >>> This can be very easyly achieved using either sprite2D or > >>> MovieClipSprite class > >>> Look in "sprites" package. > > >>> All you need to do is to make an instance sprite or movieclip with a > >>> nested textfield, pass it to the class and add it to the scene. > > >>> Textfield3D is also another option. > > >>> Fabrice > > >>> On Sep 30, 2009, at 2:28 AM, GBear wrote: > > >>>> Thanks Fabrice. > > >>>> I uploaded Africa dimension which is a screen shot from blender > >>>> with a > >>>> photoshop layer with the text as an example. > > >>>> Ultimately its more important to get quite precise placement of the > >>>> text than any fancy text effects. At times it would need to be "on" > >>>> the object, at other times to the side or off of it. > > >>>> I just plan to use simple paint artwork for the main bitmap for the > >>>> objects. > > >>>> For now I have been thinking of a transparent plane with just the > >>>> relevant text as bitmapmaterial that I would place next to my > >>>> object, > >>>> that should work shouldn't it? I'm still new to this all in case > >>>> you > >>>> hadn't noticed. > > >>>> Cheers > > >>>> On Sep 29, 11:26 pm, Fabrice3D <[email protected]> wrote: > >>>>> I want first have a finished v1 (still some issues to be fixed) > >>>>> before add more functionality. > > >>>>> There are some plans for v2. That a text layer/edit tool might > >>>>> land > >>>>> in > >>>>> it... > >>>>> who knows :)) > > >>>>> for now, they is a uveditor in prefab, that allows you to export > >>>>> the > >>>>> map with the vertices drawn for you, it could help you make the > >>>>> edits > >>>>> in photoshop for instance. If you would post some image that > >>>>> explains > >>>>> a bit better what you want to do, I might be able be more helpful. > > >>>>> Fabrice > > >>>>> On Sep 29, 2009, at 3:04 PM, GBear wrote: > > >>>>>> Hi Fabrice > > >>>>>> Just downloaded Prefab and its a great tool thanks, you are doing > >>>>>> brilliant work... now for a little wish? > > >>>>>> I need to apply text data, as in dimensions for an object, except > >>>>>> its > >>>>>> pretty damned irregular, not a simple geometric shape. > > >>>>>> Any chance of attaching some text editor to write a layer over or > >>>>>> onto the UV map or something? Although even that could be tricky. > > >>>>>> I'm using Blender and using text there is quite cumbersome and > >>>>>> ultimately I would like placement to be quite accurate but > >>>>>> keeping > >>>>>> it > >>>>>> simple too. > > >>>>>> Any suggestions about the best route to follow for now. > > >>>>>> Thanks in advance. > > >>>>>> On Sep 29, 12:01 am, Fabrice3D <[email protected]> wrote: > >>>>>>> those #$%^&* Dae files... > > >>>>>>> Try export as wavefront obj. Since you want to export as as3 > >>>>>>> in the > >>>>>>> end it's not a big problem. > >>>>>>> Since I have no Max to test, can you send me offline this file? > >>>>>>> Make > >>>>>>> sure that all geometry is triangulated and that textures are in > >>>>>>> there. > > >>>>>>> Fabrice > > >>>>>>> On Sep 28, 2009, at 5:54 PM, Michael Iv wrote: > > >>>>>>>> I run into a problem loading DAE into your editor.Actually no > >>>>>>>> DAE > >>>>>>>> exorted from 3dsMax 9 shows in the viewport after the import. > > >>>>>>>> Thanks > >>>>>>>> On Mon, Sep 28, 2009 at 5:37 PM, Fabrice3D > >>>>>>>> <[email protected]> > >>>>>>>> wrote: > > >>>>>>>> Hi all, > >>>>>>>> Just uploaded a little update for PreFab3D. > >>>>>>>> Since you guys love Away3DLite, it was of course a must to > >>>>>>>> export to > >>>>>>>> this speed demon :) > > >>>>>>>> more fixes, doc, updates will follow... > > >>>>>>>> btw, if you guys make some nice renderings and I'm sure you do. > >>>>>>>> Please send me screenshots and send them to me > >>>>>>>> I want add a little gallery on the app page... > > >>>>>>>> Fabrice- Hide quoted text - > > >>> - Show quoted text -
