Skip to content

🖼️ Don't let the name fool you, this is actually a (very crappy) .obj model loader and a (very crappy) The Sims 1 .skn/.cmx/.cfp model loader and animation renderer!

Notifications You must be signed in to change notification settings

MrPowerGamerBR/ObjLoaderTests

Repository files navigation

🖼️ ObjLoaderTests 🖼️

It all started as a simple .obj model loader... but I craved knowledge, I wanted to know how you can create and apply animations to a skeletal model.

So that's why I also coded a The Sims 1 .skn/.cmx/.cfp loader too! Yeah, The Sims 1 skeletons are very simple (no weight mapping, only one bone per vertex), but now I do have the knowledge of how this works, so in the future I can improve it further.

The animation code is borked beyond salvation tho, I need to swap the arm bones because, if I don't do that, the arms are wonky because their animations are swapped (?).

Also I don't apply the base skeleton rotation, not sure if it is needed but, when applying it, the animation becomes all borked... but I do translate based on the base skeletion + animation transform.

Screenshots

Resources

By the way, I think that Milkshape 3D's is incorrectly previewing The Sims 1' skeleton. Inverting the quaterions makes the default The Sims 1 skeleton be in a "default" pose (like the Sim standing up, without any weird rotations on the back) and the toe bones aren't below the feet like Milkshape 3D's is.

About

🖼️ Don't let the name fool you, this is actually a (very crappy) .obj model loader and a (very crappy) The Sims 1 .skn/.cmx/.cfp model loader and animation renderer!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published