The scaling is rather interesting, setScale only works if it is done on the
live OrientShape3d. So you have to make it live (by adding it to the live
TG) and then do the scale. I think the "0.01" scale will be a little too
less.
I've no idea about the doubt no. 2

cheers,
nitin


-----Original Message-----
From: Alejandro Allievi [mailto:allievi@;acm.org]
Sent: Monday, November 11, 2002 12:49 AM
To: [EMAIL PROTECTED]
Subject: RE: [JAVA3D] Text3D font size


Nitin,

Thanks for the reply.

I am having some problems with the OrientedShape3D.  This is my code:

      //Create Shape3D object for axis labels
      Font3D yF3D =  new Font3D(new Font("Serif",Font.BOLD,1),new
FontExtrusion());
      Text3D yT3D = new Text3D(yF3D , "Y");
      OrientedShape3D shY = new OrientedShape3D(yT3D ,
                              new Appearance() ,
                              OrientedShape3D.ALLOW_MODE_WRITE , //I am not
sure here
                              new Point3f(0.0f,0.0f,0.0f));
      shY.setScale(0.01);
      myTransformGroup.addChild(shY);

The problems are 2:

a) the setScale() does not take effect regardless of the function argument
b) the OrientedShape does not adopt the behaviour (rotation) specified
by the Transform3D in the TransformGroup.

Do you know why this can be?

Alejandro

> -----Original Message-----
> From: Discussion list for Java 3D API
> [mailto:JAVA3D-INTEREST@;JAVA.SUN.COM]On Behalf Of Nitin.Jain
> Sent: Sunday, November 10, 2002 1:21 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA3D] Text3D font size
>
>
> Alejandro,
>
> Either put you text shape in a TransformGroup and scale it or use
> OrientShape3D.setScale. The later option also gives you a facility to make
> it uniform size, regardless the scaling of the above TGs in the hierarchy.
>
> Nitin
>
> -----Original Message-----
> From: Alejandro Allievi [mailto:allievi@;ACM.ORG]
> Sent: Monday, November 11, 2002 12:01 AM
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] Text3D font size
>
>
> Hi All,
>
> I am trying to have Text3D labels next to a set
> of Cartesian axes.  The problem I am having is that
> the text is much too large even though I am specifying
> a font size of 1 in the Font3D object(1 meter tall!).
>
> Is it possible to have the font size smaller than 1 meter.
>
> Thanks for any help.
>
> Alejandro
>
> ==================================================================
> =========
> 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".
>

===========================================================================
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".

Reply via email to