3D Ninja Test 2 – Fists of 30 fps Fury

A few weeks ago I posted my first demo of an animated 3D ninja. At the time I had high hopes of creating a primitive Virtua Fighter styled game. But there were several obstacles to overcome. The poly count was a bit too high, the scene only had one model in it, and it took Away3D a fair time to parse the MD2 data for the key frames.

So last night I decided to revisit the code and see what could be improved. Here is the result – I dropped Away3D and decided to run a test with ND3D instead. It’s a much more light-weight 3D library, and doesn’t include features like lights or shaders. But what it does do, it does very well, and very fast. The MD2 parser in particular kicked several bails out of the Away3D one.

This, combined with an optimised MD2 model (many thanks to Adam Biles for help) allowed me to get two fighters in the scene, each independantly animated and textured, with a ground plane and free roaming camera. I did have a skybox in as well, but the camera perspective didn’t look right and made the fighters seem as if they were floating in space. So I’ll save that for a different project.

Feel free to have a play with the demo.

Posted on June 8th 2010 at 3:52 pm by .
View more posts in 3D. Follow responses via the RSS 2.0 feed.


6 Responses

Leave a comment
  • Jarek
    June 8th 2010 at 10:49 pm

    This is seriously cool and I am sooo looking forward to playing the thing. The only issue I see is that the characters seem to float over the ground texture, although this is probably minor problem.

    I have a question though – what is this fps counter thing in top left corner? I’ve seen it couple of times already, but I always forget to ask.

    thanks

  • June 8th 2010 at 10:59 pm

    Hi Jarek – it’s HiRes Stats by Mr. Doob http://mrdoob.com/blog/post/582 – have made excellent progress tonight. Finally have the ninja under full keyboard control. This is actually getting somewhere :)

  • June 9th 2010 at 12:49 pm

    THIS is really cool, 30fps on my system!

  • June 28th 2010 at 6:06 am

    Dude — serious props for this. And 30 FPS? My god, this is running so smoothly, with zooming and everything. Keep going with it, this already looks absolutely amazing. Although I’m sure its really taking a toll on you!

    Keep me posted, I was interested in getting into 3D flash stuff myself. Can’t wait to see some keyboard interaction implemented!

  • October 29th 2010 at 3:28 am

    Do you think ND3D performs better than papervision3d? Does it support viewport layers? If so, I think I’m going to switch!

Make yourself heard