GK, Intro 1Computer Graphics1 Gerda Kamberova. GK, Intro 1Computer Graphics2 Outline Computer Graphics (CG) definition CG applications CG main tasks:

Slides:



Advertisements
Similar presentations
COMPUTER GRAPHICS SOFTWARE.
Advertisements

Graphics Pipeline.
CP411 Computer Graphics, Wilfrid Laurier University Introduction # 1 Welcome to CP411 Computer Graphics 2012 Instructor: Dr. Hongbing Fan Introduction.
3D Graphics Rendering and Terrain Modeling
Advanced Graphics, Overview Advanced Computer Graphics Overview.
Graphics Systems I-Chen Lin’s CG slides, Doug James’s CG slides Angel, Interactive Computer Graphics, Chap 1 Introduction to Graphics Pipeline.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 What is Computer Graphics? Ed Angel Professor of Computer Science, Electrical and Computer.
GK, Intro 1Hofstra University – CSC171A1 Computer Graphics Gerda Kamberova.
CMPE 466 COMPUTER GRAPHICS
Computer Graphics Introduction
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Models and Architectures Ed Angel Professor of Computer Science, Electrical and Computer.
Ch 1 Intro to Graphics page 1CS 367 First Day Agenda Best course you have ever had (survey) Info Cards Name, , Nickname C / C++ experience, EOS experience.
Computer Graphics Hardware and Software Lecture Notes, CEng 477.
Overview of Computer Graphics Chapter 1. Bird’s Eye View  Overview of Computer Graphics –Basic concept of computer graphics, system, programming platforms,
Computer Graphics/and Multimedia CMM472/CIT773 What is CG ?, History of CG, Course Overview.
Graphics Graphics Korea University cgvr.korea.ac.kr Introduction to Computer Graphics.
1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)
C O M P U T E R G R A P H I C S Guoying Zhao 1 / 46 C O M P U T E R G R A P H I C S Guoying Zhao 1 / 46 Computer Graphics Introduction II.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 10: Computer Graphics Computer Science: An Overview Tenth Edition.
Computer Graphics/and Multimedia CMM472/CIT773 What is CG ?, History of CG, Course Overview.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
ISC/GAM 4322 ISC 6310 Multimedia Development and Programming Unit 1 Graphics Systems and Models.
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
1 Computer Graphics Week3 –Graphics & Image Processing.
Computer Graphics Computer Graphics is everywhere: Visual system is most important sense: High bandwidth Natural communication Fast developments in Hardware.
1 By Dr. Hany Elsalamony. 2 3  Computer graphics generally means creation, storage and manipulation of models and images  Such models come from diverse.
CSC 461: Lecture 1 1 Lecture 1: Introduction Objectives Explore what computer graphics is about Survey some application areas Introduce a history of computer.
Computer Graphics An Introduction. What’s this course all about? 06/10/2015 Lecture 1 2 We will cover… Graphics programming and algorithms Graphics data.
Computer Graphics. Requirements Prerequisites Prerequisites CS 255 : Data Structures CS 255 : Data Structures Math 253 Math 253 Experience with C Programming.
1 Chapter 1 Overview of Computer Graphics  To understand the basic objectives and scope of computer graphics  To identify computer graphics applications.
C O M P U T E R G R A P H I C S Guoying Zhao 1 / 14 C O M P U T E R G R A P H I C S Guoying Zhao 1 / 14 Going-through.
CS 450: COMPUTER GRAPHICS REVIEW: INTRODUCTION TO COMPUTER GRAPHICS – PART 2 SPRING 2015 DR. MICHAEL J. REALE.
INTRODUCTION INTRODUCTION Computer Graphics: As objects: images generated and/or displayed by computers. As a subject: the science of studying how to generate.
COMPUTER GRAPHICS Hochiminh city University of Technology Faculty of Computer Science and Engineering CHAPTER 01: Graphics System.
Computer Graphics I, Fall : What is Computer Graphics?
CSC 461: Lecture 3 1 CSC461 Lecture 3: Models and Architectures  Objectives –Learn the basic design of a graphics system –Introduce pipeline architecture.
Institute for Visualization and Perception Research 1 © Copyright 2000 Haim Levkowitz Introduction (Foley & Van Dam Ch 1) Uses of computer graphics … Some.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Computer Graphics Week2 –Creating a Picture. Steps for creating a picture Creating a model Perform necessary transformation Lighting and rendering the.
1Computer Graphics Lecture 4 - Models and Architectures John Shearer Culture Lab – space 2
COMPUTER GRAPHICS CSCI 375. What do I need to know?  Familiarity with  Trigonometry  Analytic geometry  Linear algebra  Data structures  OOP.
INT 840E Computer graphics Introduction & Graphic’s Architecture.
Computer Graphics Chapter 6 Andreas Savva. 2 Interactive Graphics Graphics provides one of the most natural means of communicating with a computer. Interactive.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 What is Computer Graphics?
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
Subject Name: Computer Graphics Subject Code: Textbook: “Computer Graphics”, C Version By Hearn and Baker Credits: 6 1.
Overview of Graphics System
Computing & Information Sciences Kansas State University Lecture 12 of 42CIS 636/736: (Introduction to) Computer Graphics CIS 636/736 Computer Graphics.
1 Angel: Interactive Computer Graphics5E © Addison- Wesley 2009 Image Formation Fundamental imaging notions Fundamental imaging notions Physical basis.
1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)
Chapter 1 Graphics Systems and Models Models and Architectures.
1 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 Models and Architectures 靜宜大學 資訊工程系 蔡奇偉 副教授 2012.
Chapter 1 An overview on Computer Graphics
Computer Graphics - Introduction -
Computer Graphics.
Chapter 1 An overview on Computer Graphics
3D Graphics Rendering PPT By Ricardo Veguilla.
The Graphics Rendering Pipeline
Understanding Theory and application of 3D
Real-time Computer Graphics Overview
Models and Architectures
Models and Architectures
Models and Architectures
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Graphics Processing Unit
Models and Architectures
Models and Architectures
Chapter 2 Overview of Graphics Systems
Presentation transcript:

