我正在为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
https://stackoverflow.com/questions/9818948
复制相似问题