snowkit / iqm

Haxe importer for IQM mesh format | https://github.com/lsalzman/iqm
Other
5 stars 1 forks source link

Test input data in practice #1

Open ruby0x1 opened 9 years ago

ruby0x1 commented 9 years ago

Since @dazKind already has the old IQM loader in engine, It might be good to test the mesh data from the "raw" importer (i.e cache the matrices and dq values externally, from the raw data).

Everything looked sound in all my input tests except I haven't had time to test the frames yet, but the code was largely based on the original work in that section so should match expectations.

ruby0x1 commented 9 years ago

Well, fairly certain the mesh data and other values are sound, just gotta test the animated stuff.

dazKind commented 9 years ago

Will do. Added to my list.

Ohmnivore commented 8 years ago

i'm planning on doing that but there's only one thing i'm not sure about, iqm doesn't support per-face materials, right? from what i've gathered there's only one global diffuse texture per mesh, and one diffuse color per face.

dazKind commented 8 years ago

it's one material per mesh. Each mesh holds a string that indicates your materialid or file. Depending on your engine your material can use as many textures and stuff as you see fit/can make work with the default vertexdata.

See https://github.com/lsalzman/iqm/blob/master/iqm.txt#L30 and https://github.com/lsalzman/iqm/blob/master/iqm.txt#L43 for reference.

Ohmnivore commented 8 years ago

Thank you! I think I'm getting the hang of it. I'll integrate iqm eventually :) I'll report back when it's done.