我正在为iphone使用ogre3d中的粒子效应。
Ogre::ParticleSystem* sunParticle = OgreFramework::getSingletonPtr()->m_pSceneMgr- >createParticleSystem("Smoke", "Examples/Smoke");
sunParticle = OgreFramework::getSingletonPtr()->m_pSceneMgr->createParticleSystem("Smoke", "Examples/Smoke");
Ogre::SceneNode* particleNode = OgreFramework::getSingletonPtr()->m_pSceneMgr->getRootSceneNode()->createChildSceneNode("Particle");
particleNode->attachObject(sunParticle);这是我的插件代码
# Defines plugins to load
# Define plugin folder
PluginFolder=./
# Define plugins
Plugin=RenderSystem_GL
Plugin=Plugin_ParticleFX在staticloader中也包含手动安装。
#ifdef OGRE_STATIC_ParticleFX
mParticleFXPlugin = OGRE_NEW ParticleFXPlugin();
root.installPlugin(Plugin_ParticleFX);
root.loadPlugin(mParticleFXPlugin);endif
我还添加了.particle文件,我认为我遵循了发生异常的所有步骤: OGRE异常(2:InvalidParametersException):无法在.particle系统管理器::createSystem at (第327行)中找到所需的模板“示例/烟雾”(第327行)-- 2012-03-22 14:06:46.757 iphonesampleOgreapp23041:207个应用程序在应用程序启动结束时将有一个根视图控制器。
发布于 2012-03-28 14:00:56
您还需要指定资源文件夹,以便能够使用实际的粒子脚本。你确定你做得对吗?
看看这个教程。
我真的认为这个错误消息听起来像是重新源没有被正确初始化或者是-if -粒子脚本就是错误的。
https://stackoverflow.com/questions/9818948
复制相似问题