Question about the clouds

bdq

20-01-2009 20:07:47

When I used Caelum-0.3.0 with our system, the clouds looked very good.
Today I have just begun to use Caelum-0.4.0 with our system. but the clouds could not cover the whole sky. Why? How can I fix this problem. Thanks.
This is what clouds looks like in our system with Caelum-0.4.0.

guru

20-01-2009 21:24:44

It might have something to do with you far clip plane, try setting it to some larger value like
camera->setFarClipDistance(64000);

bdq

21-01-2009 15:09:18

Thank you - guru - for so quick reponse!
I tried to use "camera->setFarClipDistance(64000);". The clouds covered more sky space, but there were still some spaces not covered by clouds.
Then I tried use "camera->setFarClipDistance(0);" and set the height of cloud layer to 1000. Finally the clouds covered the whole sky, but the clouds did not look as good as the clouds in Caelum-0.3.0. See the attachment.
Do I need use "setMeshParameters" to change the mesh of the cloud layer?
Why can Caelum-0.3.0 always draw clouds correctly? But Caelum-0.4.0 can not. Are there big changes in clouds in Caelum-0.4.0?

Fish

22-01-2009 02:31:10

If you're looking for denser cloud coverage like in your first screen shot then try playing with the FlatCloudLayer::setCloudCover() function.

-Fish

cdleonard

25-01-2009 07:52:58

Why can Caelum-0.3.0 always draw clouds correctly? But Caelum-0.4.0 can not. Are there big changes in clouds in Caelum-0.4.0?

Yes; there are incompatible changes between 0.3 and 0.4 clouds. Clouds in 0.3 were drawn on a curved plane that moved with the camera. Clouds in 0.4 are drawn on a flat plane which is positioned in world coords. It's not possible to perfectly reproduce behaviour from 0.3.

Clouds in 0.4 do have more configurable parameters; maybe it's possible to get them to look similar to 0.3.