How to set a position for sun ?

compvis

26-10-2009 04:18:22

Hi,

How can i set sun's position ?

THanks,

Fish

27-10-2009 01:21:16

I'm not sure what you mean. Do you mean the apparent arc the sun makes across the sky?

For the arc you set the observers latitude and longitude with

mCaelumSystem->setObserverLatitude(Ogre::Degree(50)); //replace 50 with your value
mCaelumSystem->setObserverLongitude(Ogre::Degree(-50)); //replace -50 with your value


-Fish