From: Ash Tyndall Date: Fri, 21 Oct 2011 03:20:14 +0000 (+0800) Subject: Fixed camera positioning, fixed lighting, added arrow points, and more X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=45d3d32957a9172077e05ab344c5607bde87447c;p=atyndall%2Fcits2231.git Fixed camera positioning, fixed lighting, added arrow points, and more * Camera code was completely redone so that it is in redraw only * Starting camera position is much nicer now * We're now using a perspective projection * Teapot was having its front faces culled because it doesn't obey the right-hand rule; fix put in place for that. * Mouse now moves and zooms camera in a way that is very similar to sample solution * The WASD controls of camera can now be zoomed with a factor, which can be increased or decreased by using - or + * Window resizing works as sample solution doeson one axis, but incorrectly zooms on another --- diff --git a/scene.c b/scene.c index 1f206f6..395a725 100644 --- a/scene.c +++ b/scene.c @@ -348,7 +348,7 @@ void display() { glPushMatrix(); glTranslatef(0.0, 0.5, 0.0); // **NOTE: Teapot currently does not rest on surface glColor3f(0.0, 0.0, 0.0); - glFrontFace(GL_CW); + glFrontFace(GL_CW); // The teapot does not obey the right-hand rule glutSolidTeapot(1); glFrontFace(GL_CCW); glPopMatrix();