Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Modifying Hue value with GLSL

  1. #11
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,109
    Forgetting about shaders - can you explain how you intend to change the colour. The sample you have show has a while range of colours in it.

  2. #12
    Junior Member Newbie
    Join Date
    Jan 2013
    Posts
    8
    What I want is quite straight forward, basically if I put it in Photoshop, I just need to adjust the HUE value in order to get different colors.

    So now in codes, I wish to convert my image to HSV so that I can adjust the HUE value to change color.

  3. #13
    Senior Member OpenGL Pro
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    1,099
    Well, if you need HSV you cannot avoid conversion . OpenGL doesn't do HSV natively.

  4. #14
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,109
    basically if I put it in Photoshop, I just need to adjust the HUE value
    I assume you are using a hue/saturation/lightness layers to do this. That is a different technique to just modifying a colour in a texture. Think about how you will modify the colour if you don't use layers.

  5. #15
    Junior Member Newbie
    Join Date
    Jan 2013
    Posts
    8
    Hmm, alright, I'll figure it out.
    Thanks.

  6. #16
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,109
    It is a bit more costly but you could do a hue layer type modify to the texutre, then render all the characters with this texture, modfiy the texture again and render the next set of characters.

Posting Permissions

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