资源描述:
《direct3d编程与三维游戏中的图形技术》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Direct3DDirect3D
200220021010!!
!3D3D!!2D2D3D3D
!!!
!!!"#$%&!'()*!!+!+
!"
,-.
2、/0123456789:;'()*!(Real-timerenderingandofflinerendering)!
!Video——
!——!
!!"#$%&'()!*+,-./"01-!!10fps(FramePerSecond)?!60Hz/23D3D!!"#$!"#$!%&%&!'()*+'()
3、*+!,-,-!(.)/012345)/6)789(.)/012345)/6)789!NPC(AI)NPC(AI)!:;)<'*+:;)<'*+!=>=1=>=1!?
@ABCDE?
@ABCDE!
!3D3D!!
……!FGH.IJKLM
NOH(P)QFGH.IJKLM
NOH(P)QRSTULMV
/WHSTXYZRSTULMV
/WHSTXYZ!??!
4、
??!??!(()?)?![[]H^_]H^_``
!
NOaH(P
NOaH(P(3Dmodel)(3Dmodel))bcd)bcd!
efghi
efghi(3DTransformation&(3DTransformation&ViewingProcess)ViewingProcess)!/Wj/Wj!/0klmno/0klmno!pqkrpq
5、kr
!
!"
!
!
!"
!""#$%"""#$%"#$%#$%&'&'!TriangleFaceTriangleFace!stustu(TriangleList)(TriangleList)!svwsvw(TriangleStrip)(TriangleStrip)!&'!&'!VertexBufferVertexBuffer+IndexBuffer+IndexBuffer!!"!"(Cube)(Cube)!8(1,
6、0,0),(1,1,0),(1,0,1),….!12(TriangleList)(0,1,2),(1,2,3),(2,3,4)…()*+()*+,()*+()*+()*+,()*+,,-./0,,,-./0,-./0-./01212343434343434565656565656565678-./078-./078-./078-./0!#$%&'(#$%&'()*+,-.)*+,-./0&12/0&12!34%&'(34%&'()#$0&1567)#$0&156789:3
7、4;<89:34;?@ABCD=>?@ABCDEFEF99(ViewFrustum)(ViewFrustum)%:;<%:;<•!"#$%&'()*+,-%&./0123456•78$9:;<=>?@#ABCD6•-E13FOVFieldOfView=>?=>?(Raster)(Raster)@AB@AB----CDE/0CDE/0FGHI@JKLFGHI@JKL!/xlm/xlm!pqy.pqy.MN=OPQMN=OPQ::$=$=,,8、,,S=S=TUVWTUVW(ShadingModes)(ShadingModes)!
!(FlatShading)!?@ABCDEFGHIJKLMFABCIJN!OPABCQRSB!TUVWX!GouraudShading!?@GHYZ[]TU^FGHIJ_`ABCG