Click to See Complete Forum and Search --> : How can i put my image to a cylinder?


bugzhao
April 7th, 2004, 11:35 AM
I just do sth like panorama,
now I want to paste it to a cylinder so it would be more third dimensional feel,
How can I achieve this in vc?
did I need to learn the complex openGL?

NeilH
April 8th, 2004, 08:33 AM
Use gluCylinder() to draw the cylinder, then apply the picture as a texture. If you want a full cylinder use gluDisk() to draw the disks on the ends.

http://cgm.cs.mcgill.ca/~msuder/courses/557/tutorial/tutorial.html

That link should be a good starting point...

bugzhao
April 8th, 2004, 08:44 AM
thanks, buddy~
I will check it and do sth for a test~