oleksandrbalan / pagecurl

This library allows to create an effect of turning pages, which can be used in book reader applications, custom on-boarding screens or elsewhere.
Apache License 2.0
345 stars 32 forks source link

Page-turning effect #17

Closed choristery closed 1 year ago

choristery commented 1 year ago

Hi,I compared this app with other reading applications I've used so far, and I noticed that they have a page-turning effect that simulates the bending of real book pages. I hope you don't mind me asking, but is it easy to implement this effect?

oleksandrbalan commented 1 year ago

I have seen those bending effects before implementing PageCurl, and initially I wanted to achieve more 3D-ish visual, but failed. IMHO they are implemented via some sort of 3D engine (did not investigate it) to make smooth page curl, text bending and that soft shadows. Maybe it is possible with canvas API, but that would be hella more math 😅

choristery commented 1 year ago

Okay, I understand. Perhaps this library is helpful, but I'm quite unfamiliar with the related APIs.

https://github.com/FantasticPornTaiQiang/PTQFlipper