Results 1 to 3 of 3

Thread: what's the effect of coefficient in glTexGen

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2011
    Posts
    7

    what's the effect of coefficient in glTexGen

    for example:
    GLflaot currentCoeff={1.0,0.0,0.0,0.0}
    glTexGenfv(GL_S,GL_OBJECT_PLANE,currentCoeff);
    how the coefficient which is currentCoeff above effect the texture coordinate? i have look up the Specifications about the TexGen function, but it seems talk just a little about it.

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Mar 2009
    Location
    Karachi, Pakistan
    Posts
    810

    Re: what's the effect of coefficient in glTexGen

    The manual explains the coefficients nicely http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml
    Regards,
    Mobeen

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2011
    Posts
    7

    Re: what's the effect of coefficient in glTexGen

    thank you for the manual.
    and as it says,in my example the reference plane is X=0;and i run my programm, it goes well.
    when i change currentCoeff to {0.0,1.0,0.0,0.0}.as the manual says the reference plane should be Y=0. but when i run the program, it seems the reference plane is Z=0.
    when i change currentCoeff to {0.0,0.0,1.0,0.0}.i run the program, it seems the reference plane is Y=0.
    So i don't know what's why.

Similar Threads

  1. Replies: 0
    Last Post: 09-18-2008, 01:57 AM
  2. glTexGen*
    By gerogerber in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 04-21-2002, 01:20 AM
  3. glTexGen
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-07-2001, 07:28 AM
  4. glTexGen
    By HFAFiend in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 04-01-2001, 01:41 PM
  5. Replies: 0
    Last Post: 12-31-1969, 07:00 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