ZeroCapt
09-01-2014 12:15:35
Hi,
i tried to use MOIS for input and based on the tutorial, it should be easy. However, i keep getting the SEHException when i try to create mouse object. Below are my codes, which are similar to the tutorials:
the InputMgr is successfully initialized, but when it try to create the InputKeyboard, the SEHException will appear. Upon removing the InputKeyboard line, the same Exception appear on the InputMouse line.
below is the exception details:
FYI,
1. I created my program based on the Basic tutorial - embedding Mogre in windows.forms
2. All dlls that i used are from the QuickStart2010 Improved Version (with MOIS). MOIS sucessfully initialized in the Quickstart solution.
3. Without MOIS, everything works as expected.
4. All references had been added to the project.
i've tried to solve this for days but still got the same error. any idea on how to solve this? I really need the solution fast and i really appreciate it if anyone can help me on this..
Thank you.
i tried to use MOIS for input and based on the tutorial, it should be easy. However, i keep getting the SEHException when i try to create mouse object. Below are my codes, which are similar to the tutorials:
MOIS.InputManager InputMgr;
MOIS.Keyboard InputKeyboard;
MOIS.Mouse InputMouse;
.
.
.
.
.
.
public void InitMOISInput()
{
MOIS.ParamList pl = new MOIS.ParamList();
IntPtr windowHnd;
mWindow.GetCustomAttribute("WINDOW", out windowHnd); // window is your RenderWindow!
pl.Insert("WINDOW", windowHnd.ToString());
InputMgr = MOIS.InputManager.CreateInputSystem(pl);
// Create all devices (except joystick, as most people have Keyboard/Mouse) using unbuffered input.
InputKeyboard = (MOIS.Keyboard) InputMgr.CreateInputObject(MOIS.Type.OISKeyboard, false);
InputMouse = (MOIS.Mouse) InputMgr.CreateInputObject(MOIS.Type.OISMouse, false);
}
the InputMgr is successfully initialized, but when it try to create the InputKeyboard, the SEHException will appear. Upon removing the InputKeyboard line, the same Exception appear on the InputMouse line.
below is the exception details:
OGRE EXCEPTION(2:InvalidParametersException): Parameter called lightSpecularColor does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\..\ogre\OgreMain\src\OgreGpuProgramParams.cpp (line 1433)
FYI,
1. I created my program based on the Basic tutorial - embedding Mogre in windows.forms
2. All dlls that i used are from the QuickStart2010 Improved Version (with MOIS). MOIS sucessfully initialized in the Quickstart solution.
3. Without MOIS, everything works as expected.
4. All references had been added to the project.
i've tried to solve this for days but still got the same error. any idea on how to solve this? I really need the solution fast and i really appreciate it if anyone can help me on this..
Thank you.