PPA 1 FAQ
- Q: I got an 'unsatisfied link error' when trying to run the code.
- A: Please try out the updated code framework. It should work automatically for 64-bit java under both Windows and Mac OS. For 32-bit java, follow the instructions
here.
(We do not officially support Linux at this point.)
- Q: What do you expect me to do for Problem 1, and how to I use the test program?
- A: Please refer to
this video.
- Q: What do you expect me to do for Problem 2?
- A: Please refer to
this video.
- Q: How do I use the modeler in Problem 3?
- A: Please refer to
this video.
- Q: What do you expect me to do for Problem 3?
- A: Please refer to
this video.
- Q: Is the height of the cone 1 or 2?
- A: The height is 2. The cone's y-extent is from y = -1 to y = 1. The height in the proble statement is a typo.
- Q: For Problem 3, how do I know what axis is being manipulated?
- A: In the Manip class, there's a field called axisMode, which takes four different values:
PICK_X, PICK_Y, PICK_Z, and PICK_CENTER. You can check the value to
see which axis or the center box is picked and being manipulated>
- Q: What GLSL special variables should I use to retrieve the normal being set by glNormal3f and the color
begin set by glColor3f?
- A: In GLSL, use gl_Normal and gl_Color, respectively. Both variables are of type vec4.
- Q: It's hard to pick the center?
- A: There is a bug. Please change line 116 in cs4621.framework.PickingController.java:
// Check for any prioritized object IDs first.
for (int i_hit = numHits - 1; i_hit >= 0; i_hit--) {
which will change the iterating order from 0->numHits - 1 to numHits - 1 -> 0.