Vectors amp; Matrices - UCSD Computer Graphics Lab - Home向量amp;矩阵-加州大学圣地亚哥分校的计算机图形实验室的家.pptVIP
- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Vectorsamp;amp;Matrices-UCSDComputerGraphicsLab-Home向量amp;amp;矩阵-加州大学圣地亚哥分校的计算机图形实验室的家.ppt
Vectors Matrices CSE167: Computer Graphics Instructor: Steve Rotenberg UCSD, Fall 2006 Project 1 Make a program that renders a simple 3D object (like a cube). It should render several copies of the same object with different positions/rotations. Create a ‘Model’ class that stores an array of triangles and has a ‘Draw()’ function. The Model should have a ‘CreateBox(float,float,float)’ function that initializes it to a box. You can also make other shapes if you’d like. Use an object oriented approach that will allow you to re-use the Model for other projects and add new features easily as the course goes on The goal of project 1 is to get familiar with the C++ compiler and OpenGL (or Java, Direct3D…) Due Thursday, October 5, 5:00 pm More details will be on the web page Project 1 class Vertex { Vector3 Position; Vector3 Color; public: void Draw(); }; class Triangle { Vertex Vert[3]; public: void Draw(); }; class Model { int NumTris; Triangle *Tri; void Init(int num) {delete Tri; Tri=new Triangle[num]; NumTris=num;} public: Model() {NumTris=0; Tri=0;} ~Model() {delete Tri;} void CreateBox(float x,float y,float z); void CreateTeapot(); void Draw(); }; Software Architecture Object oriented Make objects for things that should be objects Avoid global data functions Encapsulate information Provide useful interfaces Put different objects in different files Keep lower level classes as generic as possible Vectors Coordinate Systems Right handed coordinate system Vector Arithmetic Vector Algebra Associativity Commutativity Zero identity Additive inverse Distributivity Distributivity Multiplicative identity Vector Magnitude The magnitude (length) of a vector is: A vector with length=1.0 is called a unit vector We can also normalize a vector to make it a unit vector: Vector Magnitude Properties Triangle inequality Dot Product Dot Product Dot Product Properties Commutativity Cauchy-Schwa
您可能关注的文档
- 智慧燃气大数据云平台燃气行业一体化综合管控平台燃气....ppt
- Shape Matching and Object Recognition using Low Distortion 形状匹配和使用低畸变目标识别.ppt
- The Thesis Statement Revisited - Riverside Community College 本文报告重访河滨社区学院.ppt
- 第04章 控制器-2.ppt
- 中山大学宏观经济学1.ppt
- 第10章 在系统中自定义会计报表[精通企业财务会计].ppt
- 第6章控制图形显示【质量精品】.ppt
- 地铁乘客报告-南京(2005 年)【企业广告传媒】.ppt
- 流行性腮腺炎第四节1.ppt
- Power Point on STAAR accommodationsppt - Specialized 功率点在斯塔accommodationsppt专业.ppt
- 小学一年级语文课件《地球爷爷的手》.ppt
- 第一章:物体的平衡第一讲《力 重力 弹力》.ppt
- CONSERVATION EASEMENT VALUATION IN COLORADO在科罗拉多州的保护地役权估价.ppt
- 激励员工PPt教材[最牛员工激励理论].ppt
- 《撰写职位说明书培训》.ppt
- ShelfLister Real-time Voyager Shelf Lists via Wireless PDAshelflister实时通过无线PDA旅行者书架目录.ppt
- 以均线理论为基础之股票交易决策辅助系统【企业创新】.ppt
- Negative Messages - Montana State University Billings Home负面消息-蒙大拿州立大学比林斯的家.ppt
- 政治经济学 1-3章.ppt
- 6 安全工程信息化技术基础-第3-4节-安全信息基础.ppt
最近下载
- 中外建筑史幻灯片.ppt VIP
- 河北高速公路集团有限公司招聘笔试题库2024.pdf
- 《景观规划设计》课件——乡村景观园林庭院设计.pptx VIP
- 风力发电设备加工项目投资计划书(参考).docx
- 人教版高中地理必修第一册第一章:宇宙中的地球大单元整体教学设计2024.docx
- 工程造价软件应用 课件 第2章 广联达BIM土建计量平台应用.pptx
- 特色校本教材——魔幻数学(一年级).docx VIP
- 2025一建《建筑工程管理与实务》考前6套模拟卷.docx VIP
- 工程勘察服务成本要素信息(2022版).pdf VIP
- 2024年秋季学期新人教版七年级上册英语课件 Unit 1 You and Me (第4课时) Section B 1a-1d.pptx VIP
文档评论(0)