maaschn
05-02-2012 18:44:49
Hello Community,
I am a newbie with mogre and I am trying to apply an own material to my ManualObject which I create in form of a trianglist from a stl-File.
I found code which i inserted in my project:
When i compile my project in VS 2010 it crashes at the first line where the Material is created. The program says
"An unhandled exception of type 'System.Runtime.InteropServices.SEHException' occurred in Mogre.dll
Additional information: External component has thrown an exception."
The scenemanager is initialised before, the root node is created, the Resources are defined and initialised and the renderWindow and Render System are created
I hope anybody can help me
Thanks maaschn
I am a newbie with mogre and I am trying to apply an own material to my ManualObject which I create in form of a trianglist from a stl-File.
I found code which i inserted in my project:
MaterialPtr moMaterial = MaterialManager.Singleton.Create("line_material", "debugger");
moMaterial.ReceiveShadows = false;
moMaterial.GetTechnique(0).SetLightingEnabled(true);
moMaterial.GetTechnique(0).GetPass(0).SetDiffuse(0, 0, 1, 0);
moMaterial.GetTechnique(0).GetPass(0).SetAmbient(0, 0, 1);
moMaterial.GetTechnique(0).GetPass(0).SetSelfIllumination(0, 0, 1);
moMaterial.Dispose();
When i compile my project in VS 2010 it crashes at the first line where the Material is created. The program says
"An unhandled exception of type 'System.Runtime.InteropServices.SEHException' occurred in Mogre.dll
Additional information: External component has thrown an exception."
The scenemanager is initialised before, the root node is created, the Resources are defined and initialised and the renderWindow and Render System are created
I hope anybody can help me
Thanks maaschn