View Full Version : How to draw a book with OpenGl
Rock & Roll
11-11-2011, 04:25 AM
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 :D [/B].. [/B]
Dinesh
11-11-2011, 05:08 AM
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
Rock & Roll
11-11-2011, 07:25 AM
Thank you so much Dinesh :)
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 ..
Dinesh
11-11-2011, 07:34 AM
I mean you have to load image for texture mapping on solid object
BionicBytes
11-11-2011, 07:59 AM
[B]Can you stop writing in some ridiculous font.
There, that's better. We can all read this now.
Rock & Roll
11-11-2011, 09:04 AM
" ridiculous " !!
Someone is in a bad mood today , thanks any way .
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.