Computer Graphics (fall,2010) School of Computer Science University of Seoul Minho Kim.

Slides:



Advertisements
Similar presentations
Computer Graphics - Graphics Programming -
Advertisements

OpenGL CMSC340 3D Character Design & Animation. What is OpenGL? A low-level graphics library specification designed for use with the C and C++ provides…
School of Computer Science University of Seoul. How can we create a window? How can we handle the events? What kind of objects can we render? How can.
OPEN GL. Install GLUT Download package di sini Dari devcpp, buka Tools->PackageManager-
Okay, you have learned … OpenGL drawing Viewport and World Window setup main() { glViewport(0,0,300,200); glMatrixMode(GL_PROJECTION); glLoadIndentity();
CS 4731: Computer Graphics Lecture 20: Raster Graphics Part 1 Emmanuel Agu.
Chapter 2: Graphics Programming
Computer Graphics CSCE 441
Okay, you have learned … OpenGL drawing Viewport and World Window setup main() { glViewport(0,0,300,200); glMatrixMode(GL_PROJECTION); glLoadIndentity();
CS 352: Computer Graphics Chapter 7: The Rendering Pipeline.
1 Computer Graphics Chapter 2 Input Devices. RM[2]-2 Input Devices Logical Input Devices  Categorized based on functional characteristics.  Each device.
Basics. OpenGL. “Hello world” George Georgiev Telerik Corporation
CS 4731 Lecture 2: Intro to 2D, 3D, OpenGL and GLUT (Part I) Emmanuel Agu.
Lab 1: OpenGL Tutorial CS 282. What’s the plan for today? Go over our framework code. Learn some basic OpenGL! Reveal Lab 1 Answer questions.
What is OpenGL? Low level 2D and 3D Graphics Library Competitor to Direct3D (the rendering part of DirectX) Used in: CAD, virtual reality, scientific.
OpenGL (Graphics Library) Software Interface to graphics software Allows to create interactive programs that produce color images of moving 3D objects.
Painterly Rendering CMPS Assignment 2. OpenGL OpenGL is a cross-language, cross- platform specification defining and API for 2D and 3D graphics.
Introduction to OpenGL. What is OpenGL OpenGL is a low-level software interface to graphics hardware No commands for performing windowing tasks or obtaining.
CMPE 466 COMPUTER GRAPHICS
CSE328:Computer Graphics OpenGL Tutorial Dongli Zhang Department of Computer Science, SBU Department of Computer Science, Stony.
Using Graphics Libraries Lecture 3 Mon, Sep 1, 2003.
Programming in OpenGL Ryan Holmes CSE 570 February 12 th, 2003.
CS 480/680 Computer Graphics Course Overview Dr. Frederick C Harris, Jr. Fall 2012.
Jehee Lee Seoul National University
Basic OpenGL Glenn G. Chappell U. of Alaska Fairbanks CS 381 Lecture Notes Wednesday, September 10, 2003.
INTRO TO COMPUTER GRAPHICS TEXT EDWARD ANGEL: EDITION 5 CS770/870
Drawing Basic Graphics Primitives Lecture 4 Wed, Sep 3, 2003.
Graphics Programming using OpenGL. OpenGL is a software interface that allows the programmer to create 2D and 3D graphics images. This interface consists.
OpenGl Graphics Programming. Introduction OpenGL is a low-level graphics library specification. It makes available to the programmer a small set of geomteric.
Input and Interaction Lecture No. 4.
Comp371 Computer Graphics Lecturer : Dr. Adam Krzyzak Mehdi Saeidian-manesh
Lecture 3 OpenGL.
Glut Coordinate System Used in keyboard and mouse callbacks x y w h [window]
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Programming with OpenGL Part 1: Background Ed Angel Professor of Computer Science, Electrical.
Computer Graphics, KKU. Lecture 101 Introduction to OpenGL.
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:
1 Graphics CSCI 343, Fall 2015 Lecture 4 More on WebGL.
CS 480/680 Intro Dr. Frederick C Harris, Jr. Fall 2014.
Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition Chapter 2.
Introduction to OpenGL Programming Jian-Liang Lin 2002.
Introduction to OpenGL and GLUT. What’s OpenGL? An Application Programming Interface (API) A low-level graphics programming API – Contains over 250 functions.
1 3D API OPENGL ES v1.0 Owned by Silicon Graphics (SGL) Control was then transferred to Khronos Group Introduction.
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 A first OpenGL program Brian Farrimond Robina Hetherington.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
Chun-Yuan Lin Introduction to OpenGL 2015/12/19 1 CG.
CS 470 Computer Graphic Getting Started with OpenGL.
NoufNaief.net TA: Nouf Al-harbi.
Computer Science I 3D Classwork / Homework: plan and implement your own 3D example.
Lecture 2 Review OpenGL Libraries Graphics Overview Rendering Pipeline OpenGL command structure.
Lecture 7 Midterm Review. OpenGL Libraries gl: Basic OpenGL library, e.g. primitives. glu: OpenGL Utility library, a set of functions to create texture.
Introduction to OpenGL
INTRODUCTION TO OPENGL
Computer Graphics (Fall 2003) COMS 4160, Lecture 5: OpenGL 1 Ravi Ramamoorthi Many slides courtesy Greg Humphreys.
Computer Graphics -practical- Lecture 6. (visual c++) open gl library To use open GL with VC++ we add these files:- 1)Glut.h C:\program files\ Microsoft.
School of Computer Science
School of Computer Science
CSE / ENGR 142 Programming I
Computer Graphics Lecture 33
School of Computer Science
“Computer Science is no more about computers than astronomy is about telescopes.” Professor Edsger Dijkstra.
Starting to draw dealing with Windows which libraries? clipping
גרפיקה ממוחשבת: מבוא ל-OpenGL
Outline Announcements Dynamic Libraries HWII on web, due Friday
Introduction to Computer Graphics with WebGL
Starting to draw dealing with Windows which libraries? clipping
Introduction to OpenGL
Preview of 3-D Graphics Glenn G. Chappell
OpenGL-Rendering Pipeline
Presentation transcript:

Computer Graphics (fall,2010) School of Computer Science University of Seoul Minho Kim

Chapter 2 Initial Steps in Drawing Figures

To Get Started... ● What we need? ● To create a window ● To handle events ● To render objects ● OpenGL only supports “rendering” process ● Helper library required → GLUT (GL Utility Toolkit)

sample01.c ● Minimal OpenGL program ● How can we compile it? ● What each function call does? ● What happens if we remove each function call? ● What is the relationship between the coordinates of the vertices and the screen? ● How can we change the initial window size/position? ● How can we change the color used to clear the screen? ● How can we change the color of the rectangle? ● How can we draw other primitives?

More on OpenGL/GLUT ● Naming conventions Naming conventions ● Data types Data types ● What are the buffers other than color buffer? ● How many states are there?states ● Which objects can we draw?objects ● What other events can we handle?

sample02.c ● What do we need to do for “double buffering”? ● How can we handle the keyboard event? ● How can we handle other key events, such as function keys and arrow keys? ● How can we handle modifier keys?modifier keys ● How can we change the mapping between the coordinate system and the screen?