Hue Shader

Forum for plugin, effect and behavior programmers. Please use the Help & Support forum for help using Construct.

Post » Mon Mar 09, 2009 4:26 pm

[quote="Mipey":aqjaslp4]Okay, so I put the Hue Tint.fx into Effects folder, run the .cap - the sprite colors aren't changing at all. Must be my PC or something, I don't know :s[/quote:aqjaslp4]

Hmm... I'd suggest checking the events in the CAP file. If there's nothing setting the hue, that's probably the problem.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Mon Mar 09, 2009 4:35 pm

The event is there; unless your example .cap is corrupted. :P But since it seems to work for everyone else, I have no clue what is wrong on my side.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Mon Mar 09, 2009 4:45 pm

Must be a shader thing, doesn't work in mine either (Radeon 9600xt)
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Mon Mar 09, 2009 5:18 pm

It looks like neither of you two's video cards support PS 2.0a. I couldn't use regular 2.0 because it didn't support enough math operations to do the RGB-HSL-RGB conversions. Sorry. :( You would need a GeForce FX or higher graphics card. If I can find a simpler way to do the conversions, I'll update the shader.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Mon Mar 09, 2009 10:00 pm

I managed to make a work around for those with cards that only support regular PS 2.0, but it uses two shaders instead of one. The first one, "TPHUE Convert" converts the RGB values of an image into HSL, then the second one, "TPHUE Change Hue" changes the hue and converts the values back to RGB. They HAVE to be in the order specified, otherwise you'll get some funky results. :P

Two Part Hue Shader

NOTE: Only use this shader if you're card doesn't support PS 2.0a. If it does, use the already linked to shader.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Wed Mar 11, 2009 4:01 am

:O trippy! and VERY old-school

Gonna make me some loading screens
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Sun Mar 15, 2009 3:11 pm

link is dead
B
2
S
2
G
5
Posts: 512
Reputation: 2,674

Post » Sun Mar 15, 2009 6:29 pm

Blasted WHFF... anyways, here are new links for both the single shader and double shader version:

Single Shader Hue Tint

Double Shader Hue Tint
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Fri Apr 03, 2009 9:54 pm

If you go too far one way or the other it switches to affecting brightness and contrast. Which is interesting.
B
4
G
6
Posts: 32
Reputation: 1,514

Post » Sun Jul 19, 2009 3:52 am

I need this.

We should have a hue / saturation shader by default in Construct. That shit's just sooo useful.
B
6
S
2
G
3
Posts: 520
Reputation: 2,690

PreviousNext

Return to Construct engineering

Who is online

Users browsing this forum: No registered users and 0 guests