GK, Intro 1Computer Graphics1 Gerda Kamberova

GK, Intro 1Computer Graphics2 Outline Computer Graphics (CG) definition CG applications CG main tasks: modeling, rendering, animation CG standard CG and other disciplines Course overview Advanced CG Graphics system architectures Raster graphics: CRT and frame buffer

GK, Intro 1Computer Graphics3 Definition: “combining hardware approaches with software algorithms to facilitate the manipulation of visual information.” Subareas: hardware and system architecture, image synthesis, animation, applications.

GK, Intro 1Computer Graphics4 Applications User interfaces: point and click, desk-top publishing Interactive plotting/drawing (in business, science, engineering). Goal is to summarize info, outline trends, and help make decisions. Computer-aided design (one of the earliest applications) Simulation and animation for visualization and entertainment Education and training (flight simulators, battlefield management, trauma and surgery training) Medicine: medical imaging, training, computer-aided surgery, telemedicine Art and commerce Communication

GK, Intro 1Computer Graphics5 Simulators

GK, Intro 1Computer Graphics6 Medical imaging and display

GK, Intro 1Computer Graphics7 Computer Graphics: Main Tasks Modeling Rendering (image synthesis) Animation

GK, Intro 1Computer Graphics8 Modeling Describing objects Mainly, 3D object geometry Could include topology, material properties, photometry The objects could be real or artificial

GK, Intro 1Computer Graphics9 Geometric Models There are several methods to build and represent the objects in a scene. Set of vertices Polygonal meshes Curved surfaces represented by (piecewise) parameterizations: e.g. Bezier surfaces, other spline surfaces Implicit representations (often used with real- life surfaces)

GK, Intro 1Computer Graphics10 Modeling: Design of an artificial object

GK, Intro 1Computer Graphics11 Modeling: Design of an artificial object

GK, Intro 1Computer Graphics12 Parametric Surface Example Often the objects are represented as parametric surfaces. For example Coons’ bilinearly blended patch: to fill in the surface between four bounding curves

GK, Intro 1Computer Graphics13 Modeling: using real object models obtained by Computer Vision Computer vision : from 2D images to 3D points (in this example using polynocular stereo). On the left is recovered 3D model as set of points.

GK, Intro 1Computer Graphics14 Modeling: the recovered 3D surface model From patches to surface

GK, Intro 1Computer Graphics15 3D Modeling: mapping texture onto the recovered surface

GK, Intro 1Computer Graphics16 Medical Imaging Data Input data

