Hi, i do not have enough experience on this but i think you will need lights
defined to see this text, may be ambientLight or directionalLight and set
their setInfluencingBounds and also add the lights to the branchgroup. this
a snippet that i have,
Font3D font3d = new Font3D(new Font("TestFont", Font.PLAIN, 1),new
FontExtrusion());
Appearance appearance1 = new Appearance();
Material material1 = new Material();
material1.setAmbientColor(new Color3f(1.0f,0.0f,0.0f));
material1.setDiffuseColor(new Color3f(0.5f,0.0f,0.0f));
appearance1.setMaterial(material1);
Text3D text3D1 = new Text3D(font3d, new String("CLICK1"),new
Point3f(0.0f, -1.0f, 0.0f),Text3D.ALIGN_CENTER,Text3D.PATH_RIGHT);
Shape3D shape3D1 = new Shape3D(text3D1,appearance1);
shape3D1.setCapability(Shape3D.ALLOW_APPEARANCE_READ);
appearance1.setCapability(Appearance.ALLOW_MATERIAL_READ);
material1.setCapability(Material.ALLOW_COMPONENT_READ);
material1.setCapability(Material.ALLOW_COMPONENT_WRITE);
hope that helps,
Isaac
-----Original Message-----
From: Guang Bin Liu
To: [EMAIL PROTECTED]
Sent: 2/7/03 2:25 AM
Subject: [JAVA3D] Help Please
Hi Friends:
I have been struggling with this problem for more than one week without
any luck. I have to seek your kind help!
Attached is an example file using Immediate mode. What I want is to add
a text on the screen. But no matter what I did, I could never see the
text. With the same method of displaying text, I was successful in
other mode. Could any one please give me a hand about:
1. How I can display an text in immediate mode?
or
2. Is there any other method of display text in immediate mode?
Thank you!
G.B. Liu
<<PureImmediate.java>>
===========================================================================
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".