Skip to content

CreatingAnimatedCharacterData

Igor Karpov edited this page Apr 26, 2015 · 1 revision

To produce an md2 file containing animated character data that can be used in OpenNERO:

  1. Create an animated model in a program that can export the obj format. * I've used Maya for this project, but obj is a simple and common format, so other programs are likely to work as well. * The md2 format requires that all textures for this model be contained in a single image file.
  2. Export one obj file for each frame of each animation you want your character to have * Example filenames: run001.obj, run002.obj, ... , stand001.obj, stand002.obj ... * For Maya, I have included a script that I used to automate this process. (This script will require some straightforward modification to match your particular animation.)
  3. Run obj_to_md2 on these obj files and their texture file. * Compile from obj_to_md2.cpp and Makefile. * Run obj_to_md2 with no arguments to display usage.
Clone this wiki locally