x


HSBColor correction on the camera

Hi there. I'm trying to find out how to add Hue, Saturation and Brightness properties to my main camera. I would like to extend the color correction curves script with this extra functionality but I'm not sure how to achieve that. I would greatly appreciate some guidelines of how to do it. I have some C# and shading experience.

Cheers,

Kamil

more ▼

asked Jun 28 '11 at 04:08 PM

kamil.slawicki gravatar image

kamil.slawicki
36 9 10 14

(comments are locked)
10|3000 characters needed characters left

3 answers: sort voted first

I found this website and ported the shader over to my scene. I'm applying the shader to the camera as one of the post processing FX.

If there are any questions on "how to do it" I'm more than happy to explain it.

more ▼

answered Jun 29 '11 at 01:33 PM

kamil.slawicki gravatar image

kamil.slawicki
36 9 10 14

aye, first convert your "answers" to comments guys, don't want this thread to get too messy, now, I did it ages ago and I can't find the shader I used for it before. Anyway I don't know how much shader knowledge you have, but if you can look at built in GrayscaleEffect script and shader and you know how they both work you will be ok. So basicly you need to copy most of the code from the link provided, you will need a function Hue_2_RGB and instead of main you will have to write a fragment program that will do just the same, the corresponding c# script will pass the HSL vals into the shader. It's really straight forward. If you run into and more problems just add a comment explaining where you got stuck and I will try to help.

May 28 '12 at 11:26 AM kamil.slawicki
(comments are locked)
10|3000 characters needed characters left

how to do it ?

more ▼

answered May 28 '12 at 09:52 AM

liszto gravatar image

liszto
1.7k 15 24 37

(comments are locked)
10|3000 characters needed characters left

how to do it

more ▼

answered May 27 '12 at 05:00 AM

JUSPER gravatar image

JUSPER
0

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2981
x21
x6
x5
x3

asked: Jun 28 '11 at 04:08 PM

Seen: 931 times

Last Updated: May 28 '12 at 11:26 AM