CMPE 466 COMPUTER GRAPHICS

Slides:



Advertisements
Similar presentations
Programming with OpenGL - Getting started - Hanyang University Han Jae-Hyek.
Advertisements

MEG 361 CAD Chapter 3 Basic Concepts of Graphics Programming.
Computer Graphics- SCC 342 Chapter 3: Computer Graphics Software Dr. Doaa Hegazy.
COMPUTER GRAPHICS SOFTWARE.
©Zachary Wartell, UNCC9/28/ :30 AM 1 Overview of OpenGL Revision: 1.2 Copyright Professor Zachary Wartell, University of North Carolina All Rights.
Chapter 2: Graphics Programming
CMPE 466 COMPUTER GRAPHICS
Pemrograman OpenGL Dasar
CP411 Computer Graphics, Wilfrid Laurier University Introduction # 1 Welcome to CP411 Computer Graphics 2012 Instructor: Dr. Hongbing Fan Introduction.
In the name of God Computer Graphics Bastanfard.
CMPE 466 COMPUTER GRAPHICS Chapter 8 2D Viewing Instructor: D. Arifler Material based on - Computer Graphics with OpenGL ®, Fourth Edition by Donald Hearn,
CMPE 466 COMPUTER GRAPHICS Chapter 5 Attributes of Graphics Primitives Instructor: D. Arifler Material based on - Computer Graphics with OpenGL ®, Fourth.
CMPE 466 COMPUTER GRAPHICS
CMPE 466 COMPUTER GRAPHICS
OpenGL (Graphics Library) Software Interface to graphics software Allows to create interactive programs that produce color images of moving 3D objects.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Programming with OpenGL Part 1: Background Ed Angel Professor of Computer Science, Electrical.
Graphics Systems I-Chen Lin’s CG slides, Doug James’s CG slides Angel, Interactive Computer Graphics, Chap 1 Introduction to Graphics Pipeline.
Programming with OpenGL Part 1: Background Mohan Sridharan Based on slides created by Edward Angel CS4395: Computer Graphics 1.
Shading Languages By Markus Kummerer. Markus Kummerer 2 / 19 State of the Art Shading.
Overview of Computer Graphics Chapter 1. Bird’s Eye View  Overview of Computer Graphics –Basic concept of computer graphics, system, programming platforms,
Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 1 Chapter 1 Overview of Computer Graphics.
Programming in OpenGL Ryan Holmes CSE 570 February 12 th, 2003.
C O M P U T E R G R A P H I C S Guoying Zhao 1 / 16 Computer Graphics Course Introduction.
CS 480/680 Computer Graphics Course Overview Dr. Frederick C Harris, Jr. Fall 2012.
Interactive Input Methods & Graphical User Input
CGMB214: Introduction to Computer Graphics
Computer Graphics Lecture 28 Fasih ur Rehman. Last Class GUI Attributes – Windows, icons, menus, pointing devices, graphics Advantages Design Process.
Using OpenGL in Visual C++ Opengl32.dll and glu32.dll should be in the system folder Opengl32.dll and glu32.dll should be in the system folder Opengl32.lib.
CSC 461: Lecture 41 CSC461: Lecture 4 Introduction to OpenGL Objectives: Development of the OpenGL API OpenGL Architecture -- OpenGL as a state machine.
Graphics Architectures & OpenGL API Introduction Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
1 Chapter 1 Overview of Computer Graphics  To understand the basic objectives and scope of computer graphics  To identify computer graphics applications.
UNIT I 2D PRIMITIVES INTRODUCTION 1 SNSCE/IT/ARUNA.
Computer Graphics Tz-Huan Huang National Taiwan University.
OpenGl Graphics Programming. Introduction OpenGL is a low-level graphics library specification. It makes available to the programmer a small set of geomteric.
CS 450: COMPUTER GRAPHICS REVIEW: INTRODUCTION TO COMPUTER GRAPHICS – PART 2 SPRING 2015 DR. MICHAEL J. REALE.
Programming with OpenGL Part 1: Background
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Programming with OpenGL Part 1: Background Ed Angel Professor of Computer Science, Electrical.
1 Angel and Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 Introduction to Computer Graphics Ed Angel Professor Emeritus of Computer.
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 SEN Introduction to OpenGL Graphics Applications.
Computer Graphics I, Fall 2008 Introduction to Computer Graphics.
Scientific Visualization with OpenGL 22 February 2006.
Introduction to OpenGL Programming Jian-Liang Lin 2002.
Institute for Visualization and Perception Research 1 © Copyright Haim Levkowitz Graphics Systems Overview Video display devices … Input devices.
Computer Graphics Chapter 6 Andreas Savva. 2 Interactive Graphics Graphics provides one of the most natural means of communicating with a computer. Interactive.
1 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 Programming with OpenGL Part 1: Background Ed Angel Professor Emeritus.
Introducing: Computer Graphics Chapter 1. Chpater 1 -- Introducing: Computer Graphics2 n Computer Graphics is a branch of Computer Science, but its appeal.
Programming in the Simple Raster Graphics Package (SRGP) Chapter 2.
In the name of God Computer Graphics.
Three-Dimensional Viewing Hearn & Baker Chapter 7
Chun-Yuan Lin Introduction to OpenGL 2015/12/19 1 CG.
Subject Name: Computer Graphics Subject Code: Textbook: “Computer Graphics”, C Version By Hearn and Baker Credits: 6 1.
NoufNaief.net TA: Nouf Al-harbi.
CGGM Lab. Tan-Chi Ho Introduction to OpenGL.
1 Computer Graphics Week1 -Introduction. Computer graphics History Computer graphics generally means creation, storage and manipulation of models and.
Computer Graphics Lecture 17 Fasih ur Rehman. Last Class 3D Transforms Inverse Rotation.
Chapter 1 Graphics Systems and Models Models and Architectures.
Graphics Programming. Graphics Functions We can think of the graphics system as a black box whose inputs are function calls from an application program;
AUTUMN Asst. Prof. Dr. Gazi Erkan BOSTANCI Slides by Robert Thomson, Süleyman Tosun and Kurtuluş Küllü.
Chun-Yuan Lin Coordinate Reference Frames 2016/6/22 1 CG.
Computer Graphics Lecture 1. Books D. Hearn, M. P. Baker, "Computer Graphics with OpenGL", 3rd Ed., Prentice Hall, 2003, ISBN
Computer Graphics Lecture 5. Graphics Library Graphics Library : There are many graphics library use with program language to draw shape. Example : Graphics.h.
In the name of God Computer Graphics.
Programming with OpenGL Part 1: Background
2D Viewing Pipeline.
Lecture 18 Fasih ur Rehman
Programming with OpenGL Part 1: Background
Introduction to OpenGL
Programming with OpenGL Part 1: Background
OpenGL-Rendering Pipeline
Presentation transcript:

