摘要: This time I will show you the implement of Deferred Shading, I hope it can help you to know more about the detail of the theorem. Enjoy it, Thanks!screenshot:You can download the source code from here... 阅读全文
posted @ 2010-02-20 21:27 vibilin 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 经过几天的努力, 找了很多资料, 也看了很多论文, 终于实现了SSS效果. 本来想采用Translucent Shadow Maps, 最后还是使用了另外的方法实现. 截图: (按F1 激活/禁用 diffuse color) 1.) 没有使用diffuse color的效果: 2.) 使用diffuse color后的效果: 注: 如果应用在人物皮肤上, 效果会更好看些 ^_^! 程序代码: /... 阅读全文
posted @ 2009-12-11 14:56 vibilin 阅读(814) 评论(0) 推荐(0) 编辑
摘要: 根据如下公式, 实现了一个HDR(High Dynamic Range)效果.Tone Map = (HDR Scene) + (Blur Scene) ;Blur Scene = ( (HDR Scene) => (1/4 Size Frame) => (VerticalGaussian Filter) => (Horizontal Gaussian Filter) ); 截图... 阅读全文
posted @ 2009-12-02 15:30 vibilin 阅读(710) 评论(0) 推荐(0) 编辑
摘要: 分别采用 (PCF)Percentage Closer Filtering 和 Gaussian Blur 方式实现了阴影效果. (开始由于坐标问题, 困惑了很久, 不过最后还是出效果了)注: 按 S 键切换阴影类型, W键显示/关闭线框模式.PCF效果:Gaussian Blur效果:程序代码: /Files/vibilin/SoftShadowMap.rarvibilin 2009-11-27... 阅读全文
posted @ 2009-11-27 22:32 vibilin 阅读(746) 评论(0) 推荐(0) 编辑
摘要: 采用了World-View-Projection Matrix实现快速裁剪, 比较简单, 不过非常有效.裁剪前, 一共有200个Sphere(包括可见的和不可见的):裁剪后:程序代码: /Files/vibilin/FrustumCuller.rarvibilin 2009-11-24 20:10 发表评论 阅读全文
posted @ 2009-11-24 20:10 vibilin 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 经过近一个月的努力, 终于实现了一些基本的功能, 不过由于时间原因, 剩下的Z-Buffer和D3DFILLMODE渲染模式等功能, 将等以后有时间后再补上. 非常感谢流失的时光 的代码分享以及ChunkHao 的经验交流. 写这个模拟程序目的也是为了总结一些以前学过的很基础的知识, 欢迎大家互相学习交流.程序代码: /Files/vibilin/SoftRender.rar vibilin 20... 阅读全文
posted @ 2009-11-17 17:23 vibilin 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 根据Skinned Mesh的基本原理, 实现骨骼动画. 程序中并没有使用D3DXLoadSkinMeshFromXof, ID3DXSkinInfo::UpdateSkinnedMesh等辅助函数, 完全是手动编码读取和处理蒙皮信息.并将蒙皮信息应用到骨骼和Mesh上.程序截图:程序代码: /Files/vibilin/SkeletalAnimation.rar 相关文章参考:Skinned M... 阅读全文
posted @ 2009-11-15 19:16 vibilin 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 参考 Spherical Harmonic Lighting, the Gritty Details, by Robin Green. http://www.research.scea.com/gdc2003/spherical-harmonic-lighting.html文档, 实现了使用SH渲染由D3DXCreateBox和D3DXCreateTorus建造的模型的阴影效果.程序代码和采样数据... 阅读全文
posted @ 2009-10-26 15:53 vibilin 阅读(470) 评论(0) 推荐(0) 编辑
摘要: 将由D3DXCREATE* 函数创建的模型数据导出到文件后, 再导入文件的数据重构模型.以下分别是程序截图和代码片断:最后附上可执行程序和CMeshIO的实现代码:/Files/vibilin/MeshIO.rar vibilin 2009-10-23 17:13 发表评论 阅读全文
posted @ 2009-10-23 17:13 vibilin 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 1. 安装stackless Python2.5地址: http://www.stackless.com/binaries/python-2.5.2-stackless.msi 注意: 如果需要在Vista系统安装, 必须使用2.6版本, 不然将会出现ntdll.dll运行错误.2. 下载stackless Python2.5依赖包,解压到stackless Python2.5的安装目录下. 将解压后目录下的地址: http://www.stackless.com/binaries/stackless-252-export.tar.bz23. 下载msvcr71d.dll, 解压到stackl 阅读全文
posted @ 2009-08-29 09:32 vibilin 阅读(349) 评论(0) 推荐(0) 编辑