Hi all,

Nitin, thanks for the replies before.  I am reposting my questions with
some more details.

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));
      myTransformGroup.addChild(shY);
      shY.setScale(0.01);


I am having 2 problems with the OrientedShape3D and the Text3D font size:

a) the setScale() does not take effect regardless of the value in the
function argument.
This seems to be the case whether OrientedShape3d is live or not. The
problem with
this is that the Sting "X" in the Text3D object is huge (1 meter high).
b) the OrientedShape does not adopt the behaviour (rotation) I have
specified
in the Transform3D in myTransformGroup.

Does anybody know why these things are happening?  Thanks for any help.

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