Results 1 to 2 of 2

Thread: Texture questions

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2010
    Posts
    7

    Texture questions

    How would I make a textured mesh shiny (the equivalent of GL_SPECULAR and GL_SHININESS for a material)? I don't need the specularity to vary across the mesh, but it needs to take account of normals.

    Also, how would I apply a texture to the front surface of a mesh, but a material to the back surface? I know how to do this with two different materials, but not for a combination of a material and a texture.

  2. #2
    Newbie Frequent Contributor
    Join Date
    Mar 2016
    Posts
    896

    Re: Texture questions

    I assume you are using the fixed function pipeline (aka. compatibility profile).
    Lighting is still performed using the material properties you set up with glMaterial() calls. The texture is only put on top of that (if you use glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE) that is).
    I don't know how to make texturing only affect front faces with the fixed function pipeline, sorry.

Similar Threads

  1. Texture questions...
    By surfdabbler in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 06-23-2008, 06:24 AM
  2. My Questions about texture mapping
    By houdy in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 11-02-2004, 05:42 PM
  3. Texture mapping questions
    By autumn in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 08-06-2003, 04:10 AM
  4. texture speed questions
    By cragwolf in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 06-11-2003, 03:14 AM
  5. Texture questions
    By 2 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-22-2001, 09:55 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