IrrLicht引擎研究
鬼火引擎研究
摘要: 下面创建的是由start0.bmp - start9.bmp 组成的材质动画// 加载材质core::array startmovie;for (int i = 0; i getTexture(path); startmovie.push_back(tex);}// 创建动画anim = pSceneMgr->createTextureAnimator(startmovie, 40);// s... 阅读全文
posted @ 2006-07-23 21:42 安徽飞雪游戏工作室 阅读(792) 评论(3) 推荐(0) 编辑
摘要: 可自动伸缩的IGUIImages: http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=12951 (C++) Simple speed profiler: http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=13069 (C++) GUI viewport class: http:... 阅读全文
posted @ 2006-07-23 21:03 安徽飞雪游戏工作室 阅读(2663) 评论(0) 推荐(0) 编辑
摘要: 很多游戏都有Credits show, 如何实现呢 ? 请看: Easy scrolling credits, just stick this in your main loop and replace ITEXTUREHERE with your itexture pointer, and replace driver and device etc if you use custom-n... 阅读全文
posted @ 2006-07-23 21:02 安徽飞雪游戏工作室 阅读(397) 评论(2) 推荐(0) 编辑
摘要: [http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=12238] So far my contributions for this community had been rather miserable, so I decided it's time to make up for it by posting piece of code... 阅读全文
posted @ 2006-07-23 21:01 安徽飞雪游戏工作室 阅读(552) 评论(0) 推荐(0) 编辑
摘要: 在Irrlicht中的人物添加武器 其实相当简单:找到关节然后attach上去就ok了。 scene::IAnimatedMesh* pManMesh = smgr->getMesh("../../media/noblade.ms3d"); scene::IAnimatedMeshSceneNode* pnMan = smgr->addAnimatedMeshSceneNode( pManMes... 阅读全文
posted @ 2006-07-23 21:00 安徽飞雪游戏工作室 阅读(790) 评论(2) 推荐(0) 编辑
摘要: 假设我们要使某一24位色的Texture(不带Alpha)对应的特定颜色在render时透明,可以先调用makeColorKeyTexture创建一个 1 bit alpha channel of the texture,然后把MaterialType设为EMT_TRANSPARENT_ALPHA_CHANNEL就搞定了。废话不多说了, 请看代码: scene::IAnimatedMesh* m... 阅读全文
posted @ 2006-07-23 20:59 安徽飞雪游戏工作室 阅读(621) 评论(0) 推荐(0) 编辑
摘要: irrlicht有自己的ui系统,不用再去找其他的ui系统来挂载了.下面介绍一下irrlicht UI系统的基本使用方法.我用一个hello world的工程来讲解.因为代码量并不多,就将所有的代码都贴出来了. #include #include //头函数,因为将调用GetWindowsDirectory()函数获得系统目录所以包含了 using namespace irr; us... 阅读全文
posted @ 2006-07-23 20:58 安徽飞雪游戏工作室 阅读(2799) 评论(6) 推荐(0) 编辑
摘要: 中国在国际上的地位日益提高,不知为什么好像对这些写引擎的大牛们没什么影响,ogre,Irrlicht都不能直接支持中文,在一个前辈irrlicht0.9支持中文的基础上将1.0版本的中文支持基本搞定了.我使用的freetype是2.2.1版本.修改后也使引擎对freetype产生了依赖.中文输入暂时还不支持清华紫光等在中文状态按回车输入英文的功能.如果实在需要可考虑再行改动.对引擎重新编译发现用... 阅读全文
posted @ 2006-07-23 20:57 安徽飞雪游戏工作室 阅读(846) 评论(3) 推荐(0) 编辑
摘要: 让Irrlicht支持中文后,编程过程中不免经常会用到char* 到wchar_t*的转换,看了上次转载的那篇关于L"xx"的文章,写了个小函数供使用. #define xmalloc(s) HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, (s))#define xfree(p) HeapFree (GetProcessHeap(), 0, (p))... 阅读全文
posted @ 2006-07-23 20:55 安徽飞雪游戏工作室 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 《The C++ Programming Language 3rd》中有这么两段话:from 4.3:A type wchar_ t is provided to hold characters of a larger character set such as Unicode. It is a distinct type. The size of wchar_t is implementati... 阅读全文
posted @ 2006-07-23 20:54 安徽飞雪游戏工作室 阅读(549) 评论(0) 推荐(0) 编辑