Search found 5 matches

by frustum
Tue Jan 01, 2008 7:34 am
Forum: 3D/2D models
Topic: Quake Wars models
Replies: 24
Views: 9931

Look at Mesh[37]. The max vertex index is 1955. The only VB buffer that is a logical match is found at Mesh[0] with 1956 vertices. It can't use the VB buffer at Mesh[36], since there's only 527 vertices there. Append shader name into the table. Probably bone index multiplied by 3 for direct loading...
by frustum
Mon Dec 31, 2007 7:02 am
Forum: 3D/2D models
Topic: Quake Wars models
Replies: 24
Views: 9931

Probably index is boolean flag because i didn't see values different from 0 and 1. I posted code to select vertex buffer above. I'm not sure in this code, but it works for all models from quakeWars. Loading /home/frustum/husky.md5b -- | num_vertex: 1003 | index: 0 | shared: 0 | shader: dummy/metal/s...
by frustum
Sun Dec 30, 2007 9:02 am
Forum: 3D/2D models
Topic: Quake Wars models
Replies: 24
Views: 9931

Karpati, yeah two misprints int number of meshes each mesh is: string name int[3] unused int number of shadow vertices uchar vertex buffer index (0 or 1) uchar vertex buffer shared flag (1 means mesh without vertex) uchar vertex rigid flag (0 means 4 bones per vertex, 1 means 1 bone) string shader i...
by frustum
Sun Dec 30, 2007 7:07 am
Forum: 3D/2D models
Topic: Quake Wars models
Replies: 24
Views: 9931

Character meshes has vertex buffer in each mesh.
But other meshes can share vertex buffer with others.
For example vehicles.
by frustum
Thu Dec 27, 2007 9:41 am
Forum: 3D/2D models
Topic: Quake Wars models
Replies: 24
Views: 9931

I have successfully loaded md5b files with animation. There are many unused and repeated records in the structures. md5b format is: int version (1) int unused int number of joints each joint is: string name int parent float[8] unused float[4] row_0 of bind pose matrix float[4] row_1 of bind pose mat...