greennymph
10-02-2010 11:16:42
Hi, I'm very new to Caelum so forgive me if the question is too simple..
How can I set the colour of a sun, and make the sunset view manually. Do I need to set an image?
I created a sun when initializing Caelum:
First, it seems that setBodyColour doesn't seem to make any change.
Second, setLightColour only makes the colour of the terrain changes(seems like it just impacts the reflections on the terrain, but I expect some effect in the air and sky)
Third, after the updateSubcomponents (Real timeSinceLastFrame) is being called in frameEnded(), even reflections on the terrain changed back. Could not see any effect of the sun colour any more.
Could anyone help me?
Thanks!
How can I set the colour of a sun, and make the sunset view manually. Do I need to set an image?
I created a sun when initializing Caelum:
Caelum::SphereSun* sun= new Caelum::SphereSun(m_sceneMgr, m_caelumSystem->getCaelumCameraNode ());
sun->setBodyColour (Ogre::ColourValue(1, 0, 0, 1));
sun->setLightColour(Ogre::ColourValue(1, 0, 0, 1));
m_caelumSystem->setSun (sun);
First, it seems that setBodyColour doesn't seem to make any change.
Second, setLightColour only makes the colour of the terrain changes(seems like it just impacts the reflections on the terrain, but I expect some effect in the air and sky)
Third, after the updateSubcomponents (Real timeSinceLastFrame) is being called in frameEnded(), even reflections on the terrain changed back. Could not see any effect of the sun colour any more.
Could anyone help me?
Thanks!