This post will cover how to use flash in your 3D games in a really fast and easy way. The library that we are going to use is gameswf (pronounced “game swiff”) and it is open source. Of course, this is not the only solution available, there is also a commercial middleware called Scaleform but this time I want to focus on the open source solution.

What is GameSWF ?

Gameswf is designed to be used as a UI library for computer and console games. To show that it is possible to integrate it with any engine I have implemented 2 solutions, the first one uses GLUT and, in the second one (in another tutorial) I have integrated it with Irrlicht.

Why I am writing this post? Because I don’t want any other programmer feels that there is not enough information in internet about using Flash in your 3D games! I have been working with this library lasts months and the results are pretty good, it can render shapes, text, gradients, sprites and it is even compatible with ActionScript (very basic actions). The only difference you will see between this solution and the original Flash Player is the aliasing. If you want antialiasing then you will have to either improve it or rewrite it.

Read the rest of this entry »