摘要: 在载入天龙.Scene文件时, 会发现有一种类型为ParticleSystem的场景对象, 它是用来指定会出现的特效类型. 这些特效类型都是在all.particle文件里定义的. 而要正确解析这个特效文件, 就需要对OGRE粒子系统进行扩展. 其中涉及到的内容主要包括3个方面:1. 修改函数ParticleSystemManager::parseScript(DataStreamPtr&... 阅读全文
posted @ 2010-11-13 09:34 vibilin 阅读(966) 评论(0) 推荐(0) 编辑
摘要: 天龙中要播动画的场景物件, 都有相应的frame文件(也就是skeleton文件). 虽然天龙的frame也是通过OGRE的SkeletonSerializer来序列化, 但是其对OGRE的SkeletonSerializer做了一些修改, 所以为了正确导入frame文件, 我也对自己的OGRE(1.71版本)做了修改. 读取frame文件的改动主要在SkeletonSerializer::rea... 阅读全文
posted @ 2010-10-25 22:51 vibilin 阅读(715) 评论(0) 推荐(0) 编辑
摘要: scene文件描述中包含有地形, 场景物件, 灯光, 模型等信息. 之前的地形信息就是从scene文件获得的, 这次接着把场景物件, 灯光, 模型都显示出来. 天龙的场景物件除了大部分的静态物件, 还有一些要播动画的物件. 这次只是简单的把所有物件导进来, 还没有做动画处理, 过几天再把它实现 ;) (这次把灯光加进来后, 效果很不一样) 阅读全文
posted @ 2010-10-23 12:16 vibilin 阅读(1202) 评论(0) 推荐(0) 编辑
摘要: 最近拿到网友发来的天龙前身 - 武侠世界的源代码。 仔细看了一下, 受益匪浅. 所以抱着学习的目的, 自己也动手写一个天龙的场景查看器. 以下是刚实现的地形载入功能(还没有加入光照帖图). 阅读全文
posted @ 2010-10-12 09:56 vibilin 阅读(945) 评论(0) 推荐(0) 编辑
摘要: 刚开始接触OGRE, 看到网上关于天龙八部的文章比较多, 所以自己也从天龙八部着手学习OGRE开发. 关于天龙的AXP数据格式, 在网上已有很完整的解析, 这里就不累赘再说了. 截图:使用QT来开发, 由于也是刚接触QT来开发界面, 渲染窗口和主窗口的位置没有调整好, 不过影响不大 :)以下是对应Archive的代码:Archive代码 阅读全文
posted @ 2010-10-05 07:46 vibilin 阅读(2796) 评论(0) 推荐(0) 编辑
摘要: I used a model of the game - Gears of War, to show the HDR and SSAO effect; and combined it in the final scene. No new things, just try to show the special result.1.) scene without SSAO2.) scene with ... 阅读全文
posted @ 2010-06-06 00:47 vibilin 阅读(482) 评论(0) 推荐(0) 编辑
摘要: Last time, I presented a SSAO code with Direct3D 9.0 and hlsl shader 2.x, but the effect was not so good. So, this timeI rewrite the SSAO code base on my new framework which is constructed of theDirec... 阅读全文
posted @ 2010-04-07 00:01 vibilin 阅读(683) 评论(0) 推荐(0) 编辑
摘要: Texture and normal mapping are standard effectsin modern game.However, another bump mapping technique - Parallax Mampping, with offset limiting is today considered the state of art of real-time bump m... 阅读全文
posted @ 2010-03-07 23:07 vibilin 阅读(393) 评论(0) 推荐(0) 编辑
摘要: Hi, all! This time, my code just show a way toachieve the special effect - Lens Flare. It's verysimple but beautiful.Enjoy it, thank's!screenshot:download source code from here. 阅读全文
posted @ 2010-03-03 00:05 vibilin 阅读(330) 评论(0) 推荐(0) 编辑
摘要: This ismy SSAO implementation by useing D3DX9 API.I had triedsome other solutions, and this is the best SSAO algorithm thatI can found togives good result.If you have a better solution, please let me ... 阅读全文
posted @ 2010-02-28 14:24 vibilin 阅读(711) 评论(0) 推荐(0) 编辑