Nadim is Simple

December 30, 2008

ActionScript 3.0 Pseudo-3D Drawing Performance

Filed under: Study — Tags: , , — Nadim Jahangir @ 11:58 am

Since there is no 3D library in ActionScript 3.0 we need to do pseudo-3D drawing by some projection calculations which requires expensive matrix and vector calculations. I was just wondering if Flash player is capable of handling such huge load due to this massive calculations when there are lot of 3D objects and complex scene construction is required. But fortunately Flash player can do this quiet satisfactorily though when the 3D scene to be rendered is very much complex the exact timing slips due to increased time complexity. But in most of our applications we don’t need that much calculations and Flash player can give us pretty smooth and glitchless 3D animations.

I tried drawing some 3D scenes. Two of them are shown below.

To see “ball bouncing in 3D space” go to http://nadimjahangir.net/xp/test3d.swf

A Ball Bouncing in 3D Space

A Ball Bouncing in 3D Space

To see “wavy 3D surface” demo go to http://nadimjahangir.net/xp/wave3d.swf
Wavy 3D Surface

Wavy 3D Surface

Advertisement

1 Comment »

  1. Great work Nadim vai.
    Thnx for discuss about such an interesting thing.
    So that those who want to make something 3d environment with 3d Max or MAYA, now can move his/her attention in to Flash.
    Flash is a heaven and AS make it more adv. BD people should work more on flash.

    Comment by Md. Faisal — December 31, 2008 @ 12:08 am


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Shocking Blue Green. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.