Você está na página 1de 12

PROJECT 2 1

JOGL - Project 2
Dylan Veraart
CMSC 405 7980 Computer Graphics (2192)
Professor: Lauren King
4/14/2019
PROJECT 2 2

Compile Settings
Compiled with jdk1.8.0_111 in NetBeans IDE 8.2 and exported with NetBeans

Test Plan
Returned
Case Input Expected Result Expected
Result?

1 Compile and run Gui window displaying a ✓


program 640x480 image of a black
and white, bisected, and
unrealistically lit pyramid with
two “people” represented by
a properly lit sphere and
cylinder in front of the
pyramid over a sand-colored
background. The pyramid
does not have calculated
normal vectors whereas the
sphere and cylinder are
GLUT objects and do have
correct normal vectors for
proper lighting.

2 Recompile program Pyramid base from the ✓


commenting out later finished scene is shown
steps to isolate code alone from the correct angle
which rotates 25 though not scaled properly
degrees with a yet
(0.4,1,0) vector draw
the polyhedron of the
pyramid base and load
the identity
transformation to reset
the scene. Run the
program.

3 Recompile program Pyramid base and apex from ✓


commenting out later the finished scene is shown
steps to isolate code from the correct angle
which builds on the though not scaled properly
previous test (except yet
PROJECT 2 3

for loading the identity


transformation) and
then translates the
pyramid base down
0.53033, and draws
the pyramid apex
above the base. It
finally loads the
identity transformation
to reset the scene.
Run the program.

4 Recompile program Pyramid base, apex, and ✓


commenting out later cylinder of one person from
steps to isolate code the finished scene is shown
which builds on the from the correct angle
previous test and then though not scaled properly
scales down the yet
pyramid (.5, .5, .5),
translates the image
(.3, -.6, 4), and rotates
it -90 degrees around
the vector (1,0,0). It
then draws a blue
cylinder and finally
loads the identity
transformation to reset
the scene. Run the
program.

5 Recompile program Pyramid base, apex, and ✓


commenting out later cylinder and sphere of one
steps to isolate code person from the finished
which builds on the scene is shown from the
previous test (except correct angle though not
for loading the identity scaled properly yet
transformation) and
then rotate the image
90 degrees around the
vector (1,0,0) (to undo
the previous rotation)
and translate the
image (0, 0.3, 0). It
then draws a magenta
sphere and finally
loads the identity
transformation to reset
PROJECT 2 4

the scene. Run the


program.

6 Recompile program Pyramid base, apex, cylinder ✓


commenting out later and sphere of one person,
steps to isolate code and cylinder of another from
which builds on the the finished scene is shown
previous test (except from the correct angle
for loading the identity though not scaled properly
transformation) and yet
then translate (.3, -.3,
0) and rotate -90
degrees about the
vector (1,0,0). It then
draws a green cylinder
and finally loads the
identity transformation
to reset the scene.
Run the program.

7 Recompile program Pyramid base, apex, cylinder ✓


commenting out later and sphere of one person,
steps to isolate code and cylinder and sphere of
which builds on the another from the finished
previous test (except scene is shown from the
for loading the identity correct angle though not
transformation) and scaled properly yet
then rotate 90 degrees
about the vector
(1,0,0) and translate
(0, .3, 0). It then draws
a magenta sphere and
finally loads the
identity transformation
to reset the scene.
Run the program.

8 Recompile program Image should be identical to ✓


leaving out no steps test 1
and build on the
previous test and then
scale the image (1.3,
1.3, 1.3). Run the
program
PROJECT 2 5

Test Case Pictures

Figure 1. Test Case #1 and #8


PROJECT 2 6

Figure 2. Test Case #2


PROJECT 2 7

Figure 3. Test Case #3


PROJECT 2 8

Figure 4. Test Case #4


PROJECT 2 9

Figure 5. Test Case #5


PROJECT 2 10

Figure 6. Test Case #6


PROJECT 2 11

Figure 7. Test Case #7


PROJECT 2 12

References

JogAmp.org. (2015) JOGL (Version 2.3.2) [Computer software] Retrieved from


http://jogamp.org/
Eck D.J. (2018) JoglStarter.java (Version 1.2) [Computer program] Retrieved from
http://polaris.umuc.edu/~jroberts/CMSC405/source/jogl/JoglStarter.java

Você também pode gostar