19
Aug/08
1

Proof of concept: Flash 3D engine

I tryed a few things out in AS2 before but without much succes. With AS3 however, the new OOP structure and performance increase greatly improved the possibilities for a 3D engine in flash. Now I know there are things like this (and obviously much better) out there like Papervision3D and Sandy3D, but sometimes I like to reinvent the wheel. This is just a proof of concept; performance is far from good and there is a great lack of important features. A real version might be just around the corner though…

The navigation is still somewhat ackward for the sake of simplicity;

  • W,S let you move along the z-axis
  • A,D let you move along the x-axis
  • Numpad 2 and 8 let you move along the y-axis
  • Left and right arrow keys let you rotate left and right
  • Up and down arrow keys let you rotate up and down

On a side note; I used a few ‘must-have’ classes from others;
Senocular’s keyObject class – for detecting multiple keyboard presses at once
Lifeztream’s FPS class – for displaying the 3D engine performance

And of great inspiration were;
Flash and Math’s simple 3D tutorial
Kirupa’s 3D tutorial

Comments (1) Trackbacks (0)
  1. Gregory
    6:54 pm on January 9th, 2010

    Wow, you are starting to develop your own 3d engine from scratch!? How about sharing some of the code, or some of the concepts behind the process, etc! This would be a great idea for some newbie flash developers who are wanting to learn how to develop a 3D engine in flash, like my self. You may also get feedback on how to optimize the code, or structure the code, when doing this.

    These are just some thoughts and suggestions because I am really interested in seeing what you can do with your 3D engine. I REALLY love the shadowing example, and would you be willing to share some code and concepts on how you did this.

    Thanks for hearing me out!

Leave a comment

No trackbacks yet.