Demo Applet
My favorite class is Comp 136
I added a number of features to the rendering framework provided.
First I changed the "reset view matrix" command to be Control-Click
instead of Meta-Click. This way I opened up Meta-Click (and thus the
Right-Mouse-Button) for a FAR greater feature than view reset:
ROTATION! Yes, now, at long last we can see the glorious behind of
the Purple Cow. Go ahead, check it out; you know you want to.
So essentially, left mouse button dragging moves the viewer around,
and right mouse button rotates the model.
Also I added support for Arbitrary number of lights and Specular
reflection. Point light sources sounded interesting but they'll have
to wait for version 2.0
I'd like to note that the only significant design change I made is for
the Clipping, I changed the specs of the ClipAndDraw method a little
and implemented a recursive procedure for breaking up a given Triangle
into sub triangles (to handle the case when the clipping volume
changes the Triangle into a Quadrilateral, or worse). I know that
that isn't stricly the Sutherland-Hodgeman algorithm, but working
within the framework provided didn't invite a strict implementation of
that.
Also, I have tested this and realize that there are still problems
with the plane in the cube scene seeming to flip back and forth around
the near and far side. Although I have taken great pains to try to
fix this (even edited the cube.obj file to make the plane double
sided) Nothing seems to have fixed it completely. Is this a clipping
problem? Am I missing something?
Finally, I'd like to note that I do wish I had taken the time to
design my own version of this. I spoke briefly with one of the TAs
and he mentioned that Prof. McMillan lamented having given so much of
the design to us. I agree; so far the only project that had serious
design requirements was Project 1. But I suspect Project 5
will make up for all of that.