Assignments

PA4: Ray 2 (Due Tue Nov. 25)

assignment handout | test scenes (v3)

Setting up

Setup is exactly the same as for ray1. The comprehensive setup guide can be found here. Make sure you download the new test scenes, however.

In the Pipeline assignment, you probably found the Matrix4f class to be pretty useful. You'll want something similar to handle transformations for Ray 2. Here is an equivalent Matrix4 class suited to the ray.math package. Just drop it in the ray/math directory.

11/11 9pm - Version 3 of the test-scenes archive contains the XML test scenes (with two more for anti-aliasing), solution images (re-named so you don't have to worry about overwriting them), and a compare.html file to compare your renderings to the solution side-by-side. The solution renderings were done with a depth limit of 12 and an attenuation limit of 0.01. The slowest one was tableau.xml, which took almost 3 minutes. If you're doing glass, Test4-glass.xml took almost 6 minutes.

FAQ:

PA3: Pipeline (Due Tue Oct. 28)

assignment handout | framework code

Setting up & Running the framework

  1. Extract the framework ZIP file into a project root folder, so it's laid out as follows:
       <project root>
    	data/
    	dlls/
    	jars/
    	pipeline/
    
  2. Create the project in Eclipse: File -> New -> Java Project -> Choose "Create project from existing source" and set "Directory" to <project root>. Name it something, such as "pipeline".
  3. Right click on the project in the package explorer -> Build Path -> Configure Build Path… -> Java Build Path -> Libraries -> Add JARs… -> expand your project, expand "jars", highlight all three, and click OK.
  4. Make a Run configuration for MainFrame
  5. Under the Run... menu, go to the Arguments tab.
  6. In the VM Arguments pane, put the following:
       -Djava.library.path=./dlls/
    
    This tells java how to find the JOGL (Java OpenGL, pronounced "joggle") dlls it needs to run the program.

FAQ:

PA2: Modeler (Due Oct. 10th)

assignment handout | framework code | user guide

Setting up & Running the framework

  1. Extract the framework ZIP file into a project root folder, so it's laid out as follows:
       <project root>
    	dlls/
    	jars/
    	icons/
    	modeler/
    
  2. Create the project in Eclipse: File -> New -> Java Project -> Choose "Create project from existing source" and set "Directory" to <project root>. Name it something, such as "PA2".
  3. Right click on the project in the package explorer -> Build Path -> Configure Build Path… -> Java Build Path -> Libraries -> Add JARs… -> expand your project, expand "jars", highlight all three, and click OK.
  4. Make a Run configuration for MainFrame
  5. Under the Run... menu, go to the Arguments tab.
  6. In the VM Arguments pane, put the following:
       -Djava.library.path=./dlls/
    
    This tells java how to find the JOGL (Java OpenGL, pronounced "joggle") dlls it needs to run the program.

FAQ:

PA1: Ray 1 (Due Sept. 16th)

assignment handout | framework code (v.2) | sample input and images (v.2) | Eclipse guide

Note that the sample scenes are just to get you started, and they do not comprise an exaustive test of your program. You will want to devise more scenes of your own for debugging and to test additional cases.

FAQ: