G'day Don,

I can't help you with beautifying the extrusion characteristics, but the
following fragment is what I use to make a draggable Text3D object live:

Text3D valueText;
Font buttonFont = new Font("Dialog", Font.PLAIN, 6);
Font3D myFont3D = new Font3D(buttonFont,new FontExtrusion());
valueText = new Text3D(myFont3D, "0.00");
valueText.setCapability(Text3D.ALLOW_STRING_WRITE);
valueText.setCapability(Text3D.ALLOW_STRING_READ);
Shape3D valueTextShape = new Shape3D(valueText, new Appearance());

To update the text I use

valueText.setString(String newText);

The string is changing OK, but leaves bits of itself hanging around in
mid-air as I drag it with the mouse. Gets very messy very quickly. Seems to
be when the field width changes (e.g. 4 chars->5 chars wide). I'd be
interested to know if you or anybody else has seen this?

Regards,

Mike Wiese
Self-unemployed virtual world hacker
Perth, Western Australia



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Casteel,
Don
Sent: Friday, April 16, 1999 12:51 AM
To: '[EMAIL PROTECTED]'
Subject: [java3d] FontExtrusion & java.awt.Shape


(I'm trying to make a Text3D digital clock, similar to the windows screen
saver)

I'm working with Text3D objects, and am able to generate them and place them
into a world. But the extrusion is very thin, and I would like to be able to
bevel and round the edges of the characters

Can someone provide, or point me to an example of how to use the above
classes. I've been reading the spec, but just can't quite make sense of it.

I'm also having trouble figuring out how to make the Text3D live, so it can
be updated by the program. I've tried making the String reference System
time, but seem to be missing something because it doesn't change after it is
initially generated.

Thanks in advance.

Don Casteel

Manufacturing Engineer
TEXTRON Automotive Company -- Athens Operations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Voice:  (423)744-1109
        Fax:    (423)744-1112
        Pager:  (423)744-1129  -- 109
                Internet:       [EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to