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: Two questions ... read please :D

  1. #1
    Intern Contributor
    Join Date
    Dec 2001
    Location
    Porto Velho
    Posts
    97

    Two questions ... read please :D

    First:

    How do I avoid using auto-texture-coord generation (how to calc tex coords)?


    Second:

    How do I implement Detail Texturing while using auto-tex-coord generation?


    Lot of thanks
    and sorry about my english.

  2. #2
    Member Regular Contributor
    Join Date
    Jul 2001
    Posts
    352

    Re: Two questions ... read please :D

    First question : that's easy ! Just specify your texcoords with glTexCoord2f (or glTexCoord2fv or glTexCoordPointer...).
    To disable texcoord generation (anyway it's off by default), call :
    glDisable (GL_TEXTURE_GEN_S);
    glDisable (GL_TEXTURE_GEN_T);

    Second question : I couldn't give you a complete answer since I've never tried detail texturing. Maybe you could look on the Extension Registry somewhere on this site. It's a catalogue of all opengl extensions, with many explanations on each.

    Morglum

  3. #3
    Member Regular Contributor
    Join Date
    Feb 2001
    Location
    Montréal, QC, Canada
    Posts
    304

    Re: Two questions ... read please :D

    Detail texturing is just applying a second texture that is tiled very often.

    Just enable blending, choose a blending function, select your texture, and alter the texture matrix using glScale.

Posting Permissions

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