CMPE 466 COMPUTER GRAPHICS Chapter 3 Computer Graphics Software Instructor: D. Arifler Material based on - Computer Graphics with OpenGL®, Fourth Edition by Donald Hearn, M. Pauline Baker, and Warren R. Carithers - Fundamentals of Computer Graphics, Third Edition by by Peter Shirley and Steve Marschner

Coordinate representations Figure 3-1 The transformation sequence from modeling coordinates to device coordinates for a three-dimensional scene. Object shapes can be individually defined in modeling-coordinate reference systems. Then the shapes are positioned within the world-coordinate scene. Next, world-coordinate specifications are transformed through the viewing pipeline to viewing and projection coordinates and then to normalized coordinates. At the final step, individual device drivers transfer the normalized-coordinate representation of the scene to the output devices for display. Right-handed vs. left-handed coordinate reference frame

Graphics functions Output primitives: plot character strings, points, straight lines, curved lines, polygons, etc. Attributes: set properties of output primitives such as color specifications, line styles, fill patterns, etc. Geometric transformations: change size, position, orientation of an object Viewing transformations: select a view of the scene, type of projection to be used, location on video monitor where the view is to be displayed Input functions: control and process the data flow from interactive devices Control operations: house-keeping tasks such as clearing a screen display area

Software standards Primary goal: Portability Graphical Kernel System (GKS) Programmer’s Hierarchical Interactive Graphics System (PHIGS) and PHIGS+ Graphics Library (GL) OpenGL (hardware-independent version of GL)

Language binding A language binding is defined for a particular high-level programming language This binding gives the syntax for accessing various graphics functions OpenGL bindings for C and C++ are the same OpenGL bindings are also available for Java and Python

Other graphics packages Open Inventor Virtual Reality Modeling Language (VRML) Java 2D Java 3D RenderMan Interface Libraries for Mathematica, MATLAB, and Maple

OpenGL OpenGL basic (core) library OpenGL Utility (GLU) library Function names start with “gl” OpenGL Utility (GLU) library Constants and data type names begin with “GL” Function names start with “glu” Window management operations are device-dependent OpenGL extensions to the X Windows System (GLX) Apple GL (AGL) Windows GL (WGL) OpenGL Utility Toolkit (GLUT) library Library of functions for interacting with any windowing system Functions are prefixed with “glut”

OpenGL header files Windows Apple OS X #include <windows.h> #include <GL/gl.h> #include <GL/glu.h> or simply #include <GL/glut.h> GLUT ensures that gl.h and glu.h are included Apple OS X #include <GLUT/glut.h>

An example program Figure 3-2 A 400 by 300 display window at position (50, 100) relative to the top-left corner of the video display. Figure 3-3 The display window and line segment produced by the example program.

An example program

An example program