FlipPapervision3D

This movie requires Flash Player 9

18 Responses to “FlipPapervision3D”

  1. viatropos Says:

    Nice. I will definitely be using this stuff.

  2. pierre Says:

    Hello,

    IS IT POSSIBLE TO VIEW THE SOURCE CODE ?

    REGARDS

  3. Tink Says:

    YEAH

    RIGHT CLICK, SELECT VIEW SOURCE.

  4. pierre Says:

    THANKS

  5. pierre Says:

    I HAD SOME PROBLEMS TO VIEW THE PDF FIEL (EXPLCATIONS), IMPOSSIBLE TO LOAD IT

  6. Marcio Says:

    I’m using in my application

    ‘Papervision3D’;
    ‘Beta 1.7′;
    ‘20.08.07′;

    Which version should I use to use this feature?

  7. Tink Says:

    Papervision3D
    Public Alpha 2.0 - Great White
    24.03.08

  8. Marcio Says:

    Now i create a new application using

    ‘Papervision3D’;
    ‘Public Beta 2.0 - Great White’;
    ‘September 9th, 2008′;

    I am using the following example as a basis

    http://www.efflex.org/examples/viewStackEffects/FlipPapervision3D/srcview/index.html

    But in the Flex Builder appears the following error

    —————–

    1119: Access of possibly undefined property VERBOSE through a reference with static type Class.
    Papervision3DViewStackInstance.as
    efflex/src/org/efflex/viewStackEffects/effectClasses
    line 84

    —————–

    1137: Incorrect number of arguments. Expected no more than 3.
    Papervision3DViewStackInstance.as
    efflex/src/org/efflex/viewStackEffects/effectClasses
    line 144

    —————–

  9. Marcio Says:

    I coment

    //Papervision3D.VERBOSE = false;

    in line 84 in efflex/src/org/efflex/viewStackEffects/effectClasses/Papervision3DViewStackInstance.as

    And in

    _renderer.renderScene( _scene, _camera, _viewport, true );

    i”m using 3 arguments

    I remove the param TRUE

    Doing so most of the examples worked with the exception of

    http://www.efflex.org/examples/MovieClipEffect/srcview/index.html

    What happens the following error

    ——————

    [SWF] /webserver/aplicativos_flex/efflex/bin-debug/index.swf - 813.217 bytes after decompression
    Error: Frame label ‘null’ could not be found
    at org.efflex.effectClasses::MovieClipInstance/play()[C:\Inetpub\wwwroot\webserver\aplicativos_flex\efflex\src\org\efflex\effectClasses\MovieClipInstance.as:70]
    at mx.effects::EffectInstance/startEffect()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectInstance.as:569]
    at mx.effects::Effect/play()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\Effect.as:930]
    at mx.effects::EffectManager$/createAndPlayEffect()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManager.as:716]
    at mx.effects::EffectManager$/http://www.adobe.com/2006/flex/mx/internal::eventHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManager.as:575]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
    at mx.core::UIComponent/setVisible()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1903]
    at mx.core::UIComponent/set visible()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1870]
    at index/___index_Button1_click()[C:\Inetpub\wwwroot\webserver\aplicativos_flex\efflex\src\index.mxml:15]

    ——————

  10. Reeb Says:

    A lot of problem to compile your work …

    Why don’t you put a good compiled swc for we use it ??!!
    I don’t understand … :(

    Same bad compilation for tink project …

  11. Tink Says:

    Keeping the SWC’s up-to-date takes more work for myself (and at the moment there is only me working on this project), but for me a SWC would be more hassle.

    I check the source of all projects out into a library and every project I create I link to that source folder. I can then keep this library up-to-date by just updating the SVN.

    You wanna keep the SWC’s updated if I send you an email each time there’s a change in Efflex?

  12. Tink Says:

    @ Marcio

    ‘Papervision3D’;
    ‘Public Beta 2.0 - Great White’;
    ‘September 9th, 2008′;

    Isn’t the same as the version what Efflex was built around, and therefore there may be lots of changes in the code (I don’t know as I haven’t done a diff on them).

    You could edit the code for the latest version of PV3D, post it back and I’ll update the SVN, or otherwise wait until I have some time on my hands to do it for you.

  13. Tom.Kordys Says:

    I had a quick look into this pv3d flip and the solution is really simple.
    I briefly looked at it and the solution is here:

    In Papervision3DViewStackInstance.as

    comment out line 84

    //Papervision3D.VERBOSE = false;

    VERBOSE only makes you see more detailed log, I didnt investigate why it’s not working

    Change render method to:

    protected function render():void
    {
    _renderer.renderScene( _scene, _camera, _viewport);
    }

    render takes only 3 parameters.

    Also in

    FlipPapervision3DInstance.as there is an import that Tink didn’t include, line 26
    import ws.tink.utils.MathUtil;

    this results in error in onTweenUpdate method around lines 189 and 196

    simply replace:

    MathUtil.degreesToRadians( _plane.rotationX )

    to manual calculation, which is
    Math.PI * _plane.rotationX / 180

    same for _plane.rotationY.

    The entire method with the changes below:

    override public function onTweenUpdate( value:Object ):void
    {
    super.onTweenUpdate( value );

    switch( state )
    {
    case SHOWING :
    case SHOWING_AFTER_INTERRUPT :
    {
    var v:Number = Number( value );

    var targetRotation:Number = _rotationStart + ( _rotationDiff * v );
    if( targetRotation 90 )
    {
    _rotationStart -= 180;
    targetRotation -= 180;
    _plane.material = getBitmapMaterialAt( selectedIndexTo );
    }

    switch( direction )
    {
    case FlipPapervision3D.DOWN :
    case FlipPapervision3D.UP :
    {
    _plane.rotationX = targetRotation
    if( viewStack.clipContent ) _plane.z = Math.abs( Math.sin( Math.PI * _plane.rotationX / 180 ) * ( contentHeight / 2 ) );
    break;
    }
    case FlipPapervision3D.LEFT :
    case FlipPapervision3D.RIGHT :
    {
    _plane.rotationY = targetRotation;
    if( viewStack.clipContent ) _plane.z = Math.abs( Math.sin( Math.PI * _plane.rotationY / 180 ) * ( contentWidth / 2 ) );
    break;
    }
    }
    }
    }
    }

    That should work.

    Tom

  14. Tink Says:

    Thanks Tom!

  15. Darrin Says:

    I am using flex 3.01 and when I try to compile the code right from your example it gives me a error.

    I get a:
    1046:type was not found or was not a compile-time constant: FlipPapervision3d

    for this line:

  16. Tink Says:

    Hi Darrin

    You’ll need to download all the source from the repository.

    http://code.google.com/p/efflex/

  17. Simon Bailey Says:

    I fancied whipping this all together and getting the examples running, so after a good ol search to get the necessary classes I have built a working swc for the current Efflex code library:

    http://www.nutrixinteractive.com/blog/?p=263

    Cheers,

    Simon

  18. jack Says:

    thanks!
    Successful operation of your project

Leave a Reply