DarkHorizon
08-04-2009 00:25:52
Hello,
I'm having a problem with Caelum's precipitation system. I am using the following precipitation init code:
As you can see in the top image below, the rain appears as normal (and is quite nice, too
). However, when I attempt to move my avatar in a given direction, the rain begins 'falling' in that direction, as per the bottom image.
![](http://img11.imageshack.us/img11/4161/rainv.th.jpg)
I am not doing anything special with the camera at present; when the avatar is moved, I calculate the movement vector, and set the camera's position, offset by a fixed amount to give the camera a third-person viewpoint. The camera also uses lookAt() to observe the avatar's node.
What am I doing wrong?
[EDIT]
I tried tinkering with the precipitation in the CaelumLab, and it seems to be exhibiting the same anomaly I noted in my own game. I placed the camera high up, facing -Y. When moving backward, rain speeds up, direction changes a little but not greatly. When I move forward, the rain suddenly acts as though it is 'falling' along the Z axis.
I'm having a problem with Caelum's precipitation system. I am using the following precipitation init code:
m_lpCaelumSystem->setPrecipitationController(new Caelum::PrecipitationController(m_lpOgreSceneManager));
m_lpCaelumSystem->getPrecipitationController()->createViewportInstance(m_lpOgreRenderWindow->getViewport(0));
m_lpCaelumSystem->getPrecipitationController()->setPresetType(Caelum::PRECTYPE_RAIN);
m_lpCaelumSystem->getPrecipitationController()->setIntensity(0.8);
m_lpCaelumSystem->getPrecipitationController()->setSpeed(0.01);
As you can see in the top image below, the rain appears as normal (and is quite nice, too
![Smile :)]({SMILIES_PATH}/icon_smile.gif)
I am not doing anything special with the camera at present; when the avatar is moved, I calculate the movement vector, and set the camera's position, offset by a fixed amount to give the camera a third-person viewpoint. The camera also uses lookAt() to observe the avatar's node.
What am I doing wrong?
[EDIT]
I tried tinkering with the precipitation in the CaelumLab, and it seems to be exhibiting the same anomaly I noted in my own game. I placed the camera high up, facing -Y. When moving backward, rain speeds up, direction changes a little but not greatly. When I move forward, the rain suddenly acts as though it is 'falling' along the Z axis.