Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Working with 3D in ActionScript

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 562
    Comment on it

    WORKING WITH 3 DIMENSION
    The 3D is a new feature of ActionScript. 3D basically stands for Three Dimensinal space. The major difference that comes between Two Dimension and Three Dimension is the addition of an extra dimension. With 2D we used to work with only two dimensions i.e 'x' and 'y'. But now with the addition of new feature of 3D we get the option of working with an extra axis i.e the 'z' axis. With this new feature the game developers and animators can now work with 3D view and movement more easily than before. The third dimension allows the user to create an object that can move toward and away from viewpoint of the user. alt text

    With the help of few examples we will get a better understanding of the 3D feature.

    Suppose we have the set the position of any element across all the three axis then for that just follow the instance name with x,y,z property.

    movieClip.x = 10;
    movieClip.y = 60;
    movieClip.z = 150;
    

    Now if we want the rotation property also to be added to the elements then for that we have to use rotationX, rotationY and rotationZ.

    movieClip.rotationX = 150;
    movieClip.rotationY = -15;
    movieClip.rotationZ = 40;
    

    alt text

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: