CompGraphics.ppt 801KB Jun 23 2011 12:11:04 PM

3D Computer
Graphics in a
Nutshell

Guillaume Caumon, January
2002

Introduction





Computer graphics is concerned
with all the aspects of “drawing” on
computers
Performance is critical
3D Computer Graphics deals with
the generation images from 3D
objects.


The Rendering Pipeline
Pipeline = Linear succession of operations

Rendering speed = speed of the slowest step (b

Application

Geometry

Rasterization

Application
Software-based processing / modifications
meshing
decimation
3D Model

collision detection
animation



Rendering
primitives

Geometry

Transforms

Lightning

Projection

Clipping

Geometry : Transforms
Model Transform
Model Coordinates
World Coordinates
Scaling, etc.


View Transform

Viewing Coordinates

Geometry: lighting and
shading

Simulate interaction of light with matter:
- Emission
- Absorption
- Reflection

Geometry: A Lightning
Equation
L

α
β

N


IR()

Ambient light coefficient
Material color Specular Coeficient
Ex: (.1, .1, .1)
Ex: (1, 0, 0) Ex: (1, 1, 1)

ν : r, g or b

Shininess (s > 1)

Geometry: Shading
Flat shading: each triangle has
the same color

Gouraud shading: colors are
interpolated between vertices

Phong shading: normal are

interpolated and colors computed
for each pixel

Geometry: Projection

normalization
Viewing Coordinates
Virtual Device Coordinat
Perspective/
parallel

Geometry: Clipping

Geometry: Device
Coordinates
My Window

Unit Cube

Rasterization

Per-pixel operations: ray-tracing
Scan conversion of lines:
naive version
Bresenham algorithm
Scan conversion of polygons
Aliasing / antialiasing
Texturing

Screen = matrix

Graphics Hardware
Quickly evolving
Main principle: use of buffers

Color buffer :
1 byte per pixel (256) + lookup tables
2 bytes per pixel (65 536) “high color”
3+1 bytes per pixel bpp (16 millions) “true color” +
Depth buffer :
16 to 32 bit per pixel


Graphics Hardware (II)

Double buffering :
• show the front buffer while rasterizing the
back buffer
• swap buffers in synchronization with the
screen refresh
get the
Stenciltobuffer
: new frame
allows high-level operations (antialiasing, filtering

See OpenGL programmer’s reference for more details

Conclusion
3D Graphics require intensive computations
Yet, 3D Graphics are time-critical
Bottlenecks
Display lists

Only low-level graphics have been described.
Scene Graphs
Selection and
tools

}

See OpenInventor, VTK, etc.

References and further
reading








Foley, van Dam, Feiner, Hughes, Computer Graphics

Principle and practice, 2nd edition. Addisson Wesley, 1997
Moller, Haines, Real-Time Rendering. AK Peters, 1999 (
http://www.realtimerendering.com )
The Graphic Gems series, Academic Press.
Neider, Davis, Woo, OpenGL Programming Guide.
Addisson Wesley, 1993
Wernecke, The Inventor Mentor, release 2, Addisson
Wesley,1994
Schroeder, Martin, Lorensen, The Visualization Toolkit,
2nd edition. Prenctice Hall, 1998
Proceedings of Siggraph, Visualization, Eurographics,
etc.

Dokumen yang terkait

ANALISIS FAKTOR YANGMEMPENGARUHI FERTILITAS PASANGAN USIA SUBUR DI DESA SEMBORO KECAMATAN SEMBORO KABUPATEN JEMBER TAHUN 2011

2 53 20

KONSTRUKSI MEDIA TENTANG KETERLIBATAN POLITISI PARTAI DEMOKRAT ANAS URBANINGRUM PADA KASUS KORUPSI PROYEK PEMBANGUNAN KOMPLEK OLAHRAGA DI BUKIT HAMBALANG (Analisis Wacana Koran Harian Pagi Surya edisi 9-12, 16, 18 dan 23 Februari 2013 )

64 565 20

FAKTOR – FAKTOR YANG MEMPENGARUHI PENYERAPAN TENAGA KERJA INDUSTRI PENGOLAHAN BESAR DAN MENENGAH PADA TINGKAT KABUPATEN / KOTA DI JAWA TIMUR TAHUN 2006 - 2011

1 35 26

A DISCOURSE ANALYSIS ON “SPA: REGAIN BALANCE OF YOUR INNER AND OUTER BEAUTY” IN THE JAKARTA POST ON 4 MARCH 2011

9 161 13

Pengaruh kualitas aktiva produktif dan non performing financing terhadap return on asset perbankan syariah (Studi Pada 3 Bank Umum Syariah Tahun 2011 – 2014)

6 101 0

Pengaruh pemahaman fiqh muamalat mahasiswa terhadap keputusan membeli produk fashion palsu (study pada mahasiswa angkatan 2011 & 2012 prodi muamalat fakultas syariah dan hukum UIN Syarif Hidayatullah Jakarta)

0 22 0

Perlindungan Hukum Terhadap Anak Jalanan Atas Eksploitasi Dan Tindak Kekerasan Dihubungkan Dengan Undang-Undang Nomor 39 Tahun 1999 Tentang Hak Asasi Manusia Jo Undang-Undang Nomor 23 Tahun 2002 Tentang Perlindungan Anak

1 15 79

Pendidikan Agama Islam Untuk Kelas 3 SD Kelas 3 Suyanto Suyoto 2011

4 108 178

PP 23 TAHUN 2010 TENTANG KEGIATAN USAHA

2 51 76

KOORDINASI OTORITAS JASA KEUANGAN (OJK) DENGAN LEMBAGA PENJAMIN SIMPANAN (LPS) DAN BANK INDONESIA (BI) DALAM UPAYA PENANGANAN BANK BERMASALAH BERDASARKAN UNDANG-UNDANG RI NOMOR 21 TAHUN 2011 TENTANG OTORITAS JASA KEUANGAN

3 32 52