GK, Intro 1Computer Graphics17 Rendering: from 3D to 2D Two of the tasks involved in rendering are viewing and projection. Model-view matrix View volume, clipping and culling Projection matrix (orthographic/perspective projection

GK, Intro 1Computer Graphics18 Coordinate systems The modeling and viewing involve many coordinate systems and transformations between them. Model coordinate systems, used to build separate objects, or scene components (to be reused in different scenes) World coordinate system, the coordinate system of the particular scene in which the objects sit Viewing/Camera coordinate system The understanding of those coord systems and the transitions between them is a crucial part of developing a CG application

GK, Intro 1Computer Graphics19 Model coordinates and World Coordinates Transform

GK, Intro 1Computer Graphics20 Rendering Generating 2D images of the modeled 3D objects Includes Viewing model (where is the “camera” that takes the picture, how is it oriented) Projection model (what are the “camera” parameters, like lens type, aperture) Illumination model (what are the lighting conditions) Shading model and surface properties (material, reflectance, secularities) Rasterization (from 2D continuous images to discretized image in the Frame Buffer)

GK, Intro 1Computer Graphics21 Rendering: color and shading Simple flat shading: a circle and a triangle or a sphere and a cone?

GK, Intro 1Computer Graphics22 Rendering: illumination and shading More realistic shading: Need: surface normals, lighting, material properties

GK, Intro 1Computer Graphics23 Rendering: material properties specular surface diffuse surface translucent surface

GK, Intro 1Computer Graphics24 Rendering: Teapots, Teapots, …

GK, Intro 1Computer Graphics25 In summary CG is about Models, Lights, Material, Shading,… Rendering Lighting Material properties Viewing parameters Shading model Geometric Models (e.g. surfaces) Rendering

GK, Intro 1Computer Graphics26 Towards Better and More Realistic CG Additional Techniques Adding Shadows Adding Fog Transparency and diffraction Texture mapping Interaction techniques Menus Selection and picking

GK, Intro 1Computer Graphics27 Shadows They provide and enhance Realism Cues Information

GK, Intro 1Computer Graphics28 Fog Nate Robins OGL Tutor

GK, Intro 1Computer Graphics29 Transparency

GK, Intro 1Computer Graphics30 Texture mapping Vertex data (geometric models) Pixel data (images) Rendering

GK, Intro 1Computer Graphics31 Animation Modeling and rendering objects with attributes that change over time (position, geometry, topology, color, texture, etc.)

GK, Intro 1Computer Graphics32 Animation

GK, Intro 1Computer Graphics33 Graphics Standard portability, standard graphics functions are independent of programming language, bindings are defined for various languages Goal: portability, standard graphics functions are independent of programming language, bindings are defined for various languages GKS, PHIGS, OpenGL, Java3D GKS, PHIGS, OpenGL, Java3D The standard provides specifications for basic graphics functions. To insure independence and portability, there is no standard for graphics interface to output devices, image formats, or transfer protocols The standard provides specifications for basic graphics functions. To insure independence and portability, there is no standard for graphics interface to output devices, image formats, or transfer protocols

GK, Intro 1Computer Graphics34 Creating graphics and animation One way to create computer graphics is to use some higher level ready made package Maya Alias|Wavefront 3ds Max ( 3D Blender ( The alternative approach is to “Do it yourself”. This is particularly useful in the design of special applications, e.g. writing computer game engines and scientific visualization packages. It helps to use an Application Programming Interface (API), for example OpenGL, or Direct3D, or Java 3D. APIs are used with a high level programming language. Often even “Do it yourself” graphics involves objects created with high level ready made packages, for example, the characters in a game may be designed with a modeling package and then the meshes are imported in the custom designed game engine.

GK, Intro 1Computer Graphics35 APIs and Device Independent Graphics Programming Using APIs makes it possible to create programs that can be compiled and run on many different graphics platforms. Most APIs are basically libraries of routines that take care of standard tasks like rasterization, hidden surface removal, polygon clipping, projections. Graphics application API layer Hardware The APIs serve as intermediaries between the application layer and the hardware layer. One of their main functions is to facilitate rendering but they can provide also higher level as well as lower level functions.

GK, Intro 1Computer Graphics36 Different API levels Lower level APIs (e.g. the rendering APIs Dircect3D and OpenGL) deal directly with the rendering task. Often one API may pass some lower level functions to other APIs, for example, on MS Windows based systems OpenGL relies on Direct3D to take care of lower level rendering functions. On the other hand a higher level API like the scene graph API Java3D takes care of maintaining and organizing information about the graphic scenes, illumination, and environment states but needs the help a rendering API to complete the rendering task. The relationship between different APIs, the operating system, and the hardware layer are illustrated in the following two pages.

GK, Intro 1Computer Graphics37 Application Programs, OpenGL, OS, Hardware and Drivers Application program OS +window system GLX, WGL, etc GLU GLUT Hardware Motiff, Other GUI GL Relationships of the various libraries and window system components. OpenGL

GK, Intro 1Computer Graphics38 Application Programs, Java 3D, Direct3D, OpenGL, Hardware and Drivers Graphics application Java 3D Hardware Lower level rendering API (OpenGL, Direct 3D) Java Graphics application Direct3D Hardware Hal/Hel components Of MS Windows OS GDI DDI Graphics application Direct3D Hardware Hal/Hel components of MS Windows OS GDI DDI OpenGL

GK, Intro 1Computer Graphics39 Graphics Standard General purpose API For use in high-level programming language By programmers

GK, Intro 1Computer Graphics40 Graphics Standard API contains functions for creation, manipulation and display of images Basic building blocks: primitives and attributes Geometric transformations Modeling transformations Viewing transformations Structuring/manipulating components hierarchically Control functions

GK, Intro 1Computer Graphics41 Computer Graphics Has interdisciplinary nature Computer engineering CS: modeling, algorithms, architecture, programming, computer vision, networking Math: linear algebra, differential geometry, numerical analysis, differential equations Physics: optics, matter, energy, mechanics, kinematics, dynamics Biology: human perception, plant and animal life Art

GK, Intro 1Computer Graphics42 Course Overview Hardware architecture: raster graphics, FB Graphics Standard:KGS, PHIGS, OpenGL Interaction 3D geometry and modeling Viewing Rasterization Image synthesis: illumination, shading, texture mapping Rendering and Animation

GK, Intro 1Computer Graphics43 Advanced Computer Graphics Hierarchical modeling and Animation Texture and antialiasing 3D modeling with parametric surfaces Applications: visualization, virtual reality Physics based modeling 3D modeling: surfaces and shapes

GK, Intro 1Computer Graphics44 Architecture of Early Graphic Systems: von Neumann

GK, Intro 1Computer Graphics45 Graphics Systems Architecture: Display Processor (DP) Ivan Sutherland, MIT, 1963 DP: special purpose graphics processor. Has instructions to display primitives on CRT. Repetitively executes DL at rate sufficient to avoid flicker. Vector display CRT Display list (DL) contains segment definitions Refresh buffer in DP stores DL

GK, Intro 1Computer Graphics46 Raster Graphics Became feasible when memory cost dropped (mid 70s) Electron beam scans regular pattern of horizontal raster lines(rl) Pixels are individual dots on rl. A picture is array of pixels

GK, Intro 1Computer Graphics47 CRT Display Phosphorous compound deposited on screen Electron gun emits electron beam when heated When beam hits screen pixel lights up Beams go in order: line by line, pixel by pixel Frame: consists of all scan lines Picture: the pattern created on the screen

GK, Intro 1Computer Graphics48 CRT Display Persistence: the time it takes for a pixel to loose 10% of its original energy Most CRT milsec persistence Must refresh picture, beams redraws 60 times per sec, to avoid flicker of picture on screen. Thus, FB must be read 60 time per second.

GK, Intro 1Computer Graphics49 Frame Buffer(FB) FB prescribes the pattern that the electron beam must draw FB is core of the graphics hardware FB stores the discretized picture (array of pixels) Implemented with special memory that enables fast redisplay FB spatial resolution: defined by number pixels FB color resolution: defined by FB depth, number bits per pixel

GK, Intro 1Computer Graphics50 Frame Buffer FB consists of bit planes 1 bit plane: binary image (beam on/off) 8 bit planes=1 pixmap: 256 gray levels; beam has 256 intensity levels; FB has 8 pixels depth Color image: 3 pixmaps (R,G,B). Each pixmap prescribes picture for an electron gun. Three guns emit 3 beams which create 3 close spots on the screen of 3 different color each. Human vision system averages and perceives a single color at the pixel. Wit 8-bit color in (R,G,B) there are 24 bits in FB prescribing color. 24bits: 2 24 = 16K colors FB usually 32 bits = 24 for color + 8bits for alpha value

GK, Intro 1Computer Graphics51 Raster Graphics Rasterization: conversion of 2D geometric primitives and their attributes to pixel assignments and color in the FB Video controller: controls operation of the display, can access FB directly Video controller and DP free CPU from graphics operations: mainly, scan conversion, generating various line styles, interface with interactive input devices.

GK, Intro 1Computer Graphics52 Classical raster display architecture New trends SLI GPU programmin g

GK, Intro 1Computer Graphics53 Pipeline Architecture (PA) Typical for contemporary CG systems In PA, same set of operations (transformations) are applied thousands, millions of data primitives PA exploits “assembly line” paradigm Vertex in 3D model --  Pixel in FB

GK, Intro 1Computer Graphics54 Pipeline Architecture: Fundamental Operations Transformations: modeling/viewing Clipping (ignore from further considerations all parts that are not in field of view) Projection (from 3D to continuous 2D geometry) Rasterization (from continuous 2D geometry to pixels in the frame buffer)

GK, Intro 1Computer Graphics55 Pipeline Architecture Front-end (modeling/viewing transformations, clipping, and projection) utilize pipeline. The calculations are implemented in hardware. We will study the algorithms for the front-end Back-end (rasterization) exploits fast memory, parallelism in FB access, and spatial continuity in the image. PA is used in high-performance graphics workstations, and fancy graphics cards.

GK, Intro 1Computer Graphics56 Homework Read: Angel textbook, Ch 1 The OpenGL Primer, Ch1 Try to compile and run the example program hello.cpp, copy from class web page. Use husun3, machines in 204 Adams, in addition if you will be working at home on a PC try compiling and running at home as well (see instructions on the web page).