scratchyrice
01-02-2009 18:30:23
Why is it that when i add a particle system to my scene, With caelum enabled, The particles seem to go "behind" the clouds?
Cheers.
Scratchy
Cheers.
Scratchy
scratchyrice
01-02-2009 18:30:23
scratchyrice
02-02-2009 15:16:59
cdleonard
03-02-2009 14:18:51
scratchyrice
03-02-2009 23:16:50
Ogre::ParticleSystem * psys = mySceneEnvironment->mySceneManager->ogreSceneManager->createParticleSystem("rain", "Precipitation/Rain");
Ogre::SceneNode * rnode = mySceneEnvironment->mySceneManager->ogreSceneManager->getRootSceneNode()->createChildSceneNode();
rnode->translate(0, 3000, 0, Ogre::Node::TS_PARENT);
rnode->attachObject(psys);
particle_system Precipitation/Rain
{
material Precipitation/Droplet
particle_width 10
particle_height 100
cull_each false
quota 10000
// Make common direction straight down (faster than self oriented)
billboard_type oriented_common
common_direction 0 -1 0
// Area emitter
emitter Box
{
angle 0
emission_rate 1000
time_to_live 5
direction 0 -1 0
velocity 50
colour_range_start 0.3 1 0.3
colour_range_end 0.7 1 0.7
width 1000
height 1000
depth 0
}
// Gravity
affector LinearForce
{
force_vector 0 -200 0
force_application add
}
}
material Precipitation/Droplet
{
technique
{
pass
{
scene_blend colour_blend
depth_write off
texture_unit
{
texture basic_droplet.png
}
}
}
}
cdleonard
04-02-2009 10:48:08
scratchyrice
04-02-2009 16:06:12