To all others experimenting with this, everything works fine, just use these
guidelines:
No need to use the generateText() method.
If you dont see the text, try setting different text sizes to it. Some times
the vector data in the font comes super scaled, so, the glyfs are all placed
outside of the clipping rectangle. Move around with the camera and make sure
the reason you're not seeing it isnt that you're sopposed to not see it,
instead of assuming something is wrong with the feature. I've made tons of
tests with it.
The current ttf parser cant handle every possible font for now, so if you
dont have luck with the ttf file, use the Five3d flash panel to generate
your font. Instructions on how to use it are on the site.
The extrude method in TextField3D and any other Sprite3D is intended to be
used only once. Each time its run it generates a bunch of extrusion shapes.
If you want to animate or tween extrusions, instead use the .extrusionDepth
property for every shape in a Sprite3D or TextField3D.
On the mean time, ill be here to help anyone who wants to try this out.
Cheers,
Li
On Fri, Dec 5, 2008 at 12:02 PM, Li <[EMAIL PROTECTED]> wrote:
> Hey Darcey,
>
> Sorry for the trouble you're having here. All this is still experimental,
> thats why it is still a branch!
>
> Try using _textfield.generateText();
> before adding it to the scene.
>
> If this still dont work, IM me at [EMAIL PROTECTED] and ill help you
> get it running.
>
>
> On Fri, Dec 5, 2008 at 11:04 AM, Darcey Lloyd <[EMAIL PROTECTED]>wrote:
>
>> Hi,
>>
>> Have created new project with 2 classes.
>>
>> Arial.as (copy and paste from away3d site source on textfield3d)
>> and TextTest.as which contains.
>>
>> Import Arial;
>>
>> var _textfield:TextField3D = new TextField3D("Test",Arial,{textSize:40});
>> _textfield.material = new ColorMaterial(0xFFFFFF);
>> _textfield.extrudeMaterial = new ColorMaterial(0x333333);
>> _textfield.extrude(10);
>>
>>
>> Full source code at:
>> Click here to see
>> files<http://www.allforthecode.co.uk/development/index.php?folder=away3d%2Ftextfields%2Fsrc>
>>
>> and to preview that code running click
>> here<http://www.allforthecode.co.uk/development/away3d/textfields/bin-debug/TextTest.html>
>>
>> I get no errors, checked that all is ok by adding a sphere, thats fine.
>>
>> I downloaded and used the svn trunk textfields.
>>
>> I think I may have to go the route of bitmaping an image of a textfield
>> and use that as a texture for a plane.
>>
>> Any ideas?
>> It's probably something small that I am just overlooking.
>>
>> Thanks
>>
>> Darcey
>>
>>
>>
>>
>>
>>
>>
>> 2008/12/4 Li <[EMAIL PROTECTED]>
>>
>> Hey,
>>>
>>> In new TextField3D("hello",theFont, {textSize:40}); theFont can be any
>>> type of parameter, that is why its format type is *
>>>
>>> This is because it can receive either a text string with an URL, or a
>>> class.
>>>
>>> When you use the class approach, you dont need to instantiate the class
>>> in an object, just pass the class itself, like this:
>>>
>>> _textfield = new TextField3D("hello", Arial, {textSize:40});
>>>
>>> Of course, the class needs to be imported if it is not in the same
>>> package as where the textfield is being created.
>>>
>>> Perhaps this is not clear and I need to make a tutorial about this...
>>>
>>
>>
>