mp3butcher / Cal3D

Official Cal3D - 3d character animation library
https://mp3butcher.github.io/Cal3D/
59 stars 24 forks source link

fileformats.txt.in XMF file and CMF file format are not matching #7

Closed swanandb2 closed 2 years ago

swanandb2 commented 3 years ago

I was trying to load CMF file and convert it to readable XML struct. I am stuck at Morph file line no 271. Can you please help us to understand how we can get Number of blendvert?

[first morph]
len morph name 4 integer [Length is specified in CMF] morph name var string
num blendvert 4 integer This parameter I was not able to locate? [blendvertex] vertex id 4 integer index to original vertex As per my finding after name string, next 4 bytes correspond to tis entry. position x 4 float morph position in model space position y 4 float position z 4 float normal x 4 float morph normal in model space normal y 4 float normal z 4 float [for all map] u coordinate 4 float map coordinates v coordinate 4 float [end for all map] [all other blendvertices]

Thanks, SB

mp3butcher commented 3 years ago

Sorry for my late answer. num blendvert is the number of vertices of the original mesh

swanandb2 commented 3 years ago

Sadly it's not working... I guess same ☹️

On Sun, 12 Sep, 2021, 7:53 pm Julien Valentin, @.***> wrote:

Sorry for my late answer. num blendvert is the number of vertices of the original mesh

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mp3butcher/Cal3D/issues/7#issuecomment-917646126, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIHLUGGZC2Z5YZXTJI4GPZDUBSZVPANCNFSM5DCT7VGQ .

swanandb2 commented 3 years ago

Actually I did try to build code in vs2017 but it's difficult ... To port I also hered that there are issues in stl, so thinking to create parser in c#...But my logic fails

May be imvu use different file specs

On Mon, 13 Sep, 2021, 12:09 pm swanand Belsare, @.***> wrote:

Sadly it's not working... I guess same ☹️

On Sun, 12 Sep, 2021, 7:53 pm Julien Valentin, @.***> wrote:

Sorry for my late answer. num blendvert is the number of vertices of the original mesh

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mp3butcher/Cal3D/issues/7#issuecomment-917646126, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIHLUGGZC2Z5YZXTJI4GPZDUBSZVPANCNFSM5DCT7VGQ .

mp3butcher commented 3 years ago

yes imvu is not cal3D