Thanks Francois!!
I brought the text to size by scaling, but shouldn't it work without
scaling?
that way, we won't be able to use font sizes >5 at all.
anyway, thanks for your help.
Ajit
----- Original Message -----
From: Fran�ois Savard <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 17, 2000 6:05 PM
Subject: Re: [JAVA3D] Text3D problem
> What you could do is to attach your text to a scaled TransformGroup like
this:
>
>
> > Transform3D scaleFactor = new Transform3D();
> > scaleFactor.setScale(0.1);
> > TransformGroup scale = new TransformGroup( scaleFactor );
>
> Font3D font = new Font3D(new Font("Serif", Font.PLAIN, 1), new
> FontExtrusion());
> Text3D t = new Text3D(font, new String("VRML")); //, posn, 1, 0);
>
> Appearance textApp = new Appearance();
> ColoringAttributes colorAttr = new ColoringAttributes(Red, 1);
> textApp.setColoringAttributes(colorAttr);
>
> Shape3D Name = new Shape3D(t, textApp);
>
> > scale.addChild(Name);
>
> > return scale;
>
>
>
> At 14:06 14/10/10 +0000, you wrote:
> >
> > Hello all!!!!!
> >
> > I am using a Text3D object with a font size of 1.
> > However, Java3D displays the text in a size so big, that even a four
letter
> > word cannot accomodate itself on my screen.
> >
> > This is my code. Where am i going wrong???
> >
> > Font3D font = new Font3D(new Font("Serif", Font.PLAIN, 1), new
> > FontExtrusion());
> > Text3D t = new Text3D(font, new String("VRML")); //, posn, 1, 0);
> >
> > Appearance textApp = new Appearance();
> > ColoringAttributes colorAttr = new ColoringAttributes(Red, 1);
> > textApp.setColoringAttributes(colorAttr);
> >
> > Shape3D Name = new Shape3D(t, textApp);
> > return Name;
> >
> > any help will be appreciated.
> >
> > Ajit
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff JAVA3D-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".