You can make Text3Ds smaller by attaching them to a scaling transform.
But start off by using point size 1 font.

Also, text3D is much more readable if you create it with a null
FontExtrusion. That way it looks as fancy as Text3D, but it is still
basically 2d so it can be read from an angle without the thickness of
the letters obscuring them. It's also much cheaper in terms of point3ds.

The only problem is that you can only see it from the front - it's
invisible from the back because it has no rear-facing polygons.

Allan Ash wrote:

Zack,

For your second question, I just thought I'd remind you that in
Text3D, characters are displayed as one meter high per point in the
size of the font. So a 12-point font extrudes 12-meter high characters.

-Allan



    2. Text 3D problem. Code shows the basic construction of a Text3D
    object.



public TransformGroup createFileName3D() {

    Font3D font3d = new Font3D(new Font(font, Font.BOLD, 12), new
    FontExtrusion());

Text3D text3d = new Text3D(font3d, s);

Shape3D textObject = new Shape3D(text3d);

Transform3D textTranslation = new Transform3D();

    textTranslation.setTranslation(new Vector3f(tr.x - 0.5f, tr.y +
    0.1f, tr.z   + 0.5f));

        TransformGroup textTranslationGroup = new
    TransformGroup(textTranslation);

textTranslationGroup.addChild(textObject);

System.out.println("createFileName3D of" + s + " at " + tr);

return textTranslationGroup;

}



    however i failed to figure out how to change the size of the
    Shape3D object. The result output of the Text3D object was very
    huge and overlapped with the cubes and platform in the scene.




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