2014年4月18日
摘要:
error:1.mul' implicit truncation of vector type2.matrixXXX: array dimensions of(unknown scope entry kind) must be explicit------------(XXXX(float3X4 m...
阅读全文
posted @ 2014-04-18 11:42
minggoddess
阅读(3667)
推荐(0)
2014年4月15日
摘要:
朋友遇到的 把dx, windows sdk ,vs2010照着成功人士的配置好 应该就可以了
阅读全文
posted @ 2014-04-15 18:06
minggoddess
阅读(676)
推荐(0)
摘要:
好古老的代码。。vc98从csdn上down的一个 vc6 是考试版的 编译起来少很多lib错误是nafxcwd.lib 找不到换这个版本就好使了http://download.csdn.net/detail/songxiaobao1988/4530796----------------------...
阅读全文
posted @ 2014-04-15 17:58
minggoddess
阅读(685)
推荐(0)
2014年3月20日
摘要:
我和朋友们面到的c++试题整理虚表 static const sizeof 可构造不可继承的类stl Iterator失效 map vector vector的removed_if 优化--------------sizeofclass A{ int i; virtual int fun1(){};}A a;sizeof(a)=8//32位机class B{ int i; virtual int fun1(){}; virtual int fun2(){};}B b;sizeof(b)=8//32位机 ,虚表struct 和class的区别struct public class pr...
阅读全文
posted @ 2014-03-20 17:25
minggoddess
阅读(245)
推荐(0)
2014年3月4日
摘要:
自由顶点格式(flexible vertex format,FVF)http://www.cnblogs.com/xmzyl/articles/1604096.html if( SUCCEEDED( g_pd3dDevice->BeginScene() ) ) { // Draw the triangles in the vertex buffer. This is broken into a few // steps. We are passing the Vertices down a "stream", so first we need /...
阅读全文
posted @ 2014-03-04 11:26
minggoddess
阅读(491)
推荐(0)
2014年2月25日
摘要:
if(SUCCEEDED(g_pTexture->GetSurfaceLevel(0,&pSurface))){pd3dDevice->SetRenderTarget(0,pSurfac);SAFE_RELEASE(pSurfac);}GetSurfaceLevel这个是不是把一个surface和texture给关联起来了对那个suiface的修改就是对texture的修改?SetRenderTarget然后又把这个surface设置到和backbuffer关联所以最后屏幕显示的内容被自动存进了g_pTextureParametersLevel [in] UINT Iden
阅读全文
posted @ 2014-02-25 17:22
minggoddess
阅读(962)
推荐(0)
摘要:
在d3d 2010 june这个版本里的samples不知道为什么SimpleSample Sample这个 它的documents基本等于没有Starting point for new Direct3D samples.====================================================PathSourceSDK root\Samples\C++\Direct3D\SimpleSampleExecutableSDK root\Samples\C++\Direct3D\Bin\x86 or x64\SimpleSample.exeSample Overvi
阅读全文
posted @ 2014-02-25 12:10
minggoddess
阅读(755)
推荐(0)
2014年2月24日
摘要:
D3DDEVTYPE_REF使用REF设备,用软件模拟Direct3D API照理说是为了让电脑能跑本机不能硬件执行的渲染命令的但我pDeviceSettings->d3d9.DeviceType = D3DDEVTYPE_REF;就会报failed creating the Direct3d device当我用PIX 的trigger时 modify d3d device Force REF也会引发同样的error先记录下来重新装了遍dx的sdk就好了我估计是因为 装了俩dx 然后卸掉了其中一个 就把什么公用的东西给卸载了导致这个异常吧
阅读全文
posted @ 2014-02-24 20:07
minggoddess
阅读(753)
推荐(0)
2014年2月20日
摘要:
必考的就是渲染管线了几何阶段obj space->world space->eyespace->project to CVV to clip(frustum culling)->project to screen coordinate space->primitive assmbly光栅阶段->rasterization->pixel operation(alpha test, stencil test, depth test, blending..)还是用我自己的话总结一下吧 之前是几个变换用矩阵乘就可以viewspace之后是cvv裁剪 再投到屏幕
阅读全文
posted @ 2014-02-20 14:26
minggoddess
阅读(416)
推荐(0)
2013年12月26日
摘要:
template Header { WORD major; WORD minor; DWORD flags;}template Vector { FLOAT x; FLOAT y; FLOAT z;}template Coords2d { FLOAT u; FLOAT v;}.......==================================================Mesh Body1 { 303; //下面点(r,g,b)的个数 0.000000;-0.061426;0.938846;, -0.049693;0.200773...
阅读全文
posted @ 2013-12-26 16:37
minggoddess
阅读(458)
推荐(0)