From 45d3d32957a9172077e05ab344c5607bde87447c Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Fri, 21 Oct 2011 11:20:14 +0800 Subject: [PATCH] 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 --- scene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.20.1