[fixed]MAYA Camera problems with the input receiver
Posted: Tue Nov 29, 2011 3:05 pm
Just remarqued a problem with the Irrlicht (1.7.2) maya camera. I'll try to give you some kind of "real" bug report as I'm working as a tester now.
Description:
Each time the input receiver of the camera is enabled, it completely overide the position and angle of the camera! I was assuming the camera would start rotating, zooming and moving from the position and angle given by code. It doesnt seem so.
Reproductibility of the bug:
5/5
Steps to reproduce the bug:
1. Take the Helloworld example. (Or any other Irrlicht example)
2. Change the camera for a maya camera.
Mine was added like this: (app class contain the device pointer)
3. Try to set a position for the camera and disable the inputreceiver.
I tried that:
4. Notice the position of the camera. It should go at the specified coordinates
5. Go at the line where you disabled the input receiver and now enable it:
6. Notice now the position and angle of the camera. It completely change.
Current behavior:
The camera doe not take into consideration position change / angle change when it input receiver is activated.
Expected behavior:
The camera should take into consideration position change / angle change even if the input receiver is activated.
System:
OS: Windows Vista Home x64, French edition (SP2 Build 6002)
RAM: 4 Gb ram
Video card: GeForce GTX 460
Irrlicht version:
1.7.2 (official release)
Video Driver used:
Open GL (Supported as Open GL 4.1.0, GLSL: 4.1)
Note: This "bug", as only been remarked using Irrlicht 1.7.2. I don't know if it happenned on previous release or the SVN version.
Note 2: As a "wish", It would be really cool, if we could "map" the mouse/keyboard button to an action as we can do with the FPS camera... Or trigger theses "actions" by code.
Screenshots:
Screenshot 1 - Here the camera is positionned by code at a "start" position. The input receiver is currently disabled:

Screenshot 2 - Activation of the input receiver is done and the camera angle and position change:

Description:
Each time the input receiver of the camera is enabled, it completely overide the position and angle of the camera! I was assuming the camera would start rotating, zooming and moving from the position and angle given by code. It doesnt seem so.
Reproductibility of the bug:
5/5
Steps to reproduce the bug:
1. Take the Helloworld example. (Or any other Irrlicht example)
2. Change the camera for a maya camera.
Mine was added like this: (app class contain the device pointer)
Code: Select all
editCamMaya = App::getInstance()->getDevice()->getSceneManager()->addCameraSceneNodeMaya(0, -45.0f, 200.0f, 100.0f);
I tried that:
Code: Select all
editCamMaya->setInputReceiverEnabled(false);
editCamMaya->setPosition(vector3df(250,250,-250));
5. Go at the line where you disabled the input receiver and now enable it:
Code: Select all
editCamMaya->setInputReceiverEnabled(true);
Current behavior:
The camera doe not take into consideration position change / angle change when it input receiver is activated.
Expected behavior:
The camera should take into consideration position change / angle change even if the input receiver is activated.
System:
OS: Windows Vista Home x64, French edition (SP2 Build 6002)
RAM: 4 Gb ram
Video card: GeForce GTX 460
Irrlicht version:
1.7.2 (official release)
Video Driver used:
Open GL (Supported as Open GL 4.1.0, GLSL: 4.1)
Note: This "bug", as only been remarked using Irrlicht 1.7.2. I don't know if it happenned on previous release or the SVN version.
Note 2: As a "wish", It would be really cool, if we could "map" the mouse/keyboard button to an action as we can do with the FPS camera... Or trigger theses "actions" by code.
Screenshots:
Screenshot 1 - Here the camera is positionned by code at a "start" position. The input receiver is currently disabled:

Screenshot 2 - Activation of the input receiver is done and the camera angle and position change:
