Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

wamingo

hue, saturation, luminescence and a texture

This topic is 5657 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I got a font that I coloured bright-green with my paintprogram sliding the hue/saturation/luminance but then arrises a problem in opengl I can''t seem to get my head over... I want to make it brighter! in the program that is... Of course I could use a second font for a second brigther type, no prob, but if I wanted more, it might get a little silly... Now with a say glColor4f(1,1,1,1) the thing would be as lit as it was coloured in the paintprogram right? but how to make it even brigther? I could use a completely white font and then colour it green in opengl but I don''t seem to be able to hit the right colour (yeah I''m picky) like in my paint program. Which then leads me to the real question... can you control hue/saturation/luminance (HSL) (or something else) in opengl?

Share this post


Link to post
Share on other sites
Advertisement
You can''t control HSV in OpenGL. But you can write a function to convert HSV to RGB. The best approash for what you are trying to do is to create a pure white texture. then write down what HVS you selected for green and bright-green in paint program. Then in your program just convert HVS to RGB and use that color.

You should never let your fears become the boundaries of your dreams.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!