Smoke particle effect in the Ogre3d

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
Ananditha Roy
Kobold
Posts: 30
Joined: Wed Mar 14, 2012 2:25 pm

Smoke particle effect in the Ogre3d

Post by Ananditha Roy »

Hii,

1) First i have added the Particle Folder from the OgreSdk( Contains Smoke.particle)
2)Added the Smoke.material And smoke.png and smokecolors.ong
3) After this i have added the Plugin = Plugin_ParticleFX in the plugins.cfg
Here is my code

Code: Select all

# Defines plugins to load

# Define plugin folder
PluginFolder=./

# Define plugins
Plugin=RenderSystem_GL
Plugin=Plugin_ParticleFX
4) I have added the particle path in the resources.cfg( adding the particle file in this get crash )

Code: Select all

# Resource locations to be added to the 'bootstrap' path
# This also contains the minimum you need to use the Ogre example framework
[Bootstrap]
Zip=media/packs/SdkTrays.zip

# Resource locations to be added to the default path
[General]
FileSystem=media/models
FileSystem=media/particle
FileSystem=media/materials/scripts
FileSystem=media/materials/textures
FileSystem=media/RTShaderLib
FileSystem=media/RTShaderLib/materials

Zip=media/packs/cubemap.zip
Zip=media/packs/cubemapsJS.zip
Zip=media/packs/skybox.zip
6) Finally i did all all the settings, my code is here

Code: Select all

 mPivotNode = OgreFramework::getSingletonPtr()->m_pSceneMgr->getRootSceneNode()->createChildSceneNode();  // create a pivot node
   
    // create a child node and attach an ogre head and some smoke to it
    Ogre::SceneNode* headNode = mPivotNode->createChildSceneNode(Ogre::Vector3(100, 0, 0));
    headNode->attachObject(OgreFramework::getSingletonPtr()->m_pSceneMgr->createEntity("Head", "ogrehead.mesh"));
   headNode->attachObject(OgreFramework::getSingletonPtr()->m_pSceneMgr->createParticleSystem("Smoke", "Examples/Smoke"));
7) i run this , i got the below error
An exception has occurred: OGRE EXCEPTION(2:InvalidParametersException): Cannot find requested emitter type. in ParticleSystemManager::_createEmitter at /Users/davidrogers/Documents/Ogre/ogre-v1-7/OgreMain/src/OgreParticleSystemManager.cpp (line 353)

Code: Select all

8) getting crash at 
(void)renderOneFrame:(id)sender
{
    if(!OgreFramework::getSingletonPtr()->isOgreToBeShutDown() &&
       Ogre::Root::getSingletonPtr() && Ogre::Root::getSingleton().isInitialised())
    {
		if(OgreFramework::getSingletonPtr()->m_pRenderWnd->isActive())
		{
			[quote][b]mStartTime = OgreFramework::getSingletonPtr()->m_pTimer->getMillisecondsCPU();
[/b][/quote]( getting crash here)

Please Help me , it is very urgent for me , i cant able to find the solution for this , Plzzzz :( :( :( :( :( :( :( :(
bstone
OGRE Expert User
OGRE Expert User
Posts: 1920
Joined: Sun Feb 19, 2012 9:24 pm
Location: Russia
x 201

Re: Smoke particle effect in the Ogre3d

Post by bstone »

Look into the log file. I guess there's a problem with discovering all required resources. Maybe the paths are not correct. The log file should shed some light on that.
Ananditha Roy
Kobold
Posts: 30
Joined: Wed Mar 14, 2012 2:25 pm

Re: Smoke particle effect in the Ogre3d

Post by Ananditha Roy »

Thanks For the Quick reply ,
sorry for my innocence ,, Where will be the log file.
bstone
OGRE Expert User
OGRE Expert User
Posts: 1920
Joined: Sun Feb 19, 2012 9:24 pm
Location: Russia
x 201

Re: Smoke particle effect in the Ogre3d

Post by bstone »

Look for 'Ogre.log' alongside your .exe file if you haven't set a custom path for it.
Ananditha Roy
Kobold
Posts: 30
Joined: Wed Mar 14, 2012 2:25 pm

Re: Smoke particle effect in the Ogre3d

Post by Ananditha Roy »

Hiii,

I didnt find the ogre.log file for the iphone
bstone
OGRE Expert User
OGRE Expert User
Posts: 1920
Joined: Sun Feb 19, 2012 9:24 pm
Location: Russia
x 201

Re: Smoke particle effect in the Ogre3d

Post by bstone »

Err... iphone.. I have zero experience with that platform, but I guess the log file would go somewhere else on iphones. Maybe somebody else will help you with figuring out where exactly it is.
Ananditha Roy
Kobold
Posts: 30
Joined: Wed Mar 14, 2012 2:25 pm

Re: Smoke particle effect in the Ogre3d

Post by Ananditha Roy »

I found the ogre.cfg file , but not the log , It is displaying this , so i think
Added resource location '/Users/raghav/Library/Application Support/iPhone Simulator/5.0/Applications/B27BDE25-9E15-4105-8EEC-B922FEB1B233/sample.app/media/particle' of type 'FileSystem' to resource group 'General'
Ananditha Roy
Kobold
Posts: 30
Joined: Wed Mar 14, 2012 2:25 pm

Re: Smoke particle effect in the Ogre3d

Post by Ananditha Roy »

Thank you very much .Any one can help me on this plzz
Ananditha Roy
Kobold
Posts: 30
Joined: Wed Mar 14, 2012 2:25 pm

Re: Smoke particle effect in the Ogre3d

Post by Ananditha Roy »

Hi ,

How to load the Plugin manually in The Ogre3d
Thanks
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: Smoke particle effect in the Ogre3d

Post by masterfalcon »

Your config file has a couple errors.

First, you're not going to be using RenderSystem_GL on iOS. Pick either GLES or GLES2.
Second, try setting your plugin path to nothing. They are statically linked so there is no separate file. Like this:

Code: Select all

 PluginFolder=
Ananditha Roy
Kobold
Posts: 30
Joined: Wed Mar 14, 2012 2:25 pm

Re: Smoke particle effect in the Ogre3d

Post by Ananditha Roy »

hi,

Thank you very much , i solved my issue . Now i can able to display smoke effect . Now i need to my own partical effects . How can i create ? Is their Particle editor for mac and iphone .
Thanks in advance