Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 1 Chapter 1 Overview of Computer Graphics.

Slides:



Advertisements
Similar presentations
Mac OS X Anja Philipp MAC OS X Anja Philipp
Advertisements

Computer Graphics- SCC 342 Chapter 3: Computer Graphics Software Dr. Doaa Hegazy.
COMPUTER GRAPHICS SOFTWARE.
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.
Advanced Graphics, Overview Advanced Computer Graphics Overview.
Programming Creating programs that run on your PC
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Programming with OpenGL Part 1: Background Ed Angel Professor of Computer Science, Electrical.
3D Graphics - Current Technologies Open GLOpen GL (Open Graphics Language) –SGI Silicon Graphics Direct 3DDirect 3D –Microsoft Direct X Technology Java3DJava3D.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Introduction to Computer Graphics Ed Angel Professor of Computer Science, Electrical and.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 What is Computer Graphics? Ed Angel Professor of Computer Science, Electrical and Computer.
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
Programming with OpenGL Part 1: Background Mohan Sridharan Based on slides created by Edward Angel CS4395: Computer Graphics 1.
Introduction to Computer Graphics Mohan Sridharan Based on Slides by Edward Angel and Dave Shreiner CS4395: Computer Graphics 1.
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.
Essentials of Interactive Computer Graphics: Concepts and Implementation K. Sung, P. Shirley, S. Baer Chapter 4 Chapter 4: Working with Graphics APIs.
3D Rendering with JOGL Introduction to Java OpenGL Graphic Library By Ricardo Veguilla
Overview of Computer Graphics Chapter 1. Bird’s Eye View  Overview of Computer Graphics –Basic concept of computer graphics, system, programming platforms,
Survey of Computer Graphics Programming Languages Jerry Yee November 30, 2004.
1 Angel and Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 What is Computer Graphics? Sai-Keung Wong ( 黃世強 ) Computer Science National.
Graphics Graphics Korea University cgvr.korea.ac.kr Introduction to Computer Graphics.
 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
