Jump to content

Bug in function addMeshSurface


photo

Recommended Posts

Posted

Hi, i found interest bug when i merge skinend mesh to one surface via function addMeshSurface on ObjectMeshSkinned class.

 

When i merge skinend mesh in update() function, after when i add second skinned mesh, i get this:

UO0071.jpg

 

Under horse is person after merge to one surface, next of it is same skinned mesh that i export from Editor and add as skinned mesh to the scene.

 

Can you check it or anyone know why this happen?

 

Function for merge it is:

void addToOneSurface(ObjectMeshSkinned equiped[], ObjectMeshSkinned newBody) {
 // ignore main body
 forloop(int j = 1; equiped.size()) {
  ObjectMeshSkinned mesh = equiped.get(j);
  forloop(int i = 0; mesh.getNumSurfaces()) {
newBody.addMeshSurface(0, mesh, i);
mesh.setEnabled(0, i);
  }
 }
}

 

If you will want whole scene, tell me, i add it on the ftp.

 

Thanks for reply.

Posted

Honya,

 

Can you please send us whole test scene?

 

Hi Necris,

 

i send you link with more description as messages here.

Posted

Thanks, Honya

 

We've passed this information to our developers.

Posted

Honya,

 

We need a MINIMAL scene -- a case for clear reproduction.

 

In the scene you've provided there are a number of bones that cannot be found, nodes cannot be deleted by the editor... As much as we would like to help, finding the culprit in it is a bit of a hard task.

post-13-0-00325100-1356074423_thumb.jpg

Posted

Manguse,

 

That interesting that you get errors with bones.

Dont inteference old smesh with this test scene that we send to you before 2-3 mounts (that have different bones name), because i check smesh that send to you and there have right bones name.

 

And i send you whole pack, because each combination do some different issues.

Posted
And i send you whole pack, because each combination do some different issues.

Well, the problem is both showcase and showcase_1 are constantly crashing. So there's no way we can check for a bug under these conditions.

post-13-0-33116100-1356103751_thumb.jpg

post-13-0-29692000-1356103775_thumb.jpg

Posted

Manguste,

 

ok i now get where it crashing, so i clean scripts from unnecessary code and send it to you via messages tonight.

 

Meanwhile when you change combo box in "Equip/Unequip animated armors on the character" panel, this panel should not lead to a crash.

Posted

Nope, still crashes, still nodes are not removed correctly. Cannot reproduce anything.

post-13-0-41752400-1356170803_thumb.png

Posted

Manguste,

 

messages that node are not removed correctly i getting, but i don't get crash on it...

 

so what now?

Do you have any idea how resolve this?

Posted

Manguste,

 

i can finally reproduce your crash, so i can fix it and create new scene for you.

When i finish it, i will send you link for download it.

Posted

Honya,

 

Scene still crashes :(

There will be an optimal solution if you send us MINIMAL test-scene. Very simple scene based on update() function which allows to reproduce this issue clearly and nothing else.

One surface and 3-5 meshes for merging on it, without unnecessary materials, models etc.

×
×
  • Create New...