摘要: 仿射变换(Affine Transformation)齐次坐标系(Homogeneous Coordinate)定义:所谓线性变换是指两个线性空间的映射,一个变换是线性变换,必须满足两个条件,也就是我们经常说的线性条件: additivity homogeneity理解:在《3D数学基础:图形与... 阅读全文
posted @ 2015-07-10 01:22 W.Heisenberg 阅读(1054) 评论(0) 推荐(0) 编辑
摘要: 初始化Direct3D需要一下几个步骤:1. Create the ID3D11Device and ID3D11DeviceContext interfaces using the D3D11CreateDevice function.2. Check 4X MSAA quality level ... 阅读全文
posted @ 2015-07-10 00:45 W.Heisenberg 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 为实现更逼真的3D效果,我们需要光照和阴影为了理解光照,下面从数学方面来讲(Phong光照模型,参考书籍3d programming game with dx 11)Normal Vector为了计算光照,必须取得当前的法线向量在Δ p0 p1 p2中,定义u = p1 – p0 v = p2 – ... 阅读全文
posted @ 2015-07-03 23:43 W.Heisenberg 阅读(358) 评论(0) 推荐(0) 编辑
摘要: typedef __m128 XMVECTOR;To summarize,1. Use XMVECTOR for local or global variables.2. Use XMFLOAT2, XMFLOAT3, and XMFLOAT4 for class data members.(因为是... 阅读全文
posted @ 2015-06-30 16:04 W.Heisenberg 阅读(296) 评论(0) 推荐(0) 编辑
摘要: Direct3D is basically a state machine不会改变直到我们改变以下是渲染的设置1. ID3D11RasterizerState: This interface represents a state group used to configure the rasteri... 阅读全文
posted @ 2015-06-30 00:37 W.Heisenberg 阅读(246) 评论(0) 推荐(0) 编辑
摘要: A input layout一般的顶点格式struct Vertex1{ XMFLOAT3 Pos; XMFLOAT4 Color;};struct Vertex2{ XMFLOAT3 Pos; XMFLOAT3 Normal; XMFLOAT2 Tex0; XM... 阅读全文
posted @ 2015-06-30 00:16 W.Heisenberg 阅读(525) 评论(1) 推荐(0) 编辑
摘要: Chapter 1 Linear Equations in Linear Algebra1.1 Systems of Linear Algebradefinition :A system of linear equation (linear system)is a collection of one... 阅读全文
posted @ 2014-10-12 15:57 W.Heisenberg 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 操作系统中管理分层存储器体系的部分称为存储管理器(memory manager)。它的任务是有效地管理内存,即记录哪些内存是正在使用的,哪些内存是空闲的;在进程需要时为其分配内存,在进程使用完后释放内存。无存储器抽象在只有操作系统和一个用户进程的情形下,组织内存的三种简单方法(当然也存在其他方案)不... 阅读全文
posted @ 2014-04-22 16:34 W.Heisenberg 阅读(330) 评论(0) 推荐(0) 编辑