1 Attachment(s)
Drawing a "page curl" effect
Attachment 189768
I would like to ask for advice on how to achieve such an effect as can be seen in the iPad-only app "Book Creator" (free of charge on the iPad App Store).
The app allows to put text and photos onto images. The images serve as "pages" of a virtual book that the user can curl / flip using a finger. A quick finger stroke will turn / flip the page, but moving the finger slow from an edge inwards reveals a nice page curl. Here is a video that shows this in action:
https://www.youtube.com/watch?v=4kksKUdNBO8.
I am not sure if it involves a matrix or if can be solved by a projection.
I posted this task on a freelancer forum, but nobody had an idea how to do it, so I will must try to solve it myself.
If anybody has an idea how to start, please shoot.
I am using vbRichClient, so I would like to use Cairo if possible. But if there is any other graphics library capable and perhaps even faster for such a purpose, then of course I would rather use this.
I tried the project sample in Olaf's CairoTutorial, but it was really slow even for a small image already. He mentioned that projection is not natively supported by Cairo and runs on CPU instead.
I guess that projection is what I need. But perhaps I even need a more complex matrix, and I guess if not even projection is supported by Cairo, then also Matrix won't be natively, so perhaps Cairo is not the solution in this case.
Thank you!
Re: Drawing a "page curl" effect
You could do this using Direct3D if you need true bending. It's quite simple to do a fake (without curve bending) in GDI/GDI+ using rotations.
Re: Drawing a "page curl" effect
Can you elaborate how this could be done in Direct3D?
So far nobody has been able to do it. As I said, I even posted it in freelancer forums.
Nobody...
Re: Drawing a "page curl" effect
Re: Drawing a "page curl" effect
Thank you! I didn't see that.
And wow, you have DirectX code for VB6!! Thank you!!