会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
dust_fly
博客园
首页
新随笔
联系
订阅
管理
2015年5月27日
龙书11_chapter_6 二:HillsDemo解析
摘要: 书中HillsDemo 关键是类的结构,GeometryGenerator的组成和应用;MeshData的构成,来存储Mesh的vertex和index数据;class GeometryGenerator{public: struct Vertex { Vertex(){}...
阅读全文
posted @ 2015-05-27 15:02 dust_fly
阅读(201)
评论(0)
推荐(0)
2015年5月25日
龙书11_chapter_6 一:一般绘制流程
摘要: 先看BoxDemo的前几节,1.vertex input Layout2.vertexBuffer3.IndexBuffer4.vertexShader5.constant Buffer6.pixelShader7.renderState8.effect1.vertex input LayoutOn...
阅读全文
posted @ 2015-05-25 19:02 dust_fly
阅读(414)
评论(0)
推荐(0)
2015年5月23日
龙书11_chapter_4 三:每一小节关键点
摘要: 4.1.3 纹理数据格式 2D纹理即一个数据矩阵,每个元素可以是color值,也可是float3向量值 格式例子:DXGI_FORMAT_R32G32B32_FLOAT(每个纹素为3个32位的float型,可存储3D vector) DXGI_FORMAT_R8G8B...
阅读全文
posted @ 2015-05-23 05:53 dust_fly
阅读(404)
评论(0)
推荐(0)
龙书11_chapter_4 二:习题中的Adapter
摘要: 如何计算设备的Adapter数?主要参考MSDN: EnumAdapters在d3dApp.cpp文件InitDirect3D()接口中: HR(dxgiFactory->CreateSwapChain(md3dDevice, &sd, &mSwapChain)); //begin 检测...
阅读全文
posted @ 2015-05-23 04:32 dust_fly
阅读(235)
评论(0)
推荐(0)
龙书11_chapter_4 一: GameTime解读
摘要: 看龙书DX11,首先是第四章,本文对GameTime类进行解释问:此类主要实现了什么功能?答:Returns the total time elapsed since Reset() was called, NOT counting anytime when the clock is stopped...
阅读全文
posted @ 2015-05-23 04:13 dust_fly
阅读(273)
评论(0)
推荐(0)
2015年4月13日
Unity3D入门 到精通 第七章物理引擎应用小结
摘要: 实践了书上第七章的CrazyBall,1.Camera的尾随,本例中没有使用已有的CarmeraFollow脚本,而是直接根据Ball的pos来跟随,当然也使用了插值,并设置了阻尼弹簧方式: transform.position = Vector3.Lerp(transform.p...
阅读全文
posted @ 2015-04-13 21:38 dust_fly
阅读(294)
评论(0)
推荐(0)
2015年4月12日
Unity3D入门 俄罗斯方块总结(二)
摘要: 俄罗斯实现中使用Unity语法总结...1.InstantiateInstantiate中克隆一个Object以及他的子结点,也可包括位置信息。a.CreateBlock()函数内,随机选取七种block的gameObject里一种,进行动态block实例化: Instantiate(...
阅读全文
posted @ 2015-04-12 04:02 dust_fly
阅读(1203)
评论(0)
推荐(0)
Unity3D入门 俄罗斯方块总结(一)
摘要: Unity3d 俄罗斯方块的绘制,代码解释
阅读全文
posted @ 2015-04-12 02:23 dust_fly
阅读(4376)
评论(0)
推荐(0)
2015年3月15日
CUDA + DX10 注意:block内部thread矩阵的形式
摘要: 今天用cuda block内thread的形式来修改 两个for循环的 六面体一直不对。// for (int i= 0;i<boxPointNums-1;i++)// { unsigned int j= threadIdx.x; unsigned int...
阅读全文
posted @ 2015-03-15 12:52 dust_fly
阅读(212)
评论(0)
推荐(0)
2015年3月14日
CUDA + DX10 buffer的链接
摘要: vertexBuffer绑定cuda资源时候,注意desc的申请模式
阅读全文
posted @ 2015-03-14 18:44 dust_fly
阅读(262)
评论(0)
推荐(0)
下一页
公告