Close Show/hide page

3D Page Curl Effect using Papervision3D

Thumbnail - Click me
The venerable Flash effect of turning a page in a book done in 3D. I originally designed and programmed this effect in Actionscript 2 using a home-grown 3D class library at about the time Papervision was entering public beta. This implementation using Papervision3D and AS3 runs a few times faster.

Press ENTER to create new instances of the book. Press it several more times and watch your browser chug :).

Here’s the main class for the page turn effect. I used the code for the PV3D Plane class as a starting point (but, in hindsight, probably should have subclass’ed from it instead). To create the appearance of a rotation of the 3D object, the individual vertices are rotated around the Y axis by increasing amounts depending on their (original) position along the X axis.

Version: 0.9B - Last updated on 4/22/2007

Licensed under a Creative Commons Attribution 3.0 License.

13 Responses to “3D Page Curl Effect using Papervision3D”

  1. Flash Game Guy Says:

    Great Job! I’ve seen a bunch of these, and have worked on creating dynamic catalogs with one of the more popular ones online. I really like this one though. Are there any plans to add shadowing and the ability to flip pages from the corners in?

  2. Skyler Says:

    Hello Lee,

    Fantastic demo with the page Curl. Great work!

    Thank you also very much for sharing the CurlingPlane class. However, when I try to use it I don’t get anything showing on screen (though I have succesfully gotten Collada files, and other primitives in papervision to display).

    I’m calling the constructor with a reference to a bitmapdata object embedded in the FLA:

    var myBD:LibraryBitmap = new LibraryBitmap (0, 0);
    var myBook:CurlingPlane = new CurlingPlane(myBD);
    scene.addChild(myBook);

    I have the class imported and have tried various things but to no avail. I don’t get any compile errors but nothing shows. Please assist.

    thanks,

    Skyler

  3. Ade Says:

    Does this still work with Papervision version 1.5? Like Skyler, I can’t get anything to show, but no errors are produced

  4. beastriker Says:

    WoW! nice!! like a real paper book =)

  5. Pedro Says:

    Great work!

  6. cali Says:

    nice work…but if u let us download it we wouldnt had to steal it… :P
    thnx

  7. romantic Says:

    Great!!! like a real book!!!

  8. Marcio Says:

    Papervision 3D GreatWhite, no have the Mesh3D.as, how i can fix this?

  9. memo Says:

    Really love the way the pages have momentum so if you start moving and let go, sometimes it goes up but falls back down, otherwise it completes the turn on its own… nice touch.

  10. Rhye Says:

    Very Nice Congratulations!!!

  11. Trambroid Says:

    Very good! I like it! nice job!

  12. kartec Says:

    Great. Very fluid. Nice job.

  13. Bastik Says:

    like a real paper book! cool!

Leave a Reply

Powered by WP Hashcash