Bug importing animated DirectX files

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Bolt
Posts: 7
Joined: Wed Dec 16, 2009 10:40 pm

Bug importing animated DirectX files

Post by Bolt »

When importing animated DirectX files into irrEdit v1.5, animation is corrupted when the DirectX file has multiple materials.

Specifically, if two faces share an edge, but are assigned to two different materials, animation will be corrupted and you'll get
this error message:
"X loader: Duplicated vertex, animation might be corrupted."

If the DirectX importer is splitting vertices per material, I don't believe vertices are being split correctly when animation is present.

As a workaround, if you unweld all edges at the material borders, this will fix the problem.

I uploaded an example of the bug:
http://www.megaupload.com/?d=CJCJWDRO
http://depositfiles.com/files/lj5imvaxx
http://rapidshare.com/files/336839885/t ... s.zip.html

edit:
Importing Blitz3D .B3D files also show the same vertex-material splitting animation bug.
Last edited by Bolt on Sun Jan 17, 2010 7:16 pm, edited 1 time in total.
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Post by christianclavet »

Ha! That explain the skinning problem I saw. The extra vertice is not put in the skin as the shared vertice.
Bolt
Posts: 7
Joined: Wed Dec 16, 2009 10:40 pm

Post by Bolt »

The same DirectX/B3D animation bug also happens with MeshViewer.exe from the irrlicht-1.6 SDK.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Could you please upload the file elsewhere?
Bolt
Posts: 7
Joined: Wed Dec 16, 2009 10:40 pm

Post by Bolt »

hybrid wrote:Could you please upload the file elsewhere?
Sure, I added more download links.
dekyco
Posts: 3
Joined: Sun May 02, 2010 6:03 pm

Post by dekyco »

Just wanted to ask is this bug fixed at this time?

I am using Irrlicht 1.7.1 build with MinGW, anim8or for modeling and export animations into .3ds format. Next I use conv3ds.exe (with GUI frontend) to convert into textual animated .x files.

Importing in test program gives that error: "X loader: Duplicated vertex, animation might be corrupted."

How can I "unweld all edges at the material borders"?

dekyco
ellemayo
Posts: 15
Joined: Tue Oct 06, 2009 6:24 pm

Post by ellemayo »

I haven't heard anything about this bug being fixed...

It generally happens when there are multiple materials assigned to the faces of a single mesh... So you would have to extract those faces from the mesh. You can also try UV mapping instead, which gives the mesh one material.
Post Reply