This is something I wanted to do since 2005, but started and finished half an year ago.
This is an final vision because I won’t have time to do with it any more.
I am sorry that this work is not effective at all, be careful of your CPU if your use a larger
picture! We all know that 3d for pixels can’t be used for real time 3d textures now. However, I do like its simplicity.
You can use it for small pictures or in pre-rendered 3D movies if you like.
Maybe you will write an flash-10 vision, use the new Vector3D class instead of Robert Penner’s old one, to test the speed.
The only useful thing here is how to fix fishbowl distortion.
If you only use BitmapData setpixel() to draw 3D transform, there will be annoying gaps between pixels.
The trick is to use a Shape and drawRect() or lineTo() and then a Bitmap to draw() that Shape back.
Enjoy!
[COLOR=blue]DEMO[/COLOR](Please download it to view! Be careful of your CPU!)
[SIZE=5][COLOR=#810081]source[/COLOR][/SIZE]