Mizipzor
15-05-2007 15:50:02
Hi, I got a wierd error here I cant solve.
I want to make a particle effect. I have "Example.particle" defined in the folder "data"; http://rafb.net/p/DWchAs31.html . Its more or less identical to the file bundled with ogre. Ive just changed the name of the particle and the material. The material is in the folder "data\Materials\flare.material"; http://rafb.net/p/6MGfoe74.html .
Then, when I import them I do this:
It worked fine until I tried to add the particles now. Now I get the error
on that last line.
Any ideas whats wrong?
[edit] fixed broken links
I want to make a particle effect. I have "Example.particle" defined in the folder "data"; http://rafb.net/p/DWchAs31.html . Its more or less identical to the file bundled with ogre. Ive just changed the name of the particle and the material. The material is in the folder "data\Materials\flare.material"; http://rafb.net/p/6MGfoe74.html .
Then, when I import them I do this:
renderer.loadPlugin("Plugin_ParticleFX")
# Set resources
rm = ogre.ResourceGroupManager.getSingleton()
rm.addResourceLocation("data","FileSystem", "General")
rm.addResourceLocation("data/Materials","FileSystem", "General")
rm.initialiseAllResourceGroups()
It worked fine until I tried to add the particles now. Now I get the error
ogre.renderer.OGRE._ogre_exceptions_.OgreInvalidParametersException: OGRE EXCEPTION(2:): Cannot find requested renderer type. in ParticleSystemManager::_createRenderer at \Development\ogrenew\OgreMain\src\OgreParticleSystemManager.cpp (line 386)
on that last line.
Any ideas whats wrong?
[edit] fixed broken links