Rajawali Tutorial 15: MD2 Animation

Posted by on Apr 4, 2012 in 3D, Android, Rajawali12 comments

This tutorial has moved to the [Rajawali Wiki](https://github.com/MasDennis/Rajawali/wiki/Tutorial-15-MD2-Animation).



Tags: , , , , , ,


12 comments

» Comments RSS Feed
  1. Hello Dennis,

    You are doing a great job, thank you very much. I think this is going to be one of the best 3d frameworks for android. There are a couple of things that would make this even more awesome:

    - Collision detection.
    - Bone animation (we could use .md5 file format, there is already a working Blender exporter).

  2. Thanks Robert. Collision detection and bone animation are in the pipeline.
    At the moment the highest priority is performance optimization and resource management.
    But bone animation is high on the list ;-)

  3. Hi Dennis, I forgot to ask you about the material used for the MD2 models. I read about the format at Wikipedia, and it seems there is no material specificed (unlike Ogre file format for example). I’ve been reading the source code for MD2Parser.java and I’ve seen you apply a DiffuseMaterial, which seems to use a flat shading. My question is: how do I apply phong or gouraud shading so the surface is smooth ? I’ve tried to set a new material (phong and gouraud) but it doesn’t work…

  4. Dennis, is it possible to load a few .obj files and interpolate the vertices to get a keyframe animation like in .md2 ?

    I ask you because the .md2 loader seems to have trouble loading large files…

    Thank you.

  5. Interesting question. Or maybe it would be useful if you can specify which animations to load or maybe the maximum number of frames to load?

  6. [...] Rajawali Tutorial 15: MD2 Animation [...]

  7. Hi, Dennis!
    I use it in LiveWallpaper, and add a MD2 model, play (). When my cell phone for longer didn’t move and automatic lock screen, or, I started the other programs, back to the desktop, MD2 model disappeared. The case of the inside of the RajawaliExamples MD2 Demo.
    In addition, if I have already set up the LiveWallpaper, then I set it into the wallpaper, to “set wallpaper”, it will go wrong.

  8. But, if it is a OBJ model, it will not appear this kind of circumstance

  9. Dennis,How to use the 3DS file? Use Only by Max3DSParser(RajawaliRenderer renderer, int resourceID) ?

  10. Hi,

    I’ve used this tutorial and the LiveWallpaper tutorial. I’ve put the ogre inside the livewallpaper but when run the livewallpaper i see the ogre but it’s almost invisible, it’s very dark. What could it be? The lights are there just like with the activities examples.

    Best Regards,

  11. Hi,

    I am trying to do a live wallpaper with an animation model. It was hard to export a blender model to md2. Now, it shows in the wallpaper, but without texture and the parser doesn’t recognize the frames (setted in blender).
    I dont know if the problem is in the exporter plugin or is in the parser.

    Any ideas?

    Great framework!

  12. Can anyone recommend me a software to export MD2 animations with names for specific animations… or alternatively, is it possible to call a range of frames from rajawali (as numbers, not names)?

Leave a comment