Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: easiest way to texture map a cylinder

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2004
    Posts
    7

    easiest way to texture map a cylinder

    I am trying to apply texture maps to cylinders. Say I allready have the textures loaded what is the simplest way to apply a texture map to a cylinder...

    I have a function that draws a cylinder...

    gluCylinder(quadric, 0.1, 0.1, (_3_depth[i])/3, 12, 1);

    I now need to wrap the texture map around the cylinder...

    Thanks

  2. #2
    Advanced Member Frequent Contributor plasmonster's Avatar
    Join Date
    Mar 2004
    Posts
    750

    Re: easiest way to texture map a cylinder

    Have a look at gluQuadricTexture. It was designed with that very task in mind.

    Otherwise, consider creating your own cylinder and assigning texture coordinates manually.

Posting Permissions

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