scrawl
20-02-2011 16:01:34
Hi,
I'm working on integrating Caelum into my project. Currently I'm using ogre 1.7 terrain, dotSceneLoader, bullet, ois, mygui so just standard components. However I'm having a little trouble when I add a sun to caelum. This is my Caelum creation code:
When using this code, I get a plain white sky, which means completely white (#FFFFFF). Removing CAELUM_COMPONENT_SUN from the list fixes the issue, but I'd want a sun on my sky.
In the OGRE log, there are no caelum related errors, no shader compilation errors, nothing.
I also tried adding a line m_pSystem->setManageSceneFog(false); but that didnt help either.
What could be the cause of this?
I'm working on integrating Caelum into my project. Currently I'm using ogre 1.7 terrain, dotSceneLoader, bullet, ois, mygui so just standard components. However I'm having a little trouble when I add a sun to caelum. This is my Caelum creation code:
Sky::Sky(Ogre::SceneManager* m_pSceneMgr)
{
Caelum::CaelumSystem::CaelumComponent componentMask;
componentMask = static_cast<Caelum::CaelumSystem::CaelumComponent> (
Caelum::CaelumSystem::CAELUM_COMPONENT_SUN |
Caelum::CaelumSystem::CAELUM_COMPONENT_SKY_DOME |
0);
m_pSystem = new Caelum::CaelumSystem (Ogre::Root::getSingletonPtr(), m_pSceneMgr, componentMask);
}
When using this code, I get a plain white sky, which means completely white (#FFFFFF). Removing CAELUM_COMPONENT_SUN from the list fixes the issue, but I'd want a sun on my sky.
In the OGRE log, there are no caelum related errors, no shader compilation errors, nothing.
I also tried adding a line m_pSystem->setManageSceneFog(false); but that didnt help either.
What could be the cause of this?