Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Page Curler - Smooth page turning animations

Discussion in 'Assets and Asset Store' started by Serk, Apr 15, 2014.

  1. Serk

    Serk

    Joined:
    Apr 23, 2013
    Posts:
    4

    Page Curler adds smooth page turning animations with curling deformation effects to your 3D books, maps, menus, or other surfaces, for that extra polishing factor.

    Check the Web Demo: Here
    Read the documentation: Here

    Features
    • Driven by Unity's animation system, you can edit or replace the provided animations with your own.
    • Preview changes directly in editor.
    • Simple to use scripting interface.
    • All the parameters are exposed to scripting. You can control the effect directly from your code.
     
  2. p6r

    p6r

    Joined:
    Nov 6, 2010
    Posts:
    1,158
    At last a specific page curler ! Great !
    Could you add a video with various textures on the pages ?
    The problem for me always is the thickness of the book. It would be great to have a "true" book with a lot of pages and a different thickness at the right side and the left side. You say we can do that but with a few pages !?!
    And the covers ? Can we open/close the book with a right effect ?
    6R
     
  3. Serk

    Serk

    Joined:
    Apr 23, 2013
    Posts:
    4
    The asset only provides the single page turning effect, not a full book implementation. However, it's designed to be used in that context with ease. I can show you an example on how it works in the game I'm developing (from where the asset originally comes):



    In my case the book is an animated model that opens and closes. I just attached the PageCurler to its middle edge (setting the min and max rotations so that it matches the model) and change the textures as you read. You can also have more that one PageCurler (and recreate the whole structure), but changing textures has better performance, specially if you have many pages per book.

    Also, the asset doesn't support actual page thickness at the moment, I'm sorry (I did some experimentation on that and found the results weren't too satisfying).
     
  4. Silly_Rollo

    Silly_Rollo

    Joined:
    Dec 21, 2012
    Posts:
    501
    If that book was generic (e.g. the text isn't a texture but generated from an xml file or something) I would totally pay for a more expensive asset that included everything in the video (book opening animation, text display, and page animation). Your example looks really slick.
     
  5. p6r

    p6r

    Joined:
    Nov 6, 2010
    Posts:
    1,158
    +1 : for more in the package.
    Can we turn back ? Per script ? Turn by clicking on the left or right page ?

    6R
     
  6. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,838
    Very nice, have been waiting ages for something like that

    +1 to having a full book sample implemented
     
  7. Serk

    Serk

    Joined:
    Apr 23, 2013
    Posts:
    4
    Thanks for the feedback, I'll consider making the full system available. I wanted to test the waters with something simpler (it's my first asset!), and the effect had less dependencies with the rest of the game than the full book system.

    Yes, there is an inverted animation included into the package. Activating the turning page animations from script is as easy as calling the "Flip" method of the main component, passing "true" or "false" as a parameter to control whether you want it to go forwards or backwards.

    Also, because it's built on top of Unity's animation system, you can bypass calling "Flip" and just play the animations directly from the Animation component, just like any other animation in Unity. That might make it easier to integrate with other packages or code you are using.
     
  8. p6r

    p6r

    Joined:
    Nov 6, 2010
    Posts:
    1,158
    Thanks, Serk, for the infos.
    Wait and see what comes... Don't hesitate to add a full scene with scripts and so on.
    Added to my wishlist !
    6R
     
  9. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,838
    Already bought the pack to support, if you add the more complex book would be very nice too :)
     
  10. Serk

    Serk

    Joined:
    Apr 23, 2013
    Posts:
    4
    Thank you!
     
  11. wongagame

    wongagame

    Joined:
    May 17, 2018
    Posts:
    2
    HI

    I'm develop poker card animation but not proper working so plz help me.
    i am poker card right side to card open animation create but not working

    My code :

    using UnityEngine;
    using System.Collections;

    [ExecuteInEditMode]
    public class CurlEfRight : MonoBehaviour
    {
    public Transform _Front;
    public Transform _Mask;
    public Transform _GradOutter;
    public Vector3 _Pos;
    // = new Vector3(240.0f, 470.0f, 0.0f) * 0.01f;

    void Start()
    {
    print(_Pos);
    }

    public Vector3 offset;
    Vector3 offset2;
    public bool isOffset = false;

    void LateUpdate()
    {
    transform.position = _Pos;
    transform.eulerAngles = Vector3.zero;// + offset2;

    Vector3 pos = _Front.localPosition;
    float theta = Mathf.Atan2(pos.y, pos.x) * 180.0f / Mathf.PI;
    Debug.Log("Lefttheta : " + theta);

    if (theta <= 0.0f || theta >= 90.0f)
    return;

    float deg = -(90.0f - theta) * 2.0f;
    Debug.Log("Deg : " + deg);
    _Front.eulerAngles = new Vector3(0.0f, 0.0f, deg);// + offset2;

    _Mask.position = (transform.position + _Front.position) * 0.5f;
    _Mask.eulerAngles = new Vector3(0.0f, 0.0f, deg * 0.5f);// + offset2;

    //_GradOutter.position = _Mask.position;
    //_GradOutter.eulerAngles = new Vector3(0.0f, 0.0f, deg * 0.5f + 90.0f) + offset2;

    transform.position = _Pos;
    transform.eulerAngles = Vector3.zero;// + offset2;
    }
    }
     

    Attached Files:

    • Img.png
      Img.png
      File size:
      199.8 KB
      Views:
      666