How to draw a book with OpenGl

Hi every one …
I’m supposed to draw a table with two books on it , nothing fancy
but I’m having trouble with the book … any ideas …
Thank
you in advance :smiley: [/b]… [/b]

Easily we can draw a simple book .At first draw a rectangular solid object equal to book size.Now you have to use texture map in six side of rectangular solid object to give it real look of book.So capture the image of your favorite book of all side then use these image as texture in you solid object.If you want the source code of texture mapping then you can go through this link http://codeincodeblock.blogspot.com/2011/06/bitmap-and-texture-map-in-opengl.html

[b]
Thank you so much Dinesh :slight_smile:

Now when you said “So capture the image of your favorite book of all side then use these image as texture in you solid object” … Correct me if I’m wrong ,but in your way I should have an image of some book,then load it in the program ,
but you see , I’m not supposed to use that , it should be 2D … but not this complicated …
anyhow thanks again for replying … [/b]

I mean you have to load image for texture mapping on solid object

[b] Can you stop writing in some ridiculous font.
There, that’s better. We can all read this now.

" ridiculous " !!
Someone is in a bad mood today , thanks any way .