dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: how do i achieve this effect

  1. #1
    Junior Member
    Join Date
    Oct 2003
    Posts
    23

    how do i achieve this effect


  2. #2
    Junior Member
    Join Date
    Oct 2003
    Posts
    15
    Found this in the movies section. Download and enjoy.

    http://www.flashkit.com/movies/3D/3D...4070/index.php

  3. #3
    Junior Member
    Join Date
    Oct 2003
    Posts
    23
    thanks but that one is a little hard to understand...

    PHP Code:
    mousex getProperty("/inv"_x);
    mousey getProperty("/inv"_y);
    yangle int(/:yangle);
    xangle int(/:xangle);
    cube_w getProperty("/word"_xscale);
    cube_h getProperty("/word"_yscale);
    "1";
    while (
    Number(i)<9) {
        
    cosYangle = eval ( "/:cos" add yangle );
        
    sinYangle = eval ( "/:sin" add yangle );
        
    cosXangle = eval ( "/:cos" add xangle );
        
    sinXangle = eval ( "/:sin" add xangle );
        
    zpos = eval("z" add i);
        
    xpos = eval("x" add i);
        
    ypos = eval("y" add i);
        
    tempz = ((eval("z" add i) ) * cosYangle ) - ( eval ("x" add i) * sinYangle );
        
    set("x" add iNumber((zpos*sinYangle))+Number((xpos*cosYangle)));
        
    set("z" add iNumber(((ypos)*sinXangle))+Number((tempz*cosXangle)));
        
    set("y" add i, ((ypos)*cosXangle)-(tempz*sinXangle));
        
    scalar 1/ (  ((eval ("z" add i))/d)+1  );
        
    set("xp" add i, ((eval("x" add i)  *  scalar) + 00));
        
    set("yp" add i, ((eval("y" add i)  *  scalar) + 00));
        
    Number(i)+1;
    }
    "1";
    while (
    Number(i)<9) {
        
    setProperty("point" add i_alpha100-(eval( "z" add i)));
        
    setProperty("point" add i_xscale100 -((eval( "z" add i)) /4));
        
    setProperty("point" add i_yscale100 -((eval( "z" add i)) /4));
        
    setProperty("point" add i_x, eval( "xp" add  i));
        
    setProperty("point" add i_y, eval( "yp" add  i));
        
    // ------code added here for zsort----
        
    setProperty("point" add (i+20), _alpha100-(eval( "z" add i)));
        
    setProperty("point" add (i+20), _xscale100 -((eval( "z" add i)) /4));
        
    setProperty("point" add (i+20), _yscale100 -((eval( "z" add i)) /4));
        
    setProperty("point" add (i+20), _x, eval( "xp" add  i));
        
    setProperty("point" add (i+20), _y, eval( "yp" add  i));
        if (eval(
    "z" add i) > 0) {
            
    setProperty("point" add i_visibletrue);
            
    setProperty("point" add (i+20), _visiblefalse);
        } else {
            
    setProperty("point" add i_visiblefalse);
            
    setProperty("point" add (i+20), _visibletrue);
        }
        
    // -----Todd Marks digitalorganismt----
        
    Number(i)+1;
    }
    if (
    Number(/:zooming) == 1) {
        
    setProperty("/word"_xscalecube_w*1.05);
        
    setProperty("/word"_yscalecube_h*1.05);
    }
    if (
    Number(/:zooming) == 2) {
        
    setProperty("/word"_xscalecube_w*0.95);
        
    setProperty("/word"_yscalecube_h*0.95);
    }
    if (
    Number(/:zooming) == 0) {
        
    tellTarget ("/keychecker") {
            
    gotoAndStop(1);
        }
    }
    if (
    Number(/:target)>0) {
        
    set("x" add /:target, (/inv:xoffset - eval("x" add /:target))*-1);
        
    set("y" add /:target, /inv:yoffset+eval("y" add /:target));


    ^ im lost... lol.

  4. #4
    Junior Member
    Join Date
    Oct 2003
    Posts
    23
    help plz.

  5. #5
    Junior Member
    Join Date
    Oct 2003
    Posts
    15
    Probably best to look over some formal 3D/perspective tutorials and open source files either here at Flashkit, at http://www.bit-101.com or http://www.were-here.com or at http://www.kirupa.com

    They'll give you knowledge on this and more.

  6. #6
    Member
    Join Date
    Oct 2003
    Location
    Colorado Springs
    Posts
    82
    also the basic concept is that the farther away it appears, the image gets smaller and the alpha is lowered, as it moves forward, increase alpha and increase size. then all you have to worry about is how you want it to move.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center