Thista
16-11-2010 15:55:11
I'm trying to create a basic sun in Caelum.
I need to be able to create (and see) the sun and know it's exact position so I can place a directional light on its position.
On the moment it's not showing the sun. What am I doing wrong?
Caelum::SpriteSun* SS = new Caelum::SpriteSun(mSceneMgr, mCaelumSystem->getCaelumCameraNode());
SS->setBodyColour (Ogre::ColourValue(1, 0, 0, 1));
SS->setLightColour(Ogre::ColourValue(1, 0, 0, 1));
mCaelumSystem->setSun(SS);
mCaelumSystem->setObserverLatitude(Ogre::Degree(50));
mCaelumSystem->setObserverLongitude(Ogre::Degree(-50));
I need to be able to create (and see) the sun and know it's exact position so I can place a directional light on its position.
On the moment it's not showing the sun. What am I doing wrong?