Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
CS293 Graphics, Lab 5, Articulated Motion
In the AP labs don't forget you need to set your environment path as in the first lab to point to a 
folder where the JOGL dll files are. Note, if you add any spaces immediately after a ';' in a path 
variable it does not work. Also, Java will not automatically detect where the files are. These labs 
are set up using NetBeans 5.0, although to the best of my knowledge they work fine with 
NetBeans 5.5.
Use a web browser (preferably Firefox or Opera) to open the web page for the course:
http://www.computing.surrey.ac.uk/courses/cs288/graphics.html
Download these files from the course web site:
● articulated_Lab005.zip
● articulated.jar
Fixing the JOGL library call
First uncompress the articulated_Lab005.zip file in your CS293 course directory, or any folder 
where you want to keep lab code. Open the folder as a project in NetBeans. You should get error 
messages at this point as the JOGL library that is referred to in the project properties does not 
exist in your installation. 
Correct the errors as you did for the previous labs by changing the JOGL library call. 
Trying The Dodgy Code.
Run the project. Once the window is open you should see something like this
Click the left mouse button and observe the strange way the code behaves. Click the right mouse 
button to stop the motion.
Next copy the articulated.jar file to a folder that contains another folder that must be called 'lib' 
and which contains the jogl.jar file. Double click articulated.jar to execute the file. This file 
contains a correct version of the project. When you run this jar file and click on the left mouse 
button you should see something like this:
As you will notice from the correct version, the boxes always keep their proportions the same, 
and the bottom of each box is always attached to the top of the previous box. 
Correct the dodgy code you have in the NetBeans project so that it runs in the same way as the 
correct jar file you downloaded.
Now make the boxes solid, and define lighting so that the scene becomes more interesting.