Skip to content

New program to animate LBA2 models in Unity. Uses models from my own Blender python script.

Notifications You must be signed in to change notification settings

LBALab/LBA2_Unity_Animator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

LBA2 Unity Animator

This is a new program to animate LBA2 models in Unity. It uses generated models from my own Blender Python script. Check the following link for more information about custom LBA2 models: https://github.com/LBALab/LBA2_Blender_To_Model_2.

The original idea was to be able to animate the models within Blender and export them using a Python script. However, I was unable to find a good way to export Blender's rotations to the LBA2 animation format. This may be done at a later time. But, it's not a priority at the moment. Thankfully, Unity provides nice functions for converting rotations to euler angles which is exactly what LBA2 uses. Needless to say, everything concerning the rotation conversions works flawlessly. Animating the models feels very intuitive.

An example on how my Unity program can be used. Watch the video

Additions / Fixes:

  • Added a button to change the frame when the animation loops.
  • Animations are now near perfect. Timing between frames is about right. Could still use some tweaking.
  • Selecting bones more easily. Triangles are now highlighted on the model.
  • Colors are now by polygon instead of by vertex. They now look like they would in the game.

Todo:

  • Add translation to bones that need to use translation besides rotation.

Controls:

  • Q and E: Move camera up and down.
  • W, A, S, and D: Move camera forward, backward, left, and right.
  • X, C, and Z: Rotate bones on X, Y, and Z axes.
  • Mouse (Left Button): Select a bone. When selected, move the mouse while holding X, C, or Z, to rotate on specific axes.
  • Mouse (Right Button): Rotate the camera. Only works when a model has been loaded in the editor.

Animations will need to be tested within Yaz0r's LBA1 / LBA2 model viewer since my own implementation is still not perfect. Yaz0r's viewer can be downloaded from the Magic Ball network. Here is the link for that: https://www.magicball.net/downloads/programs/development/lba_model_viewer

How one of my models looks in Yaz0r's program. Watch the video

How the same model looks right in LBA2 replacing Twinsen. Watch the video

Like I've mentioned before, I owe a lot of credit to Xesf. Without his documentation on the LBA2 formats, none of this would have been possible. If you're interested in hacking, modifying, or contributing to the Little Big Adventure games, be sure to checkout the "LBA Lab". It's the first Github organization I've been a part of and it's a nice area for all LBA tools. Here's the link: https://github.com/orgs/LBALab/repositories.

About

New program to animate LBA2 models in Unity. Uses models from my own Blender python script.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages