Ok, its online.
It will be limited for the time being, but I guess it will help you out
anyways.
Perhaps if there are minor things you need, don't hesitate to tell me.
Usage is something like this:
[Embed(systemFont="Arial", fontName="_Arial",
mimeType="application/x-font")]
public var Arial:Class;
Font.registerFont(Arial);
VectorText.extractFont(root.loaderInfo.bytes);
var textfield:TextField3D = new TextField3D("_Arial",
{textColor:0xFF0000, text:"Hey", size:200, leading:20, kerning:0,
textWidth:1000, align:"TL"});
textfield.x -= textfield.objectWidth/2;
textfield.y += textfield.objectHeight/2;
_scene.addChild(textfield);
On Wed, Jun 17, 2009 at 3:27 PM, Ralph Brooker <[email protected]> wrote:
> Li, I would also very much appreciate it if you could commit and explain
> your dynamic vector text capability! We are developing materials teaching
> topics like latitude, longitude, and satellite orbits, so the ability to
> apply 3D labels would help students better understand the concepts we are
> explaining.
>
> Thanks in advance,
> Ralph
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Li
> *Sent:* Wednesday, June 17, 2009 10:12 AM
> *To:* [email protected]
> *Subject:* [away3d] Re: What is the latest/best/simplest 3d text method to
> use?
>
>
>
> Hey,
>
> I'll commit dynamic vector text capability in away3d if you need it. Im
> still developing it, but if you think it would help i could commit it and
> shortly explain how to use it?
>
> On Wed, Jun 17, 2009 at 2:25 PM, MadMax <[email protected]> wrote:
>
>
> Thankyou for the reply.
>
> I like the globe example, very nice.
>
> I've had a go prior to asking, and sounds like the sort of thing I was
> trying to make work and couldn't get the text to sit above the objects
> and got really frustrated and abandoned my attempt at a game, for a
> month now.
>
> I want to display the numbers 0 -5 , or a ? or the words King, Queen,
> Rook , Bishop , Knight above the 3d objects and chess board. Such a
> simple concept yet it's frustrated me no end no getting desired
> result.
>
> I may want to have the text rotate while they sit above the object. I
> don't want the text to have a background.
>
> Sounds like I could have had a zsort issue.
>
> Any links to code anywhere, or is the 3d text going to be implemented
> any time soon?
>
> Cheers,
> Max
>
> On Jun 17, 9:43 pm, elguapoloco <[email protected]>
> wrote:
>
> > Personally I would consider 2 approaches.
> >
> > If the text needs to be full 3D (rotated, with perspective, etc) you
> > could just use a function to generate dynamically a bitmap with the
> > desired text and use that as a texture on a Plane or use a
> > MovieclipMaterial (if the text or sprite has animation). This was a
> > little experiment using Dynamic text + MovieMaterial + Plane:
> http://clients.stcassociates.com/stc/rss3D/index.html
> >
> > If the text just needs to z sorted and always faces the camera, I
> > would use Sprite2D to display it. The advantage of this is that the
> > user can always read the text.
>
> > This is an example of Sprite2D text in a project I am working on:
> http://clients.stcassociates.com/stc/locationsMap/demo2/STC_Locations...
>
> >
> > The base is the same in both approaches. You generate a sprite with a
> > textfield draw it into BitmapData and use that as a texture.
> >
> > There is a branch with a Type class inside Away3D but I haven't tried
> > it yet.
> >
> > Hope this helps,
> >
> > Cheers,
> >
> > Jerome.
>
>
>