Actionscript Flash

Alternativa Platform 3D test – Part 1

A few months ago, I came across a very promising ressource for 3D flash : Alternativa Platform. Of course, I had already heard of a few others like Away3D or Flare3D, but I have the feeling Alternativa has greater performance. Anyway, the overwhelming features are numerous, I’d only point out it makes use of GPU acceleration for advanced gaming, supports multiplayer, has a physics engine, etc… and it’s open-source too, so you can go look under the hood if you feel like it. You only need to watch the showcase demos to realize what amazing possibilities are offered to 3D flash by the platform.

The technology – currently released in version 8 – is developped by a russian company, and although it’s fully documented, it’s sometimes not that easy to understand, their English is incredibly worse than mine ! Nonetheless, I decided to dive into it and discover what it was capable of. There’s a tutorial called Alternativa 8 for dummies where they give an interesting example based on cubes which I thought would be a good starting point for my primary testing.

It’s basically a maze made of simple cubes where you wander in First Person view. The sample code is provided, so let’s see what it’s all about. Oh, and I also only just discovered Flash Develop, an open source code editor which is quite convenient as long as you don’t need to use a GUI.

And this is what we get (with a link to the demo)

alternativa_test-0

Alternativa test

You can play around with the demo, the feel is pretty good, of course it’s only very basic, but that calls for improvements.

I listed the aspects I’d like to change, add or improve – I’m open to all suggestions though.

Appearance :

Well, it lacks a floor for one, so I need to create one. Then I’d like to apply textures to the walls and floor, instead of having a plane color. I guess putting a sky in there would also be nice, but then I should add lighting for realism, and probably shadows too. I know all this is possible, we’ll see what I manage.

Control :

There are a list of things to improve here as well. Once I get a floor in the scene, I have to prevent the ability to go down through it, and also through the walls, as it’s the case in this demo. This probably implies collision detection. I’m not too keen on having to press the mouse button to look around, I’ll see if I can deal with that. I also want to disable the [E] and [C] keys that make you move up / down, and add control to [Q] and [Z] for french keyboards. Maybe I’d like running to be default, and walking made possible with [shift]. And finally, some kind of jump or jetpack mode with [spacebar], just for the fun of it !