交互式计算机图形学课后答案2

交互式计算机图形学课后答案2

ID:41605776

大小:67.01 KB

页数:4页

时间:2019-08-28

交互式计算机图形学课后答案2_第1页
交互式计算机图形学课后答案2_第2页
交互式计算机图形学课后答案2_第3页
交互式计算机图形学课后答案2_第4页
资源描述:

《交互式计算机图形学课后答案2》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、CGAssignment5(PaperHomework2Chapters5-8)DeadlineJune202010請將答案寫在Word檔(亦可寫在紙本上用掃描器或像機取像成影像檔・jpg)中上傳至portal.1.Exercise5.2(p.286intextbook)5.2Supposethattheaxisoftheplaneisitszdirectionandupistheydirection.Intheairplane*scoordinatesystem,theroll・pitchandyawcorrespondtorotationsaboutthez,xandya

2、xesrespectively.Thuswecancontroltheorientationrelativetheoriginbyarotationoftheform(volI)Rj(pitch)(yaw).Wemustalsodoatranslationtomovetheairplanetoitsdesiredlocation.2.Exercise5.7(p.286)5.7Theresultfollowsfromthetransformationbeingaffine.Wecanalsotakeadirectapproach.Considerthelinedetermine

3、dbythepoints(忑1,2/1,21)andZ/2,^2)-Anypointalongcanbewrittenparametricallyas(ctxy+(1—a)龙2,ay、+(1—a)?/2,otZ+(1—Considerthesimpleprojectionofthispoint—小2)(曲】+(】一&)爼2,虫/1+(1—Q)92)whichisoftheform+(1—0)^2,+(1一a)92)・Thisformdescribesalinebecausetheslopeisconstant.Notethatthefunction/(a)impliesth

4、atwetraceoutthelineatanonlinearrateasaincreasesfrom0to1.3.Exercise5.15(p.286)5.15Ifweuse0=0=45,weobtaintheprojectionmatrix10-1001-10000000011.Exercise5.17(p.287)5.17Allthepointsontheprojectionofthepoint{x.y^z}inthedirection(1工、d和dz)areoftheform(x+ad巧y+ady^z+adz).Thustheshadowofthepoint(a;,z

5、)isfoundbydeterminingtheaforwhichthelineintersectstheplane,thatisaxs+bys+czs=dSubstitutingandsolving,wefindd—ax—by—cz(idx+bdy+cdzfindxs=z+ad工=However,whatwewantisaprojectionmatrix,Usingthisvalueofawe(idx+bdy+cdzx(bdy+cdx)—dx{d-by-cz)withsimilarequationsforysandz$.Theseresultscanbecomputedby

6、multiplyingthehomogeneouscoordinatepoint1)bytheprojectionmatrixbdy+cdz—Cldy—adz0ad/工+cdz—bdz0Tdyadx+bdy0—ddx_ddy-ddzadx+bdy+cdz2.Exercise6.7(p.327)6.7Let0betheanglebetweenthenormalandthehalfwayvector,0betheanglebetweentheviewerandthereflectionangle,and9betheanglebetweenthenormalandthelights

7、ource.Ifallthevectorslieinthesameplane,theanglebetweenthelightsourceandtheviewercanbecomputereitheras0+20oras2(0+0).Settingthetwoequal,wefind©=20.Ifthevectorsarenotcoplanarthen0V20・3.Exercise6.19(p.328)6.19Shadingrequiresthatwhenwetransformnormalsandpoin

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。