CS 480/680 Computer Graphics Course Overview Dr. Frederick C Harris, Jr. Fall 2012.
CHAPTER 4 Window Creation and Control © 2008 Cengage Learning EMEA.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Zhonghua Qu and Ovidiu Daescu December 24, 2009 University of Texas at Dallas.
A Survey of COMPUTER GRAPHICS
Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 1 Chapter 12 Additional 3D Topics.
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
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.
OpenGl Graphics Programming. Introduction OpenGL is a low-level graphics library specification. It makes available to the programmer a small set of geomteric.
1 Angel and Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 Introduction to Computer Graphics 靜宜大學 資訊工程系 蔡奇偉 副教授
Computer Graphics I, Fall : What is Computer Graphics?
Yingcai Xiao Game Development Interactive Animation.
1 Angel and Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 Introduction to Computer Graphics Ed Angel Professor Emeritus of Computer.
1 Introduction to Computer Graphics SEN Introduction to OpenGL Graphics Applications.
Computer Graphics I, Fall 2008 Introduction to Computer Graphics.
1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 CS4610/7610: Introduction to Computer Graphics.
CSE 581: Interactive Computer Graphics Spring 2012, UG 4 Tuesday, Thursday – 9:00AM – 10:18AM DL 0317 Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang,
Applets Yong Choi School of Business CSU, Bakersfield.
What is Computer Graphics?. 2 Objectives In this lecture, we explore what computer graphics is about We will give a historical introduction.
1 Angel and Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 What is Computer Graphics? Sai-Keung Wong ( 黃世強 ) Computer Science National.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 What is Computer Graphics?
JAVA Programming “When you are willing to make sacrifices for a great cause, you will never be alone.” Instructor: รัฐภูมิ เถื่อนถนอม
Java 3D Web Apps and Services. Presentation Overview l Java3D Overview l Software l Java3D API l Scene Graph Programming Model l Java3D Terminology l.
In the name of God Computer Graphics.
Subject Name: Computer Graphics Subject Code: Textbook: “Computer Graphics”, C Version By Hearn and Baker Credits: 6 1.
Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 1 Chapter 11 Animation.
Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 1 Chapter 5 Basic 3D Graphics.
Liang, Introduction to Java Programming, Tenth Edition, (c) 2015 Pearson Education, Inc. All rights reserved. 1 Chapter 14 JavaFX Basics.
1 Contact Information Wsalhalabi.kau.edu.sa Parts of the slides were adopted from Dr. Barbara Hecker.
Computer Graphics and Multimedia Dr. Rajesh Siddavatam Ph.D (BITS–Pilani) Dean – Quality Assurance Professor Mail:
Instructor: Dr. Shereen Aly Taie 1.  Broad introduction to Computer Graphics ◦ Software ◦ Hardware ◦ Applications  CAD برامج التصميم 2.
Computer Graphics Lecture 1. Books D. Hearn, M. P. Baker, "Computer Graphics with OpenGL", 3rd Ed., Prentice Hall, 2003, ISBN
Interactive Animation
Chapter 1 Introduction.
Khang Lam Daniel Limas Kevin Castillo Juan Battini
In the name of God Computer Graphics.
Chapter 1 An overview on Computer Graphics
Introduction to Computer Graphics
Chapter 1 An overview on Computer Graphics
Getting Started ARCS Lab..
Introduction to Computer Graphics
Introduction to Computer Graphics
Copyright ©2008 by Pearson Education, Inc
Chapter 1 Introduction.
Presentation transcript:

Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 1 Chapter 1 Overview of Computer Graphics

Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 2 Objectives F To understand the basic objectives and scope of computer graphics F To identify computer graphics applications F To understand the basic structures of 2D and 3D graphics systems F To understand evolution of graphics programming environments F To identify common graphics APIs F To understand the roles of Java language, Java 2D and Java 3D packages F To identify computer graphics related fields

Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 3 Computer Graphics Modeling: Creating a virtual world. Rendering: Generating a visual image of a scene.

Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 4 Graphics System: Components and Functions F Modeler F Renderer F Hardware device F Virtual World F View F Geometry F Transformation F Illumination F Interaction F Animation

Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 5 Applications F User interface F Computer Aided Design F Medical systems F Video games F Movies F …

Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 6 Graphics Programming Environment Hardware (direct register/video buffer programming) OS (WIN32, X, Mac OS) Graphics Standard (GKS, PHIGS, OpenGL) Platform Independent (Java 3D)

Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 7 Hardware Level Determination of the pixels on a circle. From the current pixel, the next pixel will be either to the “east” or to the “southeast”. F Program the graphics hardware directly F Typically written in low-level languages F Manipulate the hardware registers and video buffers F Highly machine-dependent F Example: MS-DOS graphics program Source

Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 8 Operating System Level F Program through OS graphics support F Do not directly manipulate graphics hardware F Portable on the same platform F Example: WIN32 SourceRun hdc = BeginPaint (hwnd, &ps); GetClientRect (hwnd, &rc); cx = (rc.left + rc.right)/2; cy = (rc.top + rc.bottom)/2; if (rc.bottom - rc.top < rc.right - rc.left) r = (rc.bottom - rc.top) / ; else r = (rc.right - rc.left) / ; Ellipse(hdc, cx-r, cy-r, cx+r, cy+r); EndPaint (hwnd, &ps);

Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 9 GKS and PHIGS Graphics Kernel System Programmer’s Hierarchical Interactive Graphics System F International standard (ISO ) F 2D graphics F Common language binding: FORTRAN F Example: A FORTRAN GKS program to draw a circle F ISO F 3D graphics Source

Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 10 OpenGL Source F Popular 2D/3D graphics API F over 200 functions F Common language binding: C F Example: An OpenGL program to draw a circle GLU GLUT GL Run

Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 11 OpenGL Source 3D Example: A spinning sphere Run

Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 12 Java Java 3D OpenGL Java APIs Display driver Graphics card Display Graphics application Java VM OS Java 3D based graphics systems

Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 13 Java Programming Languages F Simple F Object Oriented (OOP) F Write once, run anywhere F Multithreaded Java graphics: AWT / Swing AWT Example Source Run

Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 14 JOGL F OpenGL Java language binding F No OOP modeler Source Run 1.Create a GLCanvas or GLJPanel object through the GLDrawableFactory class. 2.Add a GLEvent listener to the canvas object. 3.Implement the listener by implementing the four methods: init, display, reshape, and displayChanged.

Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 15 Java 2D F Standard package of Java 2 platform F Improvements over AWT F Graphics2D class Source Run

Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 16 Java 3D F High-level API F Scene graph F Modeler/Renderer F Java Integration Source Run

Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 17 Other Fields Related to Graphics F Image processing F Computer vision F Mathematics –Analytic geometry –Linear algebra