Results 1 to 3 of 3

Thread: Lighting and Texturing Problems

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2001
    Location
    Whangarei , New Zealand
    Posts
    29

    Lighting and Texturing Problems

    I cant get textures on my models
    can someone please email me code to do this

    When I enabled lighting the coloring on my model turned to a uniform shade of grey
    sugestions where to look for errors

    My Email Address if fuz_king@hotmail.com

  2. #2
    Member Contributor
    Join Date
    Aug 2001
    Posts
    62

    Re: Lighting and Texturing Problems

    did you set the texture paramaters adn the enviornment variables using glTexParamater*() and glTexEnv*()??

    such as

    glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL _REPEAT);
    glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL _REPEAT);
    glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTE R,GL_LINEAR);
    glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTE R,GL_LINEAR);
    glTexEnvi(GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE,GL_MO DULATE);

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2001
    Location
    Whangarei , New Zealand
    Posts
    29

    Re: Lighting and Texturing Problems

    Originally posted by no-one:
    did you set the texture paramaters adn the enviornment variables using glTexParamater*() and glTexEnv*()??

    such as ...

    No I did and it is now working Thankyou very much,



    [This message has been edited by King Fuzzy (edited 08-23-2001).]

Similar Threads

  1. Problem with lighting & texturing
    By kiattisak in forum OpenGL: Advanced Coding
    Replies: 12
    Last Post: 01-29-2016, 01:31 PM
  2. 3D Texturing and Lighting
    By Chalnoth in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 11-07-2002, 06:51 AM
  3. Lighting and Texturing
    By Furrage in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-13-2002, 12:09 AM
  4. Lighting & Texturing not working despite using GL_MODULATE
    By Tod Baudais in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 03-02-2001, 08:05 PM
  5. texturing and lighting
    By hoshi55 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-19-2001, 05:37 AM

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