Computer Graphics: 1. Introduction To CG
Computer Graphics: 1. Introduction To CG
Graphics
1. Introduction to CG
Term: 2014-2015/II
Prerequisites
0000 Geometra y Trigonometra
0042 lgebra B
2223 Programacin Orientada a Objetos
Textbook
Course textbook:
Hearn D., y Baker P.
Grficas por Computadora (con OpenGL)
3a. Edicin, Prentice Hall, 2006
Other books:
Foley, van Dam, Feiner, Hughes, Computer Graphics:
Principles and Practice, 2nd. edition, Addison Wesley, 1997
Vince, J., Mathematics for computer graphics, 2nd. edition,
Springer, 2006
Grading
Final grade:
Average of 3 partial grades
Final project
Overall attendance
30%
30%
40%
Important
Attendance
Punctuality
Notes (notebook/slides)
Academic code
Use of electronic devices
English!
Communication
Class
Office
E-mail: [email protected]
Facebook group:
https://www.facebook.com/groups/704785436224527/
Project
Teams of 1 to 2 people
Will be explained this week
Project
Teams of 1 to 2 people
Will be explained this week
Topics
Modelling and representation
Animation
Rendering
Rasterisation
Definition (ACM*):
Computer graphics (CG) is the term commonly used to
describe the computer generation and manipulation of
images. It is the science of enabling visual communication
through computation. Its uses include cartoons, film
special effects, video games, medical imaging,
engineering, as well as scientific, information, and
knowledge visualization.
Definition (con't):
CG broadly studies the manipulation of visual and
geometric information using computational techniques.
Sub-fields
Modelling
Rendering
Animation
Visualization
Computational Geometry
Interdisciplinary
CG is related to the fields of:
Image processing (Intelligent Systems)
Machine vision (Intelligent Systems)
Interface design (Human-Computer Interaction)
Virtual reality (Human-Computer Interaction)
SIGGRAPH
www.siggraph.org
Applications
Some fields where CG is used:
Applications
Science, Engineering, etc.:
Computer Assisted Design (CAD)
Simulations, etc.
Applications
Art, entertainment, publicity:
Graphical Displays
Graphical Devices
Output devices:
Computer displays, projectors
2D and 3D printers
3D displays (volumetric displays)
Graphical Devices
Display technologies:
Cathode ray tube (CRT)
Vector Displays
Only the vertices of the graphics primitives are stored
The electron beam of the output display is then
commanded to move from vertex to vertex, tracing an
analog line across the area between these points
CRT
Evacuated glass envelope containing an electron gun (a
source of electrons) and a fluorescent screen
When electrons strike the fluorescent screen, light is
emitted
Source: http://en.wikipedia.org/wiki/CRT_monitor
LCD
Is a thin, flat display device made up of any number of
color or monochrome pixels arrayed in front of a light
source or reflector
Source: http://es.wikipedia.org/wiki/Pantalla_de_cristal_l%C3%ADquido
PDP
Many tiny cells located between two panels of glass hold
an inert mixture of noble gases (neon and xenon)
The gas in the cells is electrically turned into a plasma
which then excites phosphors to emit light
Source: http://en.wikipedia.org/wiki/Plasma_display
LED
Any light-emitting diode (LED) whose emissive
electroluminescent layer is composed of a film of organic
compounds
E-Paper
Is a display technology designed to mimic the
appearance of ordinary ink on paper
Reflects light like ordinary paper and is capable of
holding text and images indefinitely without drawing
electricity
3D Displays
Virtual Reality
Volumetric Displays
Hologram
Source: http://www.wired.com/gadgetlab/2008/06/usc-lab-creates/
Autosterograms
Image Source:http://en.wikipedia.org/wiki/3D_display
Graphical Modes
They are often a combination of:
Display resolution (pixels)
Color depth (bits)
Refresh rate (hertz)
16:9
Video Card
A.K.A. Graphics accelerator card, Display adapter or
Graphics card
Its function is to generate and output images to a display
Components:
Graphics processing unit (GPU)
Video memory
Video BIOS
Framebuffer
It is a video output device that drives a video display
from a memory buffer containing a complete frame of
data
The information in the buffer typically consists of color
values for every pixel (point that can be displayed) on
the screen
Cards Manufacturers
GPU (Graphics Processing Unit) manufacturers:
AMD (acquired ATI in 2006)
Nvidia
Matrox
Graphics APIs
Due to the difficulties working with video cards at a
programming level, interfaces which abstract the
complexity and diversity of the graphic card primitives
appeared:
DirectX: Released by Microsoft in 1996
OpenGL: Released by Silicon Graphics in the early
1990s. Is a free, open multi-language and multiplatform API
OpenGL
OpenGL (Open Graphics Library) is a standard
specification defining a cross-language cross-platform
API for writing applications that produce 2D and 3D
computer graphics
It is a specification, i.e. it is simply a document that
describes a set of functions and the precise behaviours
that they must perform
Source: http://www.opengl.org/
Animation
Rendering
Rasterization
Computer
generated image
(CGI)
Modelling
Animation
Rendering
Rasterisation
It is the task of taking an
image described in a vector
graphics format (shapes)
and converting it into a
raster image (pixels or dots)
for output on a video display
or printer
Source: http://en.wikipedia.org/wiki/Rasterization
Raster Graphics
Digital image, or bitmap
Data structure representing a generally rectangular grid
of pixels, or points of color, viewable via a computer
monitor, paper, or other display medium
Raster images are stored in image files with varying
formats
Source: http://fc03.deviantart.net/fs71/f/2011/268/a/e/pixel_art_mario_by_darilhowell-d4ax05g.png
Vector Graphics
Also called geometric
modeling or object-oriented
graphics
Is the use of geometrical
primitives such as points,
lines, curves, and
polygons, which are all
based upon mathematical
equations to represent
images
Resources
OpenGL:
http://www.opengl.org
http://www.glprogramming.com/red/
CG Schools, programmes:
https://www.digipen.edu
CG slides, courses:
http://vis.cs.pitt.edu/teaching/cs1566/lectures.php
http://cs.brown.edu/courses/cs123/
https://class.coursera.org/interactivegraphics-001
https://www.udacity.com/course/cs291