Start of a page turning system. This one is very much wip in progress, it works but there is room for improvement. This is based on an action script page turn effect and has some limitations so I will be adding a new page flip effect soon which will offer a much nicer turn effect and wont have the side effect of flattening the mesh. To make best use of this script you should a MegaShape page mesh as your base.
Page Flip Param Description
Amount the page is turned from right to left 0 – 100.
Amount of curl early on in the turn.
Amount of curl mid way through turn.
Amount of curl at end of the turn.
Use this if page turns from wrong edge.
If you click Advanced a load of extra params open, you can use these to control the whole effect but each param is basically a coefficient in the maths that control the page turn so it is very much a case of trail an error but if you are feeling brave have a play. The new page turn modifier will be much nicer.
Page Flip Class
public bool animT;
public bool autoMode;
public bool lockRho;
public bool lockTheta;
public float timeStep;
public float rho;
public float theta;
public float deltaT;
public float kT;
public float turn;
public float ap1;
public float ap2;
public float ap3;
public bool flipx;
Build a Book Script
There is a script include in the extras section that make is easy to build a complete book by allowing you to say how many pages are in the book and a texture for each page, the books can then be controlled with a single value that will open the book and turn each page until it closes the book.
Video showing the Build Book process
You must be logged in to post a comment.