Hi, all, I'm trying to update some game(which is built on irrlicht 0.4) to the latest irrlicht 1.7.2. However, after the updating , the game crashed. After breakpoints and single step debugging, I located the position where cause the crash. It is the directX mesh file loader which tries to load my directx mesh and fails with an array index out of bound error. I also tried to load this mesh file with the provided mesh viewer example(example 9), still crashed at the same point.
I've added a test case project for this bug at http://www.mediafire.com/?c9daaih6cccq80a including the directx mesh file and the vc2008 project file.
[fixed]DirectX mesh file loader crashed.
[fixed]DirectX mesh file loader crashed.
Last edited by wanliqun on Thu Feb 09, 2012 12:41 pm, edited 3 times in total.
Re: DirectX mesh file loader crashed.
When I view this mesh file with directx viewer(february 2010), it worked okay, the out put log is followed:
Loading model - D:\Program Files\game\src\data\meshes\beerbar.x
Binormals do not exist on mesh. Attempting to calculate.
Tangents do not exist on mesh. Attempting to calculate.
'Tube01' material 0 - No effect instance specified.
Reverting to the default effect.
SAS: Loading effect 'Resource:#103'
Binormals do not exist on mesh. Attempting to calculate.
Tangents do not exist on mesh. Attempting to calculate.
'Cylinder01' material 0 - No effect instance specified.
Reverting to the default effect.
SAS: Loading effect 'Resource:#103'
Binormals do not exist on mesh. Attempting to calculate.
Tangents do not exist on mesh. Attempting to calculate.
'Torus01' material 0 - No effect instance specified.
Reverting to the default effect.
SAS: Loading effect 'Resource:#103'
Binormals do not exist on mesh. Attempting to calculate.
Tangents do not exist on mesh. Attempting to calculate.
'Sphere01' material 0 - No effect instance specified.
Reverting to the default effect.
SAS: Loading effect 'Resource:#103'
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: DirectX mesh file loader crashed.
Yes, this crashes 1.7.2, but it works for the 1.8 SVN/trunk version. So we will probably not fix this for 1.7.x anymore, just wait a little longer and use 1.8 then. You might also succeed by copying the code from the 1.8 version to the 1.7 version or at least diff their changes and derive a bugfix from there.
Re: DirectX mesh file loader crashed.
Nice, Appreciate it very much. I'd better try to merge 1.8 with 1.7.2.