solenum / exengine

A C99 3D game engine
https://oods.net
MIT License
550 stars 31 forks source link

*pose* field never used in IQM #16

Open heitaoflower opened 5 years ago

heitaoflower commented 5 years ago

I see you code at line 98 of iqm.c

the ex_frame_t_pose = NULL, not initialize before using in function ex_model_update_matrices .

above it is the first question. the other one is skeleton may be the joint coordinate system of each bone? right?

heitaoflower commented 5 years ago

I see we have not cope with animation or skeleton job in function ex_model_copy .

heitaoflower commented 5 years ago

I wondering that to run your animation demo, the demo always crash as long as I running.

solenum commented 5 years ago

The reason bone/anim data aren't duplicated with a copy is because there's no need, every copy of the mesh can refer to the same bone data.

heitaoflower commented 5 years ago

could you show me,where is the position which refered shared animation data,thanks.

and also the pose field not initialise before entering calcu matrix func.

heitaoflower commented 5 years ago

Hi, @exezin Could you help me to figure out the position where using shared animation data in the mesh?

I really not found the snippet code. really really having no ideal about it.

solenum commented 5 years ago

It might have got nuked in a different commit to be honest, I'll have to take a look. If you don't see it, it's probably not there lol.