Ninja 3D Test 1

I had a desire to see if it was possible to create a simplistic “Virtua Fighter” or Tekken style game in Flash 10. The biggest initial hurdle was getting a convincing model displayed and animating it. And then seeing if the frame rate shot through the floor like a dead weight, or was actually playable.

After a lot of messing around with Milkshape, md2.qc custom files and the Away3D MD2 parser doing some really weird shit, I finally managed to assemble this tech test (click the picture to launch, FP10 required):

Ok so it’s not going to set the world on fire, but I was genuinely surprised at the speed, even when running a full animation sequence. And the model could be optimised significantly too.

More tests will follow as time permits, but this is very encouraging at least.

Posted on May 27th 2010 at 10:07 am by .
View more posts in 3D. Follow responses via the RSS 2.0 feed.


10 Responses

Leave a comment
  • May 27th 2010 at 10:19 am

    Honestly mate, when do you sleep ?

    That’s a lot more impressive than it should be in Flash, nice work.

  • May 27th 2010 at 10:33 am

    Waaah! And to think that I would have been impressed with a much lower framerate – this is just brilliant! 😀

    Forget the ‘”simplistic” Virtua Fighter’ – you could probably make the full game given enough man power.

  • May 27th 2010 at 10:36 am

    Given enough “brain power” you mean :) The collision and AI for a 3D fighter scare me just a bit. But I’m asking around, and will get some views on how to approach it, because I think there is real potential here.

  • May 27th 2010 at 12:06 pm

    Honestly I still think that level of performance that Flash can provide is low.
    You do not render scene here, also it is one ninja. Even if you make scene/camera angle static but add enemies you will still have problems…
    Another problem is size. I don’t think we have good in terms of size/parsing speed file formats for 3D for Web yet. Collada is way too large and may be hard on CPU with parsing…
    Your example in that sense is impressive in that you have pretty many small animations, model and textures in to 3+Mb size but add few more enemies, textures etc and it goes way beyond accepted web game sizes :(

    So you are using MD2 format. How is experience? How easy to export? Load? How heavy parsing is? May be you could compare Collada and md5?

  • May 27th 2010 at 12:14 pm

    I never would render a whole scene?! I’m not insane :) A simple sky box, floor and 2 fighters is all you actually need for a fighting game. The rest is just pure 2D. And performance for that would be perfectly possible.

    Collada files are insane, take AGES to parse and are stupidly large. Which is why I went for an MD2 file. Even those are horribly inefficient re: animation data. Out of that 3MB SWF size the 1024×1024 texture map and silly background image take up 840KB. If the model was optimised, the texture definitely could be much smaller (512×512 would be fine) and you could get it down much lower. I think for a game like this having 2 identical models with just different skins is perfectly fine.

    Using MD2 was really tricky actually. I cannot tell if there are bugs in the Away3D parser, or in the Milkshape export – but it would often screw up my sequence names and it has got the frame numbers wrong for some of them too. But it paid off because I got a useable file from it. The parser is nice and fast, but the more animations you have the longer it takes. This demo features lots of useless anims, so I reckon I could speed up the parsing time by half. Of course once the mesh is in there, you’re done.

  • May 28th 2010 at 5:31 am

    Getting suitable 3D models or even creating them by yourself is always the difficult part. I’ve been experimenting around with Alternativa3D lately and wondering how character bone animation would work out on that engine? From my experience Alternativa3D is a lot more suited for game 3D and a lot faster than Away3D.

  • Anonymous
    May 31st 2010 at 8:07 pm

    Well I wanted to be a smart-ass and say “I get 5FPS, this will never work” but actually I get about 15-20. I was surprised, given the other dismal, browser-freezing Flash 3D stuff I’ve seen

    I have serious doubts about making a live game though, even if it’s just two models…..

  • Umar
    January 30th 2013 at 10:56 am

    Hi,

    I liked this. Is there any possibility to buy this? I am making a game and I wanna use this character….

    Please reply asap.

    Regards.

  • January 30th 2013 at 11:41 am

Make yourself heard