CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2004
    Location
    China
    Posts
    11

    How can i put my image to a cylinder?

    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?

  2. #2
    Join Date
    Apr 2000
    Posts
    118
    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/cour.../tutorial.html

    That link should be a good starting point...

  3. #3
    Join Date
    Apr 2004
    Location
    China
    Posts
    11
    thanks, buddy~
    I will check it and do sth for a test~

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured