AdrianoDiDio / Medal-Of-Honor-PSX-File-Viewer

A set of tools to open and view files from the PSX games Medal Of Honor And Medal Of Honor:Underground.
GNU General Public License v3.0
30 stars 1 forks source link

Misaligned FP weapons #5

Closed Nitestokeh closed 1 year ago

Nitestokeh commented 1 year ago

Greetings, Noticed this with Garand, it's the same for all animations: image I understand the tools are still being worked on but I thought it would be helpful to report such issue

I would also like to make some suggestions:

AdrianoDiDio commented 1 year ago

Thanks for the feedback.

The animation were misaligned due to a missing quaternion in the list that was causing the animation to not be complete (same issue could be seen on the Bazooka,Sniper Rifle and ID papers) and will be fixed in the next release.

For camera movement, would it be possible to make it move on RMB? Some models are offset and impossible to view properly

I've added the ability to strafe left-right and move vertically up-down...I'll test whether or not it is enough to manually center the model, otherwise I'll implement a free-view camera.

Would it be possible to export character models in T-pose?

I don't have much experience on how animations works and I'm not sure on how to obtain it (or if it is even possible in this case)...

I'll keep this issue open until the next release, if you have any other feedback feel free to add it here.

Nitestokeh commented 1 year ago

For T-poses, you could integrate a format that actually exports bones for models — .fbx or .smd. Having these would be already enough if one wants to change the pose themselves

AdrianoDiDio commented 1 year ago

Unfortunately bones are stored in a different way than the usual one and it would require some work to convert it to another format, moreover I'd like not to use an external library just to export it (like fbx) . I'll check if there are simpler file formats to export animations (like ply for static objects ) that are ASCII based and do not require any third party library.

AdrianoDiDio commented 1 year ago

I'm going to close this issue since It should be solved now, if not, feel free to re-open it or open a new one. Regarding the possibility to export it to a different format: I've tried to implement an MD5 and IQM exporter but unfortunately, as stated before, due to the way the skeletal hierarchy data is stored, makes thing a lot harder to export it to an open format. One potential solution could be to write a custom importer plugin to support the format used by Medal Of Honor, but I don't have any idea on how to write one and for which tool it should be written for. The only way, for now, to export it is to use the ply format to obtain a static model using the current selected animation.