Hi, I have the following issue with loading world.
I start loading world like this:
Code:
Game::World.activeRange(D.viewRange())
.New(pEvent->worldFile);
if (Game::World.settings().environment) // if the world has environment settings (like sun, ambient, sky, ..)
Game::World.settings().environment->set(); // then set them
// start background loader thread
m_loaderThread.create(BackgroundLoader);
Now BackgroundLoader function:
Code:
Bool CLoadingScene::BackgroundLoader(Thread& thread)
{
ThreadMayUseGPUData();
Game::World.update(Cam.at);
Flt fProgress = Game::World.updateProgress();
if (fProgress >= 1.0f)
return false; // return false, because we no longer need the thread
LogN(fProgress);
return true;
}
Issue: it never returns false.
Log shows this:
1.000
0.000
0.000
0.000
But when I use Dbl instead of Flt, then it shows the following result:
0.999997556
0.000000000
0.000000000
0.000000000
What could cause this issue?
The world is empty. It is a new created one with imported heightmap.