READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

Chinese Paladin 5

Post questions about game models here, or help out others!
Post Reply
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 295 times

Chinese Paladin 5

Post by finale00 » Wed Apr 11, 2012 11:27 am

5th game in the PC series.
http://en.wikipedia.org/wiki/The_Legend ... _and_Fairy

Image

Unpacker: viewtopic.php?f=10&t=8655
Noesis plugin: http://db.tt/aW2Kxyis

Loads most meshes including buildings and stuff.
I am not sure how the mesh should be parsed and so far am just hardcoding a bunch of values I think indicates the mesh type. So far it works.

It's a chunk-based format.

Code: Select all

dword chunk
dword size
dword ?
It seems like the chunk 0x1 means something like "data chunk", which is followed by the actual data.

The face struct is like

Code: Select all

short v1
short v2
short matNum
short v3
Materials come after mesh, and this repeats.

I haven't actually parsed the materials.
Some materials explicitly define a texture name (without extension), others don't. The ones that don't just mean the texName is the same as the model name (I think). Otherwise, you will see an 0x2 chunk that gives you the texture name associated with that material.

finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 295 times

Re: Chinese Paladin 5

Post by finale00 » Wed Apr 11, 2012 6:41 pm

Turns out 0x8 is the start of the mesh material section.
Followed by 0x7, and 0x6, which will then contain a bunch of material entries.

Though, some of the textures are not mapped correctly.
I am not sure if this is because I assigned the wrong texture to the wrong material, or the UV are being carried from one mesh to the other (some of the meshes don't have UV's...), or...

Image

Image

Post Reply