Lecture 11: Exam Revision 1  Principles of Interactive Graphics  CMSCD2012  Dr David England, Room 718,  ex 2271  Coursework.

Slides:



Advertisements
Similar presentations
Click left mouse button to proceed. Windows Tutorial CST-133 Lab W © Delta College CST Faculty This tutorial was created by R. Hoag in August.
Advertisements

Graphics Pipeline.
2 COEN Computer Graphics I Evening’s Goals n Discuss the fundamentals of lighting in computer graphics n Analyze OpenGL’s lighting model n Show.
CS 4731 Lecture 2: Intro to 2D, 3D, OpenGL and GLUT (Part I) Emmanuel Agu.
Intro to Blender Alex Hawker. First Steps Download
1 3D modelling with OpenGL Brian Farrimond Robina Hetherington.
Further Programming for 3D applications CE Introduction to Further Programming for 3D application Bob Hobbs Faculty of Computing, Engineering and.
Graphics Systems I-Chen Lin’s CG slides, Doug James’s CG slides Angel, Interactive Computer Graphics, Chap 1 Introduction to Graphics Pipeline.
Word Processing Microsoft Office: Exploring Word 2011 for MAC.
3D Rendering with JOGL Introduction to Java OpenGL Graphic Library By Ricardo Veguilla
Programming with App Inventor Computing Institute for K-12 Teachers Summer 2012 Workshop.
SE 313 – Computer Graphics Lecture 11: Projection Painting and Merging Textures Lecturer: Gazihan Alankuş 1.
SE 313 – Computer Graphics Lecture 10: More Modeling and Texturing Lecturer: Gazihan Alankuş 1.
Lecture 3: Transforms 1  Principles of Interactive Graphics  CMSCD2012  Dr David England, Room 711,  ex 2271 
Lecture 7: Objects and Interaction 1  Principles of Interactive Graphics  CMSCD2012  Dr David England, Room 718,  ex 2271 
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 19 Other Graphics Considerations Review.
CSE 380 – Computer Game Programming Introduction ITS 102 – 3D Modeling for Games Blender's User Interface.
1 iSee Player Tutorial Using the Forest Biomass Accumulation Model as an Example ( Tutorial Developed by: (
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
UniS CS297 Graphics with Java and OpenGL Introduction.
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
Image Synthesis Rabie A. Ramadan, PhD 2. 2 Java OpenGL Using JOGL: Using JOGL: Wiki: You can download JOGL from.
Microsoft Windows Vista Chapter 1 Fundamentals of Using Microsoft Windows Vista.
Lecture 8: Texture Mapping 1  Principles of Interactive Graphics  CMSCD2012  Dr David England, Room 718,  ex 2271
Computer Graphics. Requirements Prerequisites Prerequisites CS 255 : Data Structures CS 255 : Data Structures Math 253 Math 253 Experience with C Programming.
Graphics Programming using OpenGL. OpenGL is a software interface that allows the programmer to create 2D and 3D graphics images. This interface consists.
COMP 261 Lecture 16 3D Rendering. input: set of polygons viewing direction direction of light source(s) size of window. output: an image Actions rotate.
Lecture 5: Interaction 1  Principles of Interactive Graphics  CMSCD2012  Dr David England, Room 711,  ex 2271 
Visual Basic 2005 CHAPTER 2 Program and Graphical User Interface Design.
CSC 461: Lecture 3 1 CSC461 Lecture 3: Models and Architectures  Objectives –Learn the basic design of a graphics system –Introduce pipeline architecture.
Copyright © 2010 Wolters Kluwer Health | Lippincott Williams & Wilkins Introduction to Windows Chapter 2.
Lecture 9: Lighting and Shading 1  Principles of Interactive Graphics  CMSCD2012  Dr David England, Room 718,  ex 2271
Homogeneous Form, Introduction to 3-D Graphics Glenn G. Chappell U. of Alaska Fairbanks CS 381 Lecture Notes Monday, October 20,
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Ch 2 Graphics Programming page 1 CSC 367 Coordinate Systems (2.1.2) Device coordinates, or screen coordinates (pixels) put limitations on programmers and.
CD2012 Principles of Interactive Graphics Lecture 01 Introduction Abir Hussain (Rome: 6.33,Tel , Web:
Lecture 6: 3D graphics Concepts 1  Principles of Interactive Graphics  CMSCD2012  Dr David England, Room 718,  ex 2271 
XP New Perspectives on Microsoft Windows 2000 Professional Windows 2000 Tutorial 1 1 Microsoft Windows 2000 Professional Tutorial 1 – Exploring the Basics.
CE Operating Systems Lecture 3 Overview of OS functions and structure.
CSCE 121: Introduction to Program Design and Concepts, Honors Dr. J. Michael Moore Spring 2015 Set 15: GUIs 1.
Programming 3D Applications CE Displaying Computer Graphics Week 3 Lecture 5 Bob Hobbs Faculty of Computing, Engineering and Technology Staffordshire.
CIS111 PC Literacy Getting Started with Windows XP.
Computer Science Term 1, 2006 Tutorial 2 Assignment 3 – The Virtual World.
Dale Roberts Introduction to Visual Programming Dale Roberts, Lecturer Computer Science, IUPUI Department of Computer and.
1 Perception and VR MONT 104S, Fall 2008 Lecture 21 More Graphics for VR.
Introduction to Computer Graphics 1  Principles of Interactive Graphics  CMSCD2012  Dr David England, Room 711,  ex 2271 
Week 10:Rendering 1. In the last lecture we saw how to model objects and represent them as wireframe models. Wire frame models depict the outer hull of.
Program 2 due 02/01  Be sure to document your program  program level doc  your name  what the program does  each function  describe the arguments.
1 Welcome Alireza Moghaddam Humber College Lecture 1 Game 540 Alireza Moghaddam
Interactive Frequency Filtering Program Geoff Franz.
Chapters 5 2 March Classical & Computer Viewing Same elements –objects –viewer –projectors –projection plane.
Microsoft Visual Basic 2010 CHAPTER TWO Program and Graphical User Interface Design.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 4: Events Programming with Alice and Java First Edition by John Lewis.
Microsoft Office 2010 Basics
Basics of Windows 95/98/NT. Versions of Windows Windows 95 and 98 used mainly on standalone computers Windows NT used on networked computers (as in our.
What are Computer Graphics Basically anything that is on you Monitor – This includes the text that you will see Text isn’t Advanced Graphics But…. Understanding.
Improving the appearance of 3D OpenGL scenes
Design Visualization Software Introduction / Review.
Chapter 1 Graphics Systems and Models Models and Architectures.
Computer Graphics Imaging Lecture 13 and 14 UV Mapping.
Chapter 4 Financial Functions, Data Tables, and Amortization Schedules Microsoft Excel 2013.
Computer Graphics (Fall 2003) COMS 4160, Lecture 5: OpenGL 1 Ravi Ramamoorthi Many slides courtesy Greg Humphreys.
Chapter 5. Lighting Computer Graphics (spring, 2009) School of Computer Science University of Seoul.
Introduction to Computer Graphics
School of Computer Science
An Introduction to Computers and Visual Basic
An Introduction to Computers and Visual Basic
Introduction to Computer Graphics with WebGL
An Introduction to Computers and Visual Basic
Presentation transcript:

Lecture 11: Exam Revision 1  Principles of Interactive Graphics  CMSCD2012  Dr David England, Room 718,  ex 2271  Coursework deadline extended to Tuesday 4th Dec  No demo session - me your working code or submit it on disk  No compliable code submitted means no marks for the demo

Lecture 11: Exam Revision 2 This Week Exam Revision  Aims and objectives of the module  Graphics Hardware  Interactive graphics application framework  Graphics context  Transforms  Texture mapping  Lighting, Shading and Materials  Sense of Depth

Lecture 11: Exam Revision 3 Learning outcomes  Learning outcomes of the module. You should be able to: 1 Identify the hardware and software needed for Computer Graphics applications 2 Solve problems in 2D graphics and interaction 3 Develop applications using 2D graphics and 2D input devices 4 Explain the principles behind 2D and 3D graphics  The exam tests 1, 2 and 4 (and OpenGL concepts)  The coursework tested 2, 3 and 4

Lecture 11: Exam Revision 4 Graphics Hardware  In lecture 4 we looked at Graphics hardware and the handout from PCW on PC graphics cards  We looked at different display devices and how they fitted in with the display architecture of a machine  We saw how graphics performance could be improved by various techniques  We looked at the basic features of input devices for 2D and 3D graphics  We looked at the features that make a device suitable for interaction

Lecture 11: Exam Revision 5 Handling Events 1  In Lecture 5 we looked at event handling in OpenGL  Every interactive graphics program has the same model Initialise the application data and graphics environment Create the contents of the display Paint the contents of the display on a window Set-up functions to handle input events Start an infinite loop to handle input events  This is event-driven programming  I posed some questions about handling events for some items...

Lecture 11: Exam Revision 6 Handling Events 2  A scrollbar, e.g.  e.g. top arrow box  Click Left mouse button  Show arrow box depressed  Move client window up one unit  Restore arrow box  e.g. Central bubble  Press left mouse button down  Drag mouse  Move client window in direction of mouse  Release mouse  The movement of the client may vary between applications

Lecture 11: Exam Revision 7 Handling Events 3  A pop-up menu  Press right/left mouse button (left for MS Start Menu)  Show top-level menu  Loop 1: Drag mouse cursor over item  Highlight item  If item is sub-menu show sub-menu  Continue loop 1:  Press mouse button over item - do menu action  Press mouse button not over item - hide all menus

Lecture 11: Exam Revision 8 Handling Events and Application Frameworks  In Lecture 7 we also saw how input handling fits in with Object-Oriented application frameworks  For example:  Model-View controller in Smalltalk-80  Document/View structure in Java Swing and Microsoft Foundation Classes  We also saw how graphical components could be designed as classes and objects  The display and input handling of a class is built into the class itself  A limited interface is exposed to the rest of the program

Lecture 11: Exam Revision 9 3D graphics: Transforms  We started by looking at the basic transform operations  Translation in the X, Y and Z planes  Rotation about the X, Y and Z axes  Scaling in X, Y and Z  We discussed the concept of Graphics Context and saw that transformations are cumulative unless we change the context  E.g. by loading the Identity Matrix - glLoadIdentity()  Or (later on) by saving and then restoring the transformation context with glPushMatrix() and glPopMatrix()  Rendering continues in the current graphics context unless the programmer changes it

Lecture 11: Exam Revision 10 Texture Mapping  In Lecture 8 we looked at texture mapping  We saw how texture objects could be created in a program or read from a file  Textures can then be applied to an object to add detail to the scene without using extra polygons  Texturing has to be enabled before texture objects can be used  Texture coordinates go from 0.0, 1.0 in X and 0.0, 1.0 in Y  We set different coordinates so we can match all, part or repeated copies of the texture across a set of vertices in a polygon  We can also have the texture affected by materials and lighting

Lecture 11: Exam Revision 11 Lighting, Shading and Materials  We saw in lecture 9 how lighting and shading can be controlled to give a sense of depth and position  Shading can be flat or smooth across a polygon to give more realistic smooth objects  We can enable lights in a scene and control their properties e.g.  Colour or brightness  Position of point source lights  We can also control how an object responds to lighting by setting material values to make objects dull or shiny to match real-world surface reflections and colours  Remember: Context and lighting

Lecture 11: Exam Revision 12 Sense of depth  OpenGL gives a sense of depth via  Lighting and shading (last section)  Perspective gluPerspective()  This set the angle of view  the aspect ration of the scene  The front and back viewable planes  enabling Depth Testing  Depth testing switches on hidden line and surface removal  Without this all parts of an object would be visible

Lecture 11: Exam Revision 13 Answer to last tutorial question  “Modify the rotate operation so that the scene rotates around the current viewpoint and not the origin”  Create a camera object to store the current position in x,y and z and the current rotations about x,y, and z axes  Take user input to move around the scene  In the display function: translate and rotate using the current camera values  Then redraw the whole scene  See Chapter 19 Simple Tank in OpenGL Superbible - VC++ workspace is in L:\CD2012

Lecture 11: Exam Revision 14 Finally  There are no trick questions  Please read the exam questions carefully  Plan out your answer  Don’t do a brain dump of lecture notes/reading based on misreading questions  Good Luck  Any final questions ?