createNewSceneManager() and FPS camera problem.

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
crimsoncipher
Posts: 4
Joined: Thu Sep 08, 2005 3:16 am

createNewSceneManager() and FPS camera problem.

Post by crimsoncipher »

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.
Elise
Posts: 48
Joined: Tue Jul 19, 2005 6:30 am
Contact:

Post by Elise »

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
Post Reply