So I'm playing around with the new multiple scene managers feature. I'm writing a program that switches the drawAll call between two scene managers with the A and B keys. In the original scene manager (smgrA), I add an FPS camera and it works fine when smgrA is running. I also create a new scene manager (smgrB) from smgrA->createNewSceneManager(), and I add another FPS camera to smgrB. When I'm running smgrB, I can look around with the mouse, but the arrow keys do nothing. I have the same problem even if I don't create any camera for smgrA. Can someone help me figure out why the camera on B doesn't work as expected? I have included source code:
http://www.eng.utah.edu/~whawkins/main.cpp
I am running Irrlicht v0.12.0 and compiling under MSVC++ 2005 Beta 2.
createNewSceneManager() and FPS camera problem.
-
- Posts: 4
- Joined: Thu Sep 08, 2005 3:16 am
It's a bug in Irrlicht, the cameras in new scenemanagers never get the events.
Here's a patch to fix it: http://www.student.oulu.fi/~htormala/irrlicht/SceneManagerCamEvents.patch
Here's a patch to fix it: http://www.student.oulu.fi/~htormala/irrlicht/SceneManagerCamEvents.patch