版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、Models and Architectures原著Ed AngelProfessor of Computer Science, Electrical and Computer Engineering, and Media ArtsUniversity of New Mexico編輯 武漢大學(xué)計(jì)算機(jī)學(xué)院圖形學(xué)課程組ObjectivesLearn the basic design of a graphics systemIntroduce pipeline流水線 architectureExamine software components for an interactive graphics
2、 systemImage Formation RevisitedCan we mimic模仿 the synthetic camera model to design graphics hardware software?Application Programmer Interface (API)Need only specify Objects對(duì)象Materials材質(zhì)屬性Viewer觀察者Lights光源But how is the API implemented?Physical ApproachesRay tracing光線跟蹤: follow rays of light from c
3、enter of projection until they either are absorbed by objects or go off to infinity無窮遠(yuǎn)Can handle global effectsMultiple reflectionsTranslucent半透明 objectsSlowMust have whole data baseavailable at all times Radiosity輻射度: Energy based approachVery slowPhysical Approaches ?(The answer is no)Lets see the
4、 Graphics Architectures Outline1.7 Graphics Architectures1.7.1 Display Processors 1.7.2 Pipeline Architecture1.7.3 The Graphics Pipeline1.7.4 Vertex Processing1.7.5 Clipping and Primitive Assembly1.7.6 Rasterization1.7.7 Fragment Processing. The Programmers Interface1.6.2 Three-Dimensional APIs1.7 G
5、raphics ArchitecturesEarly graphics systems used general-purpose computers.(通用計(jì)算機(jī))CPUSystemMemoryVideoControllerMonitorSystem BusI/O DevicesDigital to analog(D/A) converter1.7.1 Display ProcessorsSpecial-purpose graphics systems, relieving the general-purpose computer from the task of refreshing the
6、 display continuously.CPUSystemMemoryVideoControllerSystem BusI/O DevicesDisplay Processormemory(Frame Buffer)VideoControllerMonitorDisplay listDisplay ProcessorRather than have the host computer try to refresh display use a special purpose computer called a display processor (DPU)Graphics stored in
7、 display list顯示列表 (display file) on display processorHost compiles display list and sends to DPU1.7.2 Pipeline ArchitecturePipeline流水線Concurrency并行Delay or latency延遲Throughput吞吐量1.7.3 The Graphics Pipeline (Practical Approach)Process objects one at a time in the order they are generated by the appli
8、cationCan consider only local lighting局部光照明Pipeline architectureAll steps can be implemented in hardware on the graphics cardapplication programdisplay1.7.4 Vertex Processing頂點(diǎn)處理Vertex頂點(diǎn)包含拓?fù)湫畔⒃趦?nèi)的幾何表示拓?fù)湫畔opology,鄰接關(guān)系、次序幾何信息Geometry,點(diǎn)(一般意義的點(diǎn)point)坐標(biāo)信息Vertex頂點(diǎn) 及其 頂點(diǎn)序列構(gòu)成 線段, 多邊形,或者 多邊形集合曲線、曲面 的參數(shù)頂點(diǎn)圖形學(xué)中
9、最基本的幾何模型1.7.4 Vertex Processing頂點(diǎn)處理Much of the work in the pipeline is in converting object representations(幾何表示) from one coordinate system to anotherObject coordinates對(duì)象坐標(biāo)Camera (eye) coordinates觀察坐標(biāo)Screen coordinates屏幕坐標(biāo)Every change of coordinates is equivalent to a matrix矩陣 transformation Vertex
10、 processor also computes vertex colors1.7.4 Vertex Processing (Projection投影)Projection投影 is the process that combines the 3D viewer with the 3D objects to produce the 2D imagePerspective透視 projections: all projectors投影線 meet at the center of projection投影中心Parallel平行 projection: projectors投影線 are par
11、allel, center of projection is replaced by a direction of projection投影方向1.7.4 Vertex Processing (Projection投影)Chapter 5 will discuss projection processComputer viewingPerspective projectionsParallel projectionChapter 6 will discuss lighting and shading光照與明暗繪制computes vertex colors1.7.5 Clipping and
12、Primitive Assembly 裁減 與 圖元組裝(Primitive Assembly)Vertices must be collected into geometric objects before clipping and rasterization can take placeLine segments線段Polygons多邊形Curves and surfaces 曲線 曲面 1.7.5 Clipping and Primitive Assembly (Clipping裁減)Just as a real camera cannot “see” the whole world,
13、the virtual camera can only see part of the world or object spaceObjects that are not within this volume are said to be clipped out of the scene1.7.5 Clipping and Primitive Assembly (Clipping)Chapter 7 (7.3, 7.4, 7.5, 7.6, 7.7) will discuss Clipping processClippingLine segments Clipping Polygon clip
14、pingClipping of other primitivesClipping in three dimensions1.7.6 Rasterization光柵化If an object is not clipped out, the appropriate pixels in the frame buffer must be assigned colorsRasterizer produces a set of fragments片元 for each objectFragments are “potential潛在 pixels”Have a location in frame buff
15、er位置信息Color attributes顏色屬性Depth information深度信息Vertex attributes are interpolated over objects by the rasterizer1.7.6 Rasterization光柵化Chapter 7 (7.8, 7.9, 7.10) will discuss rasterization process for Line segments Polygons基本圖元1.7.7 Fragment Processing片元處理Fragments are processed to determine the colo
16、r of the corresponding pixel in the frame buffer(真實(shí)感問題:兩類真實(shí)感問題)Colors can be determined by texture mapping紋理映射 or interpolation of vertex colors頂點(diǎn)顏色插值 一般意義上狹義上真實(shí)感Fragments may be blocked阻擋 by other fragments closer to the camera Hidden-surface removal隱藏面消除1.7.7 Fragment Processing片元處理Section 7.11 wi
17、ll discuss Hidden-surface removal隱藏面消除Chapter 6 will discuss lighting and shading光照與明暗繪制Section 8.7 will discuss texture mapping紋理映射 Chapter 9 will discuss programmable shaders可編程著色器. The Programmers InterfaceProgrammer sees the graphics system through a software interface: the Application Programme
18、rs Interface (API)Fig 1.21 Application Programmers model of graphics systemapplication program interface (API)application programming interface (API)1.6.2 Three-Dimensional APIs(API Contents)Functions that specify what we need to form an imageObjects對(duì)象Viewer觀察者Light Source(s)光源Materials材質(zhì)屬性O(shè)ther inf
19、ormationInput from devices such as mouse and keyboardCapabilities of system1.6.2 Three-Dimensional APIs (Object Specification對(duì)象指定)Most APIs support a limited set of primitives includingPoints (0D object)Line segments (1D objects)Polygons (2D objects)Some curves and surfacesQuadrics二次曲面Parametric polynomials 參數(shù)多項(xiàng)式曲面All are defined through locations in space 空間位置 or Vertices頂點(diǎn)1.6.2 Three-Dimensional APIs (Example)glBegin(GL_POLYGON)glVertex3f(0.0, 0
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 干果買賣合同范例
- 六年級(jí)病段修改
- 代辦報(bào)價(jià)合同范例
- 科學(xué)實(shí)驗(yàn)引領(lǐng)模板
- 單價(jià)合同綜合單價(jià)合同范例
- 公司借款法人合同范例
- 家具工廠購銷合同范例
- 合伙開鞋廠合同范例
- 合資綠茶公司合同范例
- 奔馳買車定金合同模板
- 產(chǎn)品包裝規(guī)范管理制度
- 2024年海南省中考物理試題卷(含答案)
- 2024統(tǒng)編新版小學(xué)三年級(jí)語文上冊(cè)第八單元:大單元整體教學(xué)設(shè)計(jì)
- 第07講 物態(tài)變化(原卷版)-2024全國(guó)初中物理競(jìng)賽試題編選
- 高危兒規(guī)范化健康管理專家共識(shí)解讀
- DB61T1521.5-2021奶山羊養(yǎng)殖技術(shù)規(guī)范 第5部分:后備羊培育
- 中國(guó)心力衰竭基層診療與管理指南(2024年版)
- 2024-2030年中國(guó)番茄粉行業(yè)市場(chǎng)發(fā)展趨勢(shì)與前景展望戰(zhàn)略分析報(bào)告
- 2024至2030年中國(guó)連續(xù)熱鍍鋁硅合金鋼板行業(yè)市場(chǎng)深度分析及發(fā)展趨勢(shì)預(yù)測(cè)報(bào)告
- 05G335單層工業(yè)廠房鋼筋混凝土柱
- 2024年全國(guó)各地中考語文真題分類匯編【第二輯】專題07 文言文對(duì)比閱讀(含答案)
評(píng)論
0/150
提交評(píng)論