Results 1 to 3 of 3

Thread: Texturing the inside of a glutSolidSphere

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2000
    Posts
    19

    Texturing the inside of a glutSolidSphere

    Does anyone know how?

  2. #2
    Junior Member Newbie
    Join Date
    May 2000
    Location
    Annapolis, MD
    Posts
    20

    Re: Texturing the inside of a glutSolidSphere

    I could be mistaken, but as far as I know you can't. I don't think glut issues TexCoords for it's primatives.

    But, you can use the glu quadric to make a sphere with Texture:

    struct GLUquadric* quad;
    quad = gluNewQuadric();
    gluQuadricTexture( quad, True ); //enable TexCoord generation
    glBindTexture( GL_TEXTURE_2D, texName[0] );
    gluSphere( quad, 5, 10, 10 );

    I seem to recall pictures of the Teapot prim. with a texture map on it. So there is probablly a way to get glut to add TexCoords, but I don't use glut so I'm not sure.

    -Marrcke

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2000
    Posts
    19

    Re: Texturing the inside of a glutSolidSphere

    Thanks!

Similar Threads

  1. Is glutSolidSphere deprecated?
    By zzzhhh in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-16-2017, 10:59 AM
  2. Texturing the inside of cylinder
    By Neuron in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 01-12-2012, 03:18 AM
  3. glutSolidSphere
    By Ali S. Alfaraj in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 09-28-2010, 08:09 AM
  4. map a glutSolidSphere?
    By Alexis V Bahena in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 04-14-2010, 07:28 PM
  5. glutSolidSphere VS. gluSphere
    By jbarton in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 03-28-2002, 02:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean