pannini example code....

  • hye Klaus...


    i would like to try pannini projection... but failed!!! hehe ... what i do get is only black screen... actually i didnt know the rest of script ie the fisheye and stereofisheye view setting and this is ur suggestion in KRPANO README file

    Pannini Projection
    - view.pannini="true|false"
    - view.stereographic and view.fisheye must be also set to get an effect

    anyway this is my code

    <action name="pannini">
    set(view.pannini,true);
    tween(view.fisheye, 0.0, distance(1.0, 0.25), easeoutquad, set(view.stereographic,false);set(display.flash10,on); );
    </action>

    anyway.. Klaus.. are all those events can work if call/set from actionscript 3?

    i do want to add onidle / ideltime / mouse / cursor move into actionscript 3.. but didnt know the actuall code in flash..

    ie... in flash calling some action when mouse / cursor didnt move in certain time..

    cheers..

  • Hi,

    anyway.. Klaus.. are all those events can work if call/set from actionscript 3?

    yes, and the code itself looks also okay,
    normally it should work


    i do want to add onidle / ideltime / mouse / cursor move into actionscript 3.. but didnt know the actuall code in flash..

    to call an as3 function on the onidle event:

    as3 code:

    Code
    krpano.set("events.onidle", your_onidle_function);
    
    
    ...
    
    
    function your_onidle_function():void
    {
      // do something ...
    }

    best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!