Unusual 3D page curling effect with deformation

Started by
4 comments, last by Bacterius 11 years, 5 months ago
So I have an assignment to implement a certain 3D page flipping effect, but I can't find any tutorials or algorithms to do so. I heard the effect is available on Google eBook reader.

See the pictures:

[attachment=12182:2.jpg]
[attachment=12183:3.jpg]

Of course it's implied that the effect should be pretty accurate with the texture, so it doesn't deform it. The only parameter should be the X position of the finger on the screen, so no fancy up-down warping needed.

Does anybody have any ideas of how to proceed?
Advertisement
Here's a suggestion, I've never done this before, just guessing.

You could create a 3-d cylinder shape and texture map a quad to it, then vary the radius of the cylinder from fat to thin as the finger moves to the apex and then back from thin to fat as the finger moves left of the apex.
Well, this is kinda half the pain, because the apex isn't situated in the middle between your finger and the book spine.
Indeed, sorry I missed that constraint when I first read your OP.

Here's something I found that might help?

http://rbarraza.com/html5-canvas-pageflip/
Well, the link illustrates the usual page flip, like Harism did. And I'm not sure it's worth it because ultimately we have to make sure that the mesh doesn't have any visible "breaks" in places where the flat piece connects with the piece that's "rolled" around the cylinder
Do you need to do it in three dimensions (e.g. display an actual 3D book with a page mesh that correctly flips), or can it be done as a simple 2D animation (in which case the effect can be obtained by an analytical mapping which'll correctly map the original page texture to the "curled" page texture).

“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”

This topic is closed to new replies.

Advertisement