Shifting color hue?

Started by Yellownakji, May 09, 2019, 14:53:45

Previous topic - Next topic

Yellownakji

Hi.

I'm trying to achieve a 'hue shift' pattern.    Not exactly a "setcolor" to a greyscaled image but to shift a colored image's colors.

Anybody have an appropriate method for this technique?

Derron

Realtime or a color algorithm?

In my framework there is the code to convert rgb to hsv or other colors
https://github.com/GWRon/Dig/blob/master/base.util.color.bmx

so you can simply read each color and manipulate the color then to your needs.


Of course this wont work in realtime for bigger pictures.

bye
Ron

Yellownakji

Quote from: Derron on May 09, 2019, 15:13:29
Realtime or a color algorithm?

In my framework there is the code to convert rgb to hsv or other colors
https://github.com/GWRon/Dig/blob/master/base.util.color.bmx

so you can simply read each color and manipulate the color then to your needs.


Of course this wont work in realtime for bigger pictures.

bye
Ron


Real-time.   I would like my logo to utilize a rainbow hue effect, instead of just making every letter change color via setcolor.    I'm trying to get every frame to shift the color by 0.4.

Derron

#3
Use shaders (eg with mojo of mky.mod).

Or trick with some overlay images (tinting the underlaying stuff, mix with another blendmode like Lightblend).


bye
Ron

Henri

Hi,

there is something to this effect in Bmax samples folder: Samples / flameduck / Circlemania.

-Henri
- Got 01100011 problems, but the bit ain't 00000001

Yellownakji

Quote from: Henri on May 09, 2019, 16:50:24
Hi,

there is something to this effect in Bmax samples folder: Samples / flameduck / Circlemania.

-Henri

Not quite what i'm looking for.  It was very messy to compile in NG, as well.

I'm not really going to waste any more time on this effect.   What i have done is written my own replacement for SetColor(), which uses superior HSV instead of RGB.   I'm just done with RGB.