|
Hi Evert One:
Does any one know where I can get the file called Java3Dtree (generated by
Tornadolabs). I can find the website of Tornadolabs, but could not get the
J3dtree.zip
My Another question is, in the following codes, how I can
generate a Shape3D object which contains a Text2D with more than one
lines of words? (The following example only displays one line). I need to
generate a single Shape3D which displays more than one lines.
Text2D text2d = new
Text2D("A Short Break of 30
Seconds",
new Color3f(0.9f, 0.3f, 0.5f), "Helvetica", 20, Font.BOLD); Appearance textAppear =
text2d.getAppearance();
QuadArray qa = new QuadArray(4, QuadArray.COORDINATES | QuadArray.TEXTURE_COORDINATE_2| QuadArray.COLOR_3); qa.setCoordinate(0, new Point3f(-3.0f, 2.0f, -5.0f)); qa.setCoordinate(1, new Point3f(-3.0f, 1.3f, -5.0f)); qa.setCoordinate(2, new Point3f( 4.0f, 1.3f, -5.0f)); qa.setCoordinate(3, new Point3f( 4.0f, 2.0f, -5.0f)); qa.setTextureCoordinate(0, new Point2f(0.0f, 1.0f)); qa.setTextureCoordinate(1, new Point2f(0.0f, 0.0f)); qa.setTextureCoordinate(2, new Point2f(1.0f, 0.0f)); qa.setTextureCoordinate(3, new Point2f(1.0f, 1.0f)); Shape3D shape=new
Shape3D(qa, textAppear);
Thank you!
Guang Bin Liu
VTHRC, University of Queensland |
Title: Network Blitz
- Re: [JAVA3D] question about J3dtree and text2D GB Liu
- Re: [JAVA3D] question about J3dtree and text2D Elisabeth Thorsen
