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 3 of 3

Thread: Tiling textures onto Quadrics objects

  1. #1
    Guest

    Tiling textures onto Quadrics objects

    If I create a quadrics object, say a cylinder, my texture must be close to the size of the cylinder to minimize the distortion.

    Is there a way to tile a texture onto quadrics objects so I can minimize the distortion?

    Thanks

  2. #2
    Junior Member Newbie
    Join Date
    Apr 2001
    Location
    Burlington,NC,USA
    Posts
    19

    Re: Tiling textures onto Quadrics objects

    I just checked the Red Book, and it says that automatic texture coordinate generation for quadrics is limited to texture coordinates between 0.0 and 1.0. So, I'd say that you might want to generate your cylinder and its texture coordinates by yourself, as opposed to using the gluQuadric functions.It doesn't look like tiling(i.e. tex-coordinates above 1.0) is an option for Quadrics.

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Dec 2002
    Location
    Espoo, Finland
    Posts
    599

    Re: Tiling textures onto Quadrics objects

    Hi,

    You can tile the the textures simply by adding scaling to the texture matrix.

    -Ilkka

Posting Permissions

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