Jump to content
  • Advertisement
Sign in to follow this  
interdpth

Apply HSL to a current scene

This topic is 3174 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

Hi, I need to know how to apply HSL to a current scene, I have my values, but no clue how to apply them, nor can I find example code that doesn't use those shaders, which I have no clue about how to use, so can I get some help?

Share this post


Link to post
Share on other sites
Advertisement
Uhm ?

I assume with HSL you mean the colourspace. What do you want to do with that colourspace ? What do you mean by "apply" ? Do you want to apply a colour space conversion to a render target ?

Share this post


Link to post
Share on other sites
I'm afraid you have to be a little more precise about what you want to do in order for anyone to be able to help you. We can't read your mind, you know.

OK, I'll take a stab into the dark. I assume you want to apply some kind of HSL transform to some kind of render target. You render a full screen quad over the screen, with your original image bound as texture, and some empty target to receive the result. You render this quad with a shader that will transform the source pixel to HSL, apply the transform you want, and convert it back to RGB.

That's about as precise one can get without you giving us much more info.

Share this post


Link to post
Share on other sites
Alright, alright

I have http://i83.photobucket.com/albums/j318/interdpth/NEEDSMATERIALS.png that picture.

I have all the values needed to turn those into http://i83.photobucket.com/albums/j318/interdpth/test.png

But I don't know how to code it.


Share this post


Link to post
Share on other sites
Ok, sorry, I have absolutely no idea what you want. Maybe someone else (with telepathic abilities ;) can guess.

The first image is a 3D model without any lighting or effects. The second one is the model rendered with lighting, a reflection envmap, fog and some other postprocessing effects like bloom. All this has nothing to do with HSL conversion or any "values".

Edit: are you asking how to get the render quality of the second image with just your first model as start ? How much experience do you have with graphics programming ? Do you know what all the effects I mentioned above are ? Do you know what shaders are ?

Share this post


Link to post
Share on other sites
Quote:
Original post by Yann L
Ok, sorry, I have absolutely no idea what you want. Maybe someone else (with telepathic abilities ;) can guess.

The first image is a 3D model without any lighting or effects. The second one is the model rendered with lighting, a reflection envmap, fog and some other postprocessing effects like bloom. All this has nothing to do with HSL conversion or any "values".

Edit: are you asking how to get the render quality of the second image with just your first model as start ? How much experience do you have with graphics programming ? Do you know what all the effects I mentioned above are ? Do you know what shaders are ?


lol agreed, I thought maybe he means HLSL? insert HLSL code to turn image 1 into image 2 by some magic code?

Share this post


Link to post
Share on other sites
Quote:
Original post by BlackSeeds
lol agreed, I thought maybe he means HLSL?

In the OpenGL forum ?

Even if the OP means HLSL, it takes a little more than a magic (read: copy'n'pasted) shader to turn pic1 into pic2 :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!