Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Part 1
prof.ing.Vclav Skala, CSc.
University of West Bohemia
Plze, Czech Republic
2002
Prepared with Angel,E.: Interactive Computer
Graphics A Top Down Approach with OpenGL,
Addison Wesley, 2001
Graphics Systems
Five major elements - processor, memory,
frame buffer, output devices, input devices
Fundamentals of Com
picture detail
Fundamentals of Com
Output Devices
The cathode-ray tube CRT
Fundamentals of Com
Output Devices
RGB shadow mask
Fundamentals of Com
Output Devices
Refresh rate: 50 85 Hz, for stereovision 120Hz (2 x60 Hz)
Mode: interlaced versus non-interlaced
Masks: DELTA versus INLINE
LCD Displays raster based
Raster devices
sequential access - plotters etc.
direct access displays etc.
mixed inkjet printers printed sequentially, accessed directly
Fundamentals of Com
Fundamentals of Com
Fundamentals of Com
Transformation from E3 to E2
projection
Fundamentals of Com
Fundamentals of Com
10
Colours
Light is a form of
electromagnetic radiation
Visible spectrum 350 780 nm
Fundamentals of Com
11
Ray Tracing
Ray tracing
building an imaging model by
following light from a source
a ray is a semi-infinite line
that emanates from a point
and travels to infinity in a
particular direction
portion of these infinite rays
contributes to the image on
the film plane of the camera
surfaces:
diffusing
reflecting
refracting
Fundamentals of Com
12
Ray Tracing
A different approach must be used:
for each pixel intensity must be
computed
all contributions must be taken
into account
a ray is followed in the
opposite direction, when
intersect a surface it is split into
two rays
contribution from light sources
and reflection from other
resources are counted
Fundamentals of Com
13
- HVS
Courtesy of http://www.webvision.med.utah.edu/into.html
Fundamentals of Com
15
16
Fundamentals of Com
17
Pinhole Camera
Box with a small hole
film plane z = - d
y
yp
z
d
x
xp
z
d
!!!yp,-d
Fundamentals of Com
18
Pinhole Camera
point (xp,yp,-d)
projection of the
point (x,y,z)
angle of view or field
of the camera
angle
ideal camera
infinite depth of
field
h
2 arctan
2d
Fundamentals of Com
19
Imaging system
20
21
Fundamentals of Com
22
Fundamentals of Com
23
Programmers Interface
Numerous ways for user
interaction with a graphics
system using input devices
- pads, mouse, keyboards
etc.
different orientation of
coordinate systems
canvas versus OpenGL etc.
Fundamentals of Com
24
points
line segments
polygons
text
Fundamentals of Com
26
Fundamentals of Com
27
Fundamentals of Com
28
Fundamentals of Com
29
Fundamentals of Com
30
31
Graphics Architectures
32
Graphics Architectures
Display processors
standard architecture with capabilities to display primitives
composition made at the host
memory display list contains primitives to be displayed.
Fundamentals of Com
33
Pipeline Architectures
34
Pipeline Architectures
35
Fundamentals of Com
36
Conclusion
Consider a standard camera with 36x24 mm film and having a
zoom 26 140mm. How the viewing angle or viewing field is
defined.
37
Exercise No.1
The aim of the first experiment is:
to read data of a complex geometric model defined
by the TRI format (routine for reading will be given)
to store it in the data structure
to display the model as a set of triangles as wiremodel (without shading, visibility)
to explore other possibilities of drawing
visible parts only by
with constant shading
Fundamentals of Com
38
[Vertices]
0.0 0.0 0.0
0.151632 -0.043319 -0.08824
vertex
0.163424 -0.033934 -0.08411
0.163118 -0.053632 -0.080509
Fundamentals of Com
39
[Triangles' Normals]
0.442 -0.167 -0.881 i-th normal vector for the i-th triangle
0.595 -0.088 -0.798
0.735 -0.093 -0.671
..
Fundamentals of Com
40