[EFFECT] C-DEX

Completed plugins, behaviors and effects.

Post » Sat May 12, 2012 9:25 pm

In collaboration with oppenheimer (many thanks for the input, ideas and testing) I finally could make something useful out of the original idea of C-DEX.

C-DEX is an effect that allows for gradient mapping. An offset parameter enables palette animation as well, which is the highlight of the effect. It is designed to be as easy to use as possible.


Here is a demo in executable form:


Use it to play around with the parameters and to see what it does. Just click on any of the options in the menu, then use the mouse wheel to change that parameter. In the lower part of the window you will find two buttons allowing you to load your own color palettes/gradients and background images. The latter should be in some power-of-two format (16x256, 32x32, 128x8, etc.) to be able to animate the background. The gradients can be in any format or size, just load any texture you get your hands on. Download link: C-DEX Demo A.rar


Effect Download:
C-DEX.fx


EDIT: And here some explanations for usage. The effect recolors everything underneath the object it is applied to, using the first pixel line of the texture of that object from left to right. "offset" shifts the start value for mapping to the right and is used as a value from 0.0 (=left) to 1.0 (=right). You can enter a value higher than 1.0, it will then calculate the correct position (2.2 = 0.2, 3.0 = 0, 4.7 = 0.7, etc.) If you enter a negative number, then the range of colors to map to is reduced until you reach -1.0, at which point only the leftmost color remains. Could serve for a nice color fade in effect, or something)
If you want to use it as a layer effect, the gradient should be on the top of that layer, and again the full length is sampled. (You could just place the gradient object on that layer, as an example). Everything underneath that layer is then recolored.

Note: Due to the nature of the effect and the limitations of the hlsl-implemetation, rotation of the object is not possible (the colors are still sampled from the first pixel line of the bounding box)tulamide2012-05-12 21:38:07
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Sun May 13, 2012 10:53 am

My construct folder gets bigger and bigger^^
Nice effect for radar like minimaps or for shiny items.
Glowing weapons, or just to get an epileptic shock :P
I like it, thanks.
B
24
S
9
G
2
Posts: 294
Reputation: 3,160

Post » Sun May 13, 2012 2:26 pm

Wow! That's nice!
B
54
S
11
G
4
Posts: 250
Reputation: 5,074

Post » Tue May 15, 2012 5:00 pm

Good! @tulamide, i like your FXs they helps me a lot...
Thanks! you go for my credit list, hehehe...

^_^
B
4
S
1
G
1
Posts: 69
Reputation: 863

Post » Thu May 17, 2012 3:25 am

Thank you all :)

@Yaottabyte: Thank you so much. It's a good feeling, that someone makes good use of the effects :)
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Sat May 19, 2012 9:47 am

great you released it and glad i could help out betatesting ;)
B
59
S
7
G
2
Posts: 93
Reputation: 4,228

Post » Sat Jul 21, 2012 7:02 pm

wonderful!play with colors!
B
14
S
4
G
2
Posts: 91
Reputation: 2,390

Post » Sun Jul 22, 2012 3:59 pm

does it replace the first line with transparency or does the 1px palette instruction line remain?
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Sun Jul 22, 2012 5:19 pm

Wow, amazing. One of the few effects that construct was missing.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Tue Jul 24, 2012 7:53 pm

Thank you

@QuaziGNRLnose
It replaces the palette line, not with transparency but with whatever is to be drawn there. The object works as a palette on input and as a canvas on output.
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Next

Return to Completed addons

Who is online

Users browsing this forum: No registered users and 0 guests