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?

Similar Threads

  1. Texture mapping ::: 3D Face Mapping
    By 3render3 in forum OpenGL: General
    Replies: 2
    Last Post: 03-24-2013, 06:49 PM
  2. projective texture mapping and shadow mapping
    By phoenix_gl in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 10-08-2012, 08:00 PM
  3. Replies: 0
    Last Post: 01-09-2005, 05:53 PM
  4. Replies: 1
    Last Post: 01-09-2005, 05:50 PM
  5. Texture Mapping / Environmental Mapping.
    By imported_Andrew in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-09-2000, 01:20 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