Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition Chapter 3.

Slides:



Advertisements
Similar presentations
GR2 Advanced Computer Graphics AGR
Advertisements

Computer Graphic Creator: Mohsen Asghari Session 2 Fall 2014.
1 Computer Graphics Chapter 8 3D Transformations.
1 Computer Graphics Chapter 2 Input Devices. RM[2]-2 Input Devices Logical Input Devices  Categorized based on functional characteristics.  Each device.
The View Frustum and the Camera Lecture 19 Fri, Oct 10, 2003.
Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition Chapter 4.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Projections II Week 4,
Projection Matrices CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
Projection Matrices Ed Angel
Foundations of Computer Graphics (Spring 2010) CS 184, Lecture 5: Viewing
©Brooks/Cole, 2001 Chapter 8 Arrays. ©Brooks/Cole, 2001 Figure 8-1.
4.1si31_2001 SI31 Advanced Computer Graphics AGR Lecture 4 Projection Clipping Viewport Transformation.
OpenGL (II). How to Draw a 3-D object on Screen?
CS 4731: Computer Graphics Lecture 11: 3D Viewing Emmanuel Agu.
Introduction to OpenGL Pipeline From Programmer View Tong-Yee Lee.
CHAPTER 7 Viewing and Transformations © 2008 Cengage Learning EMEA.
12.1 Si23_03 SI23 Introduction to Computer Graphics Lecture 12 – 3D Graphics Transformation Pipeline: Projection and Clipping.
Chapter 13 Section 13.1 Rectangular Space Coordinates.
GLWidget Description Jason Goffeney 3/8/2006. GLWidget The GLWidget class extends the Qt QGLWidget. The QGLWidget is a Qt Widget that happens to have.
The Viewing Pipeline (Chapter 4) 5/26/ Overview OpenGL viewing pipeline: OpenGL viewing pipeline: – Modelview matrix – Projection matrix Parallel.
Buffers Textures and more Rendering Paul Taylor & Barry La Trobe University 2009.
2 COEN Computer Graphics I Evening’s Goals n Discuss the mathematical transformations that are utilized for computer graphics projection viewing.
Glut Coordinate System Used in keyboard and mouse callbacks x y w h [window]
1 Introduction to Computer Graphics SEN Introduction to OpenGL Graphics Applications.
Computer Graphics I, Fall 2008 Introduction to Computer Graphics.
Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition Chapter 2.
Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition Chapter 6.
OpenGL The Viewing Pipeline: Definition: a series of operations that are applied to the OpenGL matrices, in order to create a 2D representation from 3D.
OpenGL Viewing and Modeling Transformation Geb Thomas Adapted from the OpenGL Programming Guidethe OpenGL Programming Guide.
University of North Carolina at Greensboro
Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition Appendix A.
Basic Perspective Projection Watt Section 5.2, some typos Define a focal distance, d, and shift the origin to be at that distance (note d is negative)
1 Graphics CSCI 343, Fall 2015 Lecture 6 Viewing, Animation, User Interface.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 5: Viewing
Viewing and Projection
Programming with OpenGL Part 2: Complete Programs Ed Angel Professor of Emeritus of Computer Science University of New Mexico.
Programming with OpenGL Part 2: Complete Programs Ed Angel Professor of Emeritus of Computer Science University of New Mexico.
Many of the figures from this book may be reproduced free of charge in scholarly articles, proceedings, and presentations, provided only that the following.
Viewing and Projection
Coordinate Systems Lecture 1 Fri, Sep 2, The Coordinate Systems The points we create are transformed through a series of coordinate systems before.
Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition Chapter 13.
Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition Chapter 21.
On to 3D Introduction to Computer Graphics and Animation (Principle of Computer Graphics) Rattapoom Waranusast.
Some Notes on 3-D Glenn G. Chappell U. of Alaska Fairbanks CS 381 Lecture Notes Friday, October 24, 2003.
GEOMETRY CHAPTER 11 SUMMARY. Three-dimensional figures, or solids, can be made up of flat or curved surfaces. Each flat surface is called a face. An edge.
Computer Graphics I, Fall Programming with OpenGL Part 2: Complete Programs.
Viewing. Classical Viewing Viewing requires three basic elements - One or more objects - A viewer with a projection surface - Projectors that go from.
Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition Chapter 14.
University of North Carolina at Greensboro
CSE 167 [Win 17], Lecture 5: Viewing Ravi Ramamoorthi
3D Computer Graphics (3080/GV10) Week 5-6 Tutorial 3
2D Viewing Pipeline.
Projections and Normalization
Introduction to Computer Graphics with WebGL
Class 1: First Program.
CSC4820/6820 Computer Graphics Algorithms Ying Zhu Georgia State University View & Projection.
Isaac Gang University of Mary Hardin-Baylor
Project 1: Into Space! CG Concepts Needed
Projection in 3-D Glenn G. Chappell
Projections and Hidden Surface Removal
Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition Chapter 9.
Introduction to Computer Graphics
Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition Chapter 8.
Introduction to Computer Graphics with WebGL
Viewing (Projections)
Computer Graphics 3Practical Lesson
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2016
Transformation Back-face culling View frustum culling
Chapter 3 arrays of vertices vertex arrays display lists drawing text
Presentation transcript:

Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition Chapter 3

*Bug in text – Fig. 3.1(b) should be wireframe. Figure 3.1: Screenshots of squareAnnulus1.cpp*.

Figure 3.2: Square ann- ulus (z coordinates all 0).

Figure 3.3: Screenshot of squareAnnulusAnd- Triangle.cpp.

Figure 3.4: Logical representation of data in vertex arrays.

Figure 3.5: Screenshot of squareAnnulusVBO.cpp.

Figure 3.6: Screenshot of helixList.cpp.

Figure 3.7: Screenshot of multipleLists.cpp.

Figure 3.8: Bitmapped versus stroke text.

Figure 3.9: Screenshot of fonts.cpp.

Figure 3.10: Screenshot of mouse.cpp.

Figure 3.11: Mouse event coordinates (x, y).

Figure 3.12: Screenshot of menus.cpp.

Figure 3.13: Screenshot of lineStipple.cpp.

Figure 3.14: (a) Line stipple specified by glLineStipple(1, 0x5555) (b) Line stipple specified by glLineStipple(5, 0x5555).

Figure 3.15: Screenshot of canvas.cpp.

Figure 3.16: Wireframe FreeGLUT objects.

Figure 3.17: A clipping plane clipping a plane in half.

Figure 3.18: Screenshot of clippingPlanes.cpp.

Figure 3.19: Screenshot of sphereInBox1.cpp with a corner clipped off.

Figure 3.20: Clipping a sphere to make a hemisphere: the clipped half is computed and suppressed.

Figure 3.21: Viewing frustum created by gluPerspective(fovy, aspect, near, far).

Figure 3.22: Section by the yz-plane (i.e., x = 0 plane) of the viewing frustum (bold) created by glFrustum(-5.0, 5.0, -5.0, 5.0, 5.0, 100.0).

Figure 3.23: Screenshots of hemisphere.cpp with the window squished and the projection statement (a) glFrustum(-5.0, 5.0, -5.0, 5.0, 5.0, 100.0) and (b) gluPerspective(90.0, (float)w/(float)h, 5.0, 100.0).

Figure 3.24: Viewport specified by glViewport(x, y, w, h).

Figure 3.25: Screenshot of viewports.cpp.

Figure 3.26: Screenshot of windows.cpp.