Hi,
has anyone been able to do this
1) Load a .x file mesh using Irrlicht.NET API
I have tried but I get an exception every time. I tried the following line but it doesn't compile, as GetMesh returns an animated mesh.
Irrlicht.Scene.IMesh mesh = device.SceneManager.GetMesh(fileName);
2)
Does anyone know if it is possible to produce a complete .NET dll for Irrlicht by compiling the C++ source code in Visual Studio .NET - I heard a rumour that this is possible?
Thanks
Load a .x mesh file in Irrlicht.NET + other
Load a .x mesh file in Irrlicht.NET + other
Pete
Life is wonderful
Life is wonderful
Not sure but ...
Code: Select all
Irrlicht.Scene.IAnimatedMesh a = device.SceneManager.GetMesh( "Arrow.3ds" );
Irrlicht.Scene.IMesh m = a.GetMesh( 0 );
Or you could do it all in one line
Code: Select all
Irrlicht.Scene.IMesh a = device.SceneManager.GetMesh( "Arrow.3ds" ).GetMesh( 0 );
Tried it
K, well I tried the code above, using the earth.x file which is in the media directory that comes with irrlicht, and it loads and gets the texture, I Then added a IMeshNode into the scene and it worked, It's not loading the texture, but the node is created and I can see the object ...
Thanks a lot!!
Do any of you .NET users know the answer to question 2?
I was wondering whether it was possible to produce my own .NET wrapper for Irrlicht.dll somehow using Visual Studio .NET - someone said this was possible, as, as you have probably noticed the .NET wrapper for 0.8 does not have all the features.
Do any of you .NET users know the answer to question 2?
I was wondering whether it was possible to produce my own .NET wrapper for Irrlicht.dll somehow using Visual Studio .NET - someone said this was possible, as, as you have probably noticed the .NET wrapper for 0.8 does not have all the features.
Pete
Life is wonderful
Life is wonderful