Sun update interval


10-12-2010 22:12:46

This is my first time using Caelum. I'm loading DefaultSky from TestSkyScript.os that came with the demo source, the only change being that I increased the time scale. The problem is that while the clouds update per frame, the sun only seems to update about four times per 'day', and it always seems to be at roughly the same points.

Here's how I init Caelum:
caelum = new Caelum::CaelumSystem(root, sceneMgr, Caelum::CaelumSystem::CAELUM_COMPONENTS_ALL);
Caelum::CaelumPlugin::getSingleton().loadCaelumSystemFromScript(caelum, "DefaultSky", "General");



22-03-2011 19:06:18

If the SUN cycles through only 4 positions then it's almost certainly a DirectX floating point precision problem. Try running with OpenGL or disable "fast floating point" in DirectX to confirm (I don't know the exact name of the setting).

Caelum is supposed to work around this by changing floating point precision dynamically. If it doesn't work for you then you need to provide more info about how you update caelum. Or maybe you're building with something other than msvc?