I'm a noob here, I hope I respect the way of posting.
My problem is the following:
1. I played with the Ogre Particle Lab, and I saved (actually copied) a particle system (the one called "cross")
2. I put the .particle, referenced .material and img texture in my Resource directory
3. When I load the particle system, I get something ressembling the original, but seems to miss the material / texture.
I tried some variations, but no success.
The rendered scene is here:
http://imgur.com/QHbPoKB
The C++ code is the following:
Code: Select all
// Set Ambient Light
mSceneMgr->setAmbientLight(Ogre::ColourValue(0, 0, 0));
mSceneMgr->setShadowTechnique(Ogre::SHADOWTYPE_STENCIL_ADDITIVE);
// Skybox
//mSceneMgr->setSkyBox(true, SKYBOX, SKYBOXDISTANCE);
// Main light
Ogre::Light* light = mSceneMgr->createLight("MainLight");
// Sandbox
Ogre::ParticleSystem* sunParticle = mSceneMgr->createParticleSystem("Cross", "Cross");
Ogre::SceneNode* particleNode = mSceneMgr->getRootSceneNode()->createChildSceneNode("Particle");
particleNode->attachObject(sunParticle);
// sandbox
return;
Code: Select all
Parsing script Bump.particle
Parsing script Cross.particle
...
Parsing script Myparticlesun.particle
...
Parsing script Flare.000.material
Code: Select all
particle_system Cross
{
material Flare
particle_width 152.940002441406
particle_height 154.119995117188
quota 2000
cull_each false
sorted false
local_space false
iteration_interval 0.0
nonvisible_update_timeout 0.0
billboard_type point
billboard_origin center
billboard_rotation_type texcoord
point_rendering false
accurate_facing false
emitter Point
{
position 0.0 0.0 0.0
direction 1.0 0.0 0.0
angle 0
emission_rate 200
velocity_min -1000
velocity_max 1000
time_to_live_min 3
time_to_live_max 3
duration_min 0
duration_max 0
repeat_delay_min 0
repeat_delay_max 0
colour_range_start 1 1 1 1
colour_range_end 0.666667 0 0 1
}
emitter Point
{
position 0.0 0.0 0.0
direction 0.0 0.0 1.0
angle 0
emission_rate 200
velocity_min -1000
velocity_max 1000
time_to_live_min 3
time_to_live_max 3
duration_min 0
duration_max 0
repeat_delay_min 0
repeat_delay_max 0
colour_range_start 1 1 1 1
colour_range_end 0.333333 0 1 1
}
emitter Point
{
position 0.0 0.0 0.0
direction 0.0 1.0 0.0
angle 0
emission_rate 200
velocity_min -1000
velocity_max 1000
time_to_live_min 3
time_to_live_max 3
duration_min 0
duration_max 0
repeat_delay_min 0
repeat_delay_max 0
colour_range_start 1 1 1 1
colour_range_end 0 1 0.498039 1
}
affector LinearForce
{
force_vector 0.0 -45.62 0.0
force_application add
}
affector Scaler
{
rate 16.47
}
}
/////
material Flare
{
technique
{
pass
{
lighting off
depth_write off
scene_blend add
texture_unit
{
Flare.000.png
}
}
}
}
Code: Select all
C:\OGRE\bin\Resources>dir Flare.000.png
Volume in drive C is OS
Volume Serial Number is A206-B642
Directory of C:\OGRE\bin\Resources
11/24/2010 08:54 PM 27,754 Flare.000.png
1 File(s) 27,754 bytes
Many thanks,
Julien