AlexDW
02-02-2010 09:30:33
Hi.
I don't seem to make the clouds working.
I am new to Caelum, but I managed to create a working environment, with the sun moving, day-night cycle and now i want to add some clouds.
i use the following initialization:
componentMask = static_cast<Caelum::CaelumSystem::CaelumComponent> (
Caelum::CaelumSystem::CAELUM_COMPONENT_SKY_DOME |
Caelum::CaelumSystem::CAELUM_COMPONENT_SUN |
Caelum::CaelumSystem::CAELUM_COMPONENT_CLOUDS |
Caelum::CaelumSystem::CAELUM_COMPONENT_POINT_STARFIELD |
Caelum::CaelumSystem::CAELUM_COMPONENT_MOON |
0);
and for the clouds i used
Caelum::FlatCloudLayer *layer = mCaelumSystem->getCloudSystem()->createLayerAtHeight(1000);
mCaelumSystem->getCloudSystem()->addLayer(layer);
Is there something else i need to consider for default clouds?
I looked for an answer and did not find any.
Thank you in advance.
PS. my near/far clip distances for the camera are 5 / 0
I don't seem to make the clouds working.
I am new to Caelum, but I managed to create a working environment, with the sun moving, day-night cycle and now i want to add some clouds.
i use the following initialization:
componentMask = static_cast<Caelum::CaelumSystem::CaelumComponent> (
Caelum::CaelumSystem::CAELUM_COMPONENT_SKY_DOME |
Caelum::CaelumSystem::CAELUM_COMPONENT_SUN |
Caelum::CaelumSystem::CAELUM_COMPONENT_CLOUDS |
Caelum::CaelumSystem::CAELUM_COMPONENT_POINT_STARFIELD |
Caelum::CaelumSystem::CAELUM_COMPONENT_MOON |
0);
and for the clouds i used
Caelum::FlatCloudLayer *layer = mCaelumSystem->getCloudSystem()->createLayerAtHeight(1000);
mCaelumSystem->getCloudSystem()->addLayer(layer);
Is there something else i need to consider for default clouds?
I looked for an answer and did not find any.
Thank you in advance.
PS. my near/far clip distances for the camera are 5 / 0