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: Texture Mapping

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2002
    Location
    India
    Posts
    10

    Texture Mapping

    I used to glutSolidSphere to draw a sphere.
    How to glue an image on this?Should I supply
    texture and geometry coordinates?

  2. #2
    Junior Member Newbie
    Join Date
    Apr 2002
    Posts
    3

    Re: Texture Mapping

    try : in your GL init function :

    glEnable(GL_TEXTURE_2D);
    glEnable(GL_TEXTURE_GEN_S);
    glEnable(GL_TEXTURE_GEN_T);
    glEnable(GL_TEXTURE_GEN_R);

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2002
    Location
    India
    Posts
    10

    Re: Texture Mapping

    Thanx..It worked.
    The bitmap is repeated.I want only one bitmap to be glued in a sphere.Is there any parameters other than GL_REPEAT and GL_CLAMP
    avilable?

Posting Permissions

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