版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
ObjectivesLearn
the
basic
design
of
a
graphicssystemIntroduce
pipeline流水線architectureExamine
software
components
for
aninteractive
graphics
systemImage
FormationRevisitedCan
wemimic模仿thesynthetic
cameramodel
to
design
graphics
hardwaresoftware?Application
Programmer
Interface
(API)Need
only
specifyObjects對象Materials材質屬性Viewer觀察者Lights光源But
how
is
the
API
implemented?PhysicalApproachesRay
tracing光線
:
follow
raysof
light
fromcenter
of
projection
until
they
either
areooff
to
infinity無窮遠absorbedbyobjectsCan
handle
global
effectsMultiple
reflectionsTranslucent半透明objectsSlow-
Must
have
wholedata
baseavailable
at
all
timesRadiosity輻射度:Energy
based
approach-
VeryslowPhysical
Approaches
?(The
answer
is
no)Let’s
see
the
GraphicsArchitecturesOutline1.6
TheProgrammer’s
Interface1.6.1
Three-Dimensional
APIs1.7
Graphics
Architectures1.7.1
Display
Processors1.7.2
Pipeline
Architecture1.7.3
The
Graphics
Pipeline1.7.4
Vertex
Processing1.7.5
Clip and
Primitive
Assembly1.7.6
Rasterization1.7.7
Fragment
Processing1.6
The
Programmer’sInterfaceProgrammerseesthe
graphicssystemthrough
a
software
interface:
the
ApplicationProgrammer’s
Interface
(API)Fig
1.21
Application
Programmer’s
model
of
graphics
system1.6.1
Three-DimensionalAPIs(API
Contents)Functions
thatspecify
what
we
needtoforman
imageObjects對象Viewer觀察者Light
Source(s)光源Materials材質屬性OtherinformationInput
from
devices
such
as
mouse
and
keyboardCapabilities
of
system1.6.1
Three-Dimensional
APIs(Object
Specification對象指定)Most
APIs
support
a
limited
set
of
primitivesincludingPoints
(0Dobject)Line
segments(1D
objects)Polygons
(2D
objects)Some
curves
andsurfacesQuadrics二次曲面Parametric
polynomials
參數(shù)多項式曲面All
are
defined
throughlocations
in
space
空間位置orVertices頂點1.6.1
Three-DimensionalAPIs(Example)glVertex3f(0.0,0.0,0.0);glVertex3f(0.0,1.0,0.0);glVertex3f(0.0,0.0,1.0);glEnd(
);type
ofobjectlocation
of
vertexglBegin(GL_POLYGON)end
of
object
definition1.6.1
Three-DimensionalAPIs(Camera
Specification,
Viewer觀察者)Six
degrees
offreedomPosition位置of
center
oflens鏡頭,COPOrientation方向Lens鏡頭focal
lengthFilm
plane膠片平面sizeOrientationFig
1.25
camera
specification1.6.1
Three-DimensionalAPIs(Lights光源)Types
oflightsPoint
(Positional)sources點光源vs
distributed
(Directional)sources分布光源Spot
lights聚光源Near
and
far
sources近光遠光Color
properties1.6.1
Three-Dimensional
APIs(Materials材質屬性)Material
propertiesAbsorption吸收:color
propertiesScattering散射Diffuse漫反射Specular鏡面反射1.7 GraphicsArchitecturesEarly
graphics
systems
used
general-purpose
computers.CPUSystemMemory
ControllerMonitorSystem
BusI/ODevicesDigital
to
og(D/A)converter1.7.1
Display
ProcessorsSpecial-purposegraphics
systems,
relieving
thegeneral-purpose
computer
from
the
task
ofrefreshing
the
displaycontinuously.CPUSystemMemoryControllerSystem
BusI/O
DevicesDisplay
Processormemory(FrameBuffer)ControllerMonitorDisplay
listDisplay
ProcessorRather
than
have
the
host
computer
try
torefresh
display
use
a
special
purpose
computercalled
a
display
processor
(DPU)Graphics
stored
in
display
list顯示列表(displayfile)
on
display
processorHost
compiles
display
list
and
sends
to
DPU1.7.2 Pipeline
ArchitecturePipeline流水線Concurrency并行Delayor
latency延遲Throughput吞吐量1.7.3
The
Graphics
Pipeline(Practical
Approach)Process
objects
one
at
a
time
in
the
order
theyare
generated
by
the
applicationPipelinearchitectureAll
steps
can
be
implemented
in
hardware
onthe
graphics
cardapplicationprogramdisplay1.7.4
VertexProcessing頂點處理Vertex頂點包含拓撲信息在內的幾何表示拓撲信息Topology,鄰接關系、次序幾何信息Geometry,點(一般意義的點point)坐標信息Vertex頂點及其頂點序列構成線段,多邊形,或者
多邊形集合曲線、曲面
的參數(shù)頂點圖形學中最基本的幾何模型1.7.4
VertexProcessing頂點處理Much
of
the
work
in
the
pipeline
is
inconvertingobject
representations(幾何階段)from
onecoordinate
system
toanotherObjectcoordinates對象坐標Camera
(eye)coordinates觀察坐標Screen
coordinates屏幕坐標Every
change
of
coordinates
is
equivalent
to
amatrix矩陣transformationVertex
processor
also
computes
vertex
colors1.7.4
Vertex
Processing(Projection投影)Projection投影is
the
process
thatcombines
the3D
viewer
with
the
3Dobjects
to
produce
the
2D
imageprojections:all
projectors投影線meet
at
the
center
of
projection投影中心Parallel平行projection:projectors投影線areparallel,center
of
projection
is
replaced
by
a
direction
of
projection投影方向1.7.4
Vertex
Processing(Projection投影)Chapter
5
will
discuss
projection
processComputer
viewingprojectionsParallel
projectionChapter
6
will
discuss
lighting
andshading光照與明暗繪制computes
vertex
colors1.7.5
Clipand
Primitive
Assembly裁減與圖元組裝(Primitive
Assembly)Vertices
must
be
collected
into
geometricand
rasterizationobjects
before
clipcan
takeplaceLinesegments線段Polygons多邊形-Curves
and
surfaces
曲線曲面1.7.5
Clipand
Primitive
Assembly(Clip
裁減)Just
asa
realcamera
cannot
“see”thewhole
world,
thevirtual
camera
can
onlysee
partof
the
world
or
object
space-
Objects
that
are
notwithinthis
volume
are
saidto
be
clipped
out
of
the
scene1.7.5
Clipand
Primitive
Assembly(Clip
)Chapter
7
(7.3,
7.4,
7.5,
7.6,
7.7)
willdiscuss
Clip
processClipLine
segments
ClipPolygonclipClipClipof
other
primitivesin
threedimensions1.7.6
Rasterization光柵化If
an
object
is
not
clippedout,
the
appropriatepixels
in
theframebuffer
must
be
assignedcolorsRasterizer
produces
a
set
offragments片元foreach
objectFragments
are“potential潛在pixels”Havealocation
inframe
buffer位置信息Color
attributes顏色屬性Depth
information深度信息Vertex
attributes
are
interpolated
over
objects
bytherasterizer1.7.6
Rasterization光柵化Chapter
7
(7.8,
7.9,
7.10)
will
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024年工業(yè)地產(chǎn)有償轉讓協(xié)議
- 2024年度南京二手房交易合同
- 2024年度水果交易合同模板
- 【初中生物】病毒教學課件2024-2025學年人教版生物七年級上冊
- 2024年度法律服務委托合同
- 2024年度工程監(jiān)理合同標的及服務內容具體描述
- 2024年工程勞務分包補充協(xié)議
- 2024個人向公司借款合同范本(簡單版)
- 2024冷卻塔填料生產(chǎn)工藝優(yōu)化合同
- 2024年度CFG樁基工程水土保持合同
- 三年級上冊美術課件-第7課 北京的胡同 ▏人美版(北京) (17張PPT)
- GB∕T 17888.3-2020 機械安全 接近機械的固定設施 第3部分:樓梯、階梯和護欄
- 房顫健康宣教課件
- 人教版八年級上Unit 6 I'm going to study computer science1 Section A (1a-1c)教案
- 一年級下冊數(shù)學教案 - 四 牧童-認識圖形:《重疊問題》 青島版
- 家用電器常見認證標志一覽匯總(精選.)
- DB37 5155-2019 公共建筑節(jié)能設計標準
- 五年(2018-2022年)高考全國卷英語試題考點分析
- 試驗室組織機構圖
- T∕CSRME 001-2019 巖石動力特性試驗規(guī)程
- 從農(nóng)業(yè)機械化到農(nóng)業(yè)信息化、自動化與智能化
評論
0/150
提交評論