View Full Version : flip pdf pages

04-17-2004, 09:17 AM
Hi all, I am trying to animate PDF pages turning on a magazine but am not getting anywhere. Does anybody know of any tutorials out there that would tell me how to make a model of a PDF magazine and turn the pages.

04-17-2004, 12:34 PM
Dunno of a tutorial, but the basic approach would be to get a pfd renderer (you can probably get one Open Source for this, this is the most difficult part). Once you have your pfd page rendered (prefferably in memory) you load it to an OpenGL texture and then just draw a textured mesh for the page flipping animation. Adobe has a pdf library to help you read, write, render etc. this stuff I don't know much about it though, what the charges are etc. This may interest you:


I expect there are other options out there though. Something lgpl would probably be what you're looking for.

Once you have some OpenGL geometry textured with the pdf image you're most of the way there, so focus on how you achive that, then read this thread on page curl animation, my apologies for all the unnecessary debate in this thread, it got silly in some ways but the substance is there:

http://www.opengl.org/discussion_boards/cgi_directory/ultimatebb.cgi?ubb=get_to pic;f=3;t=010367 (http://www.opengl.org/discussion_boards/cgi_directory/ultimatebb.cgi?ubb=get_topic;f=3;t=010367)