CHC causes error

foxbat

27-09-2006 08:50:41

I'm trying to enable CHC with the following:

mCamera = mSceneMgr->createCamera("PlayerCam");
mSceneMgr->setOption("CurrentOptionCamera", mCamera);
mSceneMgr->setOption ("setCullingMode", "CHC");


When I try this, the engine crashes.

HexiDave

27-09-2006 10:37:31

Just a guess, but do you have that in the createCamera section? If so, try moving it to after you load the map (the CHC loading part.)

foxbat

28-09-2006 03:39:11

I tried waiting for the terrain to load, but it still crashes. Any other ideas?

tuan kuranes

28-09-2006 14:14:43

Does demo CHC works ?
(during demo hit F1 for keys, and switch culling mode real time.)