Animation issue with IrrlichtLime
-
- Posts: 9
- Joined: Thu May 07, 2015 11:31 am
Animation issue with IrrlichtLime
Hello Everyone,
We had used IrrLicht.Net.dll in our project.
Now we are going to update animation using IrrlichtLime.
But I am facing some issue
we had used "MaterialFlag.LIGHTING" and "MaterialType.FORCE_32BIT_DO_NOT_USE" using Irrlicht.net dll. But we are not able to find "MaterialType.FORCE_32BIT_DO_NOT_USE" on IrrlichtLime. That's why we are not getting perfect animation like my old animation. we have tried all MaterialType with IrrlichtLime. and facing animation with black section using IrrlichtLime.
Any one have idea which is materialType we need to use ?
Thanks in advance
We had used IrrLicht.Net.dll in our project.
Now we are going to update animation using IrrlichtLime.
But I am facing some issue
we had used "MaterialFlag.LIGHTING" and "MaterialType.FORCE_32BIT_DO_NOT_USE" using Irrlicht.net dll. But we are not able to find "MaterialType.FORCE_32BIT_DO_NOT_USE" on IrrlichtLime. That's why we are not getting perfect animation like my old animation. we have tried all MaterialType with IrrlichtLime. and facing animation with black section using IrrlichtLime.
Any one have idea which is materialType we need to use ?
Thanks in advance
Re: Animation issue with IrrlichtLime
Hello!
Thank you for using IrrlichtLime.
The material type FORCE_32BIT_DO_NOT_USE is not meant to be used at all. It is necessary for C++ compilers to know, that the enum is 32bit.
It is invalid and I'd expect Irrlicht to fall back to ignore the material and probably behave unexpectedly. From looking at the sources, the OpenGL driver for example just does ignore the material.
Are you using shaders? The MaterialType to be used is returned by the method used to add the shader.
What are you trying to achieve? What are the problems with the other material types?
And could you show the code, where you set up the material, maybe there's a problem.
As a workaround, you can still use the FORCE_32BIT_DO_NOT_USE material type this way (not tested, maybe hex numbers are written differently in c#):
But I recommend you try fixing this in a 'clean' way.
Thank you for using IrrlichtLime.
The material type FORCE_32BIT_DO_NOT_USE is not meant to be used at all. It is necessary for C++ compilers to know, that the enum is 32bit.
It is invalid and I'd expect Irrlicht to fall back to ignore the material and probably behave unexpectedly. From looking at the sources, the OpenGL driver for example just does ignore the material.
Are you using shaders? The MaterialType to be used is returned by the method used to add the shader.
What are you trying to achieve? What are the problems with the other material types?
And could you show the code, where you set up the material, maybe there's a problem.
As a workaround, you can still use the FORCE_32BIT_DO_NOT_USE material type this way (not tested, maybe hex numbers are written differently in c#):
Code: Select all
MaterialType notUseType = (MaterialType)0x7fffffff;
-
- Posts: 9
- Joined: Thu May 07, 2015 11:31 am
Re: Animation issue with IrrlichtLime
Hello Foaly,
Thanks for reply.
I thinks, problem with lighting position and camera position (this is working with Irrlicht.net). Can you please help for that?
If _scaleFactorUnit >= 1 then Okay animation. If _scaleFactorUnit < 1 then animation is total black (Not perfect animation)
This position is working with Irrlicht.Net dll for both case ( scaleFactorUnit >= 1 OR _scaleFactorUnit < 1). why this is not working with IrrichtLime ? Why we need to change position for IrrichtLime ?
Here code:
// dblRedius =250
Thanks
Thanks for reply.
I thinks, problem with lighting position and camera position (this is working with Irrlicht.net). Can you please help for that?
If _scaleFactorUnit >= 1 then Okay animation. If _scaleFactorUnit < 1 then animation is total black (Not perfect animation)
This position is working with Irrlicht.Net dll for both case ( scaleFactorUnit >= 1 OR _scaleFactorUnit < 1). why this is not working with IrrichtLime ? Why we need to change position for IrrichtLime ?
Here code:
// dblRedius =250
Code: Select all
public static void LoadMeshes(IrrlichtDevice device, out CameraSceneNode cam, out SceneNode node, float dblRedius, float _scaleFactorUnit)
{
LightSceneNode Light;
LightSceneNode Light1;
LightSceneNode Light2;
device.SceneManager.Clear();
IrrlichtLime.Scene.AnimatedMesh mesh = device.SceneManager.GetMesh("Image Path(.3DS)");
node = device.SceneManager.AddAnimatedMeshSceneNode(mesh, null, -1);
node.SetMaterialFlag(MaterialFlag.Lighting, false);
MaterialType notUseType = (MaterialType)0x7fffffff;
node.SetMaterialType(notUseType);
Light = device.SceneManager.AddLightSceneNode(null, new Vector3Df((-150f), (150f), (250)),
new Colorf(1.0f, 1.0f, 1.0f, 1.0f), (350.0f) * _scaleFactorUnit, 0);
Light1 = device.SceneManager.AddLightSceneNode(null, new Vector3Df((100f), (150f), (-250f)),
new Colorf(1.0f, 1.0f, 1.0f, 1.0f), (350.0f) * _scaleFactorUnit, 0);
Light2 = device.SceneManager.AddLightSceneNode(null, new Vector3Df((100f), (-150f), (-250f)),
new Colorf(1.0f, 1.0f, 1.0f, 1.0f), (350.0f) * _scaleFactorUnit, 0);
//////-------Load Camera--------////////////
cam = device.SceneManager.AddCameraSceneNode(null, new Vector3Df(0, dblRedius * _scaleFactorUnit, 0), new Vector3Df(0, 0, 0), -1);
cam.Position = new Vector3Df(0, dblRedius * _scaleFactorUnit, 0);
cam.Target = new Vector3Df(0, 0, 0);
cam.UpVector = new Vector3Df(0f, 0f, -1f);
}
Re: Animation issue with IrrlichtLime
Hm...
If you disable lighting, I don't know why it could probably be black. It should ignore all the lights then.
If you disable lighting, I don't know why it could probably be black. It should ignore all the lights then.
-
- Posts: 9
- Joined: Thu May 07, 2015 11:31 am
Re: Animation issue with IrrlichtLime
I have just download example from http://sourceforge.net/projects/irrlich ... ht%20Lime/
Now, I have run this example (from debug folder (01.HelloWorld.exe) ) with following system configuration
1) 32 bit OS (win 7)
2) Installed- Microsoft Visual C++ 2010 Redistributable Package (x86)
3) Installed- .NET Framework 4.0.
But I am getting following error
In cmd : System.IO.FileNotFoundException: Could not load file or assembly 'IrrlichtLime.dll' or one of its dependencies. The specified module could not be found.
In eventLog (windows Log) ,
1) Application: 01.HelloWorld.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
Stack:
at _01.HelloWorld.Program.Main(System.String[])
2) Faulting application name: 01.HelloWorld.exe, version: 1.0.0.0, time stamp: 0x555db6e6
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17932, time stamp: 0x503275ba
Exception code: 0xe0434352
Fault offset: 0x0000d3cf
Faulting process id: 0x17c
Faulting application start time: 0x01d0977ca50ef89e
Faulting application path: D:\Projects\bin\Debug\01.HelloWorld.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: e434fa7c-036f-11e5-80b5-001320260d0f
Now, I run this example with following system configuration
1) 64 bit OS (win
2) Installed- Microsoft Visual C++ 2010 Redistributable Package (x86)
3) Installed- .NET Framework 4.0.
then it is working without error.
Anyone know ,what i doing wrong?
Any dependency is missing?
can you please send me reply if you know?
Thanks in advance
Now, I have run this example (from debug folder (01.HelloWorld.exe) ) with following system configuration
1) 32 bit OS (win 7)
2) Installed- Microsoft Visual C++ 2010 Redistributable Package (x86)
3) Installed- .NET Framework 4.0.
But I am getting following error
In cmd : System.IO.FileNotFoundException: Could not load file or assembly 'IrrlichtLime.dll' or one of its dependencies. The specified module could not be found.
In eventLog (windows Log) ,
1) Application: 01.HelloWorld.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
Stack:
at _01.HelloWorld.Program.Main(System.String[])
2) Faulting application name: 01.HelloWorld.exe, version: 1.0.0.0, time stamp: 0x555db6e6
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17932, time stamp: 0x503275ba
Exception code: 0xe0434352
Fault offset: 0x0000d3cf
Faulting process id: 0x17c
Faulting application start time: 0x01d0977ca50ef89e
Faulting application path: D:\Projects\bin\Debug\01.HelloWorld.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: e434fa7c-036f-11e5-80b5-001320260d0f
Now, I run this example with following system configuration
1) 64 bit OS (win
2) Installed- Microsoft Visual C++ 2010 Redistributable Package (x86)
3) Installed- .NET Framework 4.0.
then it is working without error.
Anyone know ,what i doing wrong?
Any dependency is missing?
can you please send me reply if you know?
Thanks in advance
Re: Animation issue with IrrlichtLime
Make sure the files Irrlicht.dll and IrrlichtLime.dll are in one folder with you *.exe.
If not, download and try again.
Does it work in release configuration?
If not, download and try again.
Does it work in release configuration?
-
- Posts: 9
- Joined: Thu May 07, 2015 11:31 am
Re: Animation issue with IrrlichtLime
Yes, following files are available in debug folder
1)Irrlicht.dll
2)IrrlichtLime.dll
3)IrrlichtLime.ilk
4)IrrlichtLime.pdb
5)IrrlichtLime.xml
But it is working in 64 bit OS.
I have noticed, platform target = 86 in build option (visual studio -> project properties)
If i change platform target from 86 to any CPU then i will get same error in any PC.
Is it possible for problem with OS bit?
Thanks
1)Irrlicht.dll
2)IrrlichtLime.dll
3)IrrlichtLime.ilk
4)IrrlichtLime.pdb
5)IrrlichtLime.xml
But it is working in 64 bit OS.
I have noticed, platform target = 86 in build option (visual studio -> project properties)
If i change platform target from 86 to any CPU then i will get same error in any PC.
Is it possible for problem with OS bit?
Thanks
Re: Animation issue with IrrlichtLime
Platform x86 is right, it just means 32 bit, x86-64 would be 64 bit.
Do you have installed the right .Net-framework? There are two different versions of 4.0: The full framework and the client profile. Lime needs the full, not the client profile.
Does it at least work when compiled with release configuration (both in the example and using the Irrlicht.dll and IrrlichtLime.dll from the release folder)?
On the 32 bit machine, do you have an IDE and compiler installed? (Sometimes debug builds don't run, if no debug software is installed)
Do you have installed the right .Net-framework? There are two different versions of 4.0: The full framework and the client profile. Lime needs the full, not the client profile.
Does it at least work when compiled with release configuration (both in the example and using the Irrlicht.dll and IrrlichtLime.dll from the release folder)?
On the 32 bit machine, do you have an IDE and compiler installed? (Sometimes debug builds don't run, if no debug software is installed)
-
- Posts: 9
- Joined: Thu May 07, 2015 11:31 am
Re: Animation issue with IrrlichtLime
Hello Foaly,
I have tested with new OS.(Not installed any software).
Now i have install following software
.net framework from https://www.microsoft.com/en-in/downloa ... x?id=30653
vc++ from https://www.microsoft.com/en-us/downloa ... x?id=30679
then i am facing same error .
I thinks, we need to install any other software for this?
I have tested with new OS.(Not installed any software).
Now i have install following software
.net framework from https://www.microsoft.com/en-in/downloa ... x?id=30653
vc++ from https://www.microsoft.com/en-us/downloa ... x?id=30679
then i am facing same error .
I thinks, we need to install any other software for this?
-
- Posts: 9
- Joined: Thu May 07, 2015 11:31 am
Re: Animation issue with IrrlichtLime
Thanks Foaly for help
I have found issue.
I have just replace Irrlicht.dll (1.8.0) to Irrlicht.dll (1.9.0 alpha) in debug folder.
other question.
If I install MS VC++ 2013 redistributable (86) then it is not working. But i install MS VC++ 2010 redistributable (86) then it is working.
Do you know why it is not working with latest version ?
I have found issue.
I have just replace Irrlicht.dll (1.8.0) to Irrlicht.dll (1.9.0 alpha) in debug folder.
other question.
If I install MS VC++ 2013 redistributable (86) then it is not working. But i install MS VC++ 2010 redistributable (86) then it is working.
Do you know why it is not working with latest version ?
Re: Animation issue with IrrlichtLime
I really have no idea.
I also think it should work.
I also think it should work.