Results 1 to 4 of 4

Thread: Colors and Texturing

  1. #1
    Member Newbie
    Join Date
    Oct 2004
    Posts
    32

    Colors and Texturing

    Hello,

    Is there a way to replace a color by another one without changing the image data. is there a function to replace the current color palette or to replace the white color (for exemple) by a red color ?

    Thanks,
    Ludovic.

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2006
    Location
    Sweden
    Posts
    744

    Re: Colors and Texturing

    Not directly, but you could write a shader that does that for you.

  3. #3
    Member Newbie
    Join Date
    Oct 2004
    Posts
    32

    Re: Colors and Texturing

    A long time ago, i remember having done a world with a "bumpmap" (bitmap black/white). by using color3f(), the bumpmap was automatically changing to the color given in color3f().

    I'm trying to do it again but with no succes .
    Is there a specific glEnable() to call or something to configure to do this ? (or maybe i've activated something which doen't work with it ?)
    (could it works with transparent .tga ?)

  4. #4
    Senior Member Frequent Contributor
    Join Date
    Feb 2006
    Location
    Sweden
    Posts
    744

    Re: Colors and Texturing

    It is perhaps possible to fake it.
    1. draw the original texture
    2. draw a grayscale texture with alpha (for making out the things not to change) ontop of it that contains all the details to be changed, allso use glColor4f() to control the color.

Similar Threads

  1. Replies: 3
    Last Post: 06-19-2016, 08:11 AM
  2. Replies: 2
    Last Post: 06-15-2015, 03:26 AM
  3. Multi-Texturing and .... normal texturing?
    By Andy Gilbert in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 04-06-2010, 05:30 PM
  4. Texturing and Texturing (newbie)
    By Sudeepa in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 12-17-2008, 05:47 AM
  5. 32 bit colors with ATI
    By Thomas Krog in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 08-15-2003, 11:12 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