From: Anthony.Fusco@peoples.com
The following are steps to help get the TextureTest Java3D demo to
work:
Download and install java3D from the javasoft.com site and copy an
image
into: C:\JDK1.2.2\demo\java3d\texturetest, you can use earth.jpg from:
C:
\JDK1.2.2\demo\java3d\Images
1. Open CodeWarrior and choose File-New and select Java Stationery
2. Expand JDK2 and choose Java Application
3. Type in a name for the project, ex: Java3D
4. Open Windows Explorer and in the C:\JDK1.2.2\jre\lib\etx folder,
drag
and drop the following files into the CLASSES folder in your project
in
CodeWarrior: j3daudio.jar, j3dcore.jar, j3dutils.jar, vecmath.jar and
iiimp.jar
5. Locate the TextureLoad.java file and drag and drop it into the
SOURCE
folder in Code Warrior. This should be found in the folder: C:
\JDK1.2.2\demo\java3d\texturetest
6. Be sure to chage the "main" to match the name of your project (ex:
TrivialApplication)
7. Select the "Targets" tab and double-click on "Trivial Application"
8. Select Target settings andconfirm the Target Name = The project
name
(ex: TrivialApplication)
9. Select File mappings:
Click "Choose"
Browse to folder:C:\JDK1.2.2\demo\java3d\texturetest which
contains
the image you will use.
Click Open
Click Add
Click Save
10. Select Java Target
Target Type = Application
VM Arguments= -Dj3d.sharedctx=false
Main Class=(This should be the name you gave to the main class.
Ex:
Java3D)
Parameter=Imagef File (Ex: Earth.jpg)
11. Save, Compile, Run and cross-your fingers.
If you have any problems, let me know and I'll help you as best I can!
Good Luck!
Tony
Note: I used the default location for the install of Java and Java3D.
People's Bank
Information Systems
(203)
|