|
-
Jan 5th, 2024, 11:36 PM
#1
Thread Starter
Fanatic Member
Drawing a "page curl" effect

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:
.
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!
Last edited by tmighty2; Jan 5th, 2024 at 11:42 PM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|