[EFFECT]NoisePlus (updated22/09/15)

Share your Construct 2 effect files

Post » Sun Aug 30, 2015 11:50 pm

Noise shader (perlin,fractal,nested,moving,stepped etc)

Parameters-
NoiseType
noiseLevel
animSpeed

Image

Download rar- original
https://dl.dropboxusercontent.com/u/22173473/NoisePlus.rar

Includes Fx files and demo capx.
---------------------------------------------------------------

Updated version- 29/09/15 cleaned up and faster..plus extra params-

ColorMix - Red, Green, Blue.

Image

https://dl.dropboxusercontent.com/u/22173473/noisePlus2.rar

(based on work/tutorials at Pixel Shaders by Toby Schachman.)

chrisbrobs
Last edited by chrisbrobs on Tue Sep 22, 2015 6:20 pm, edited 2 times in total.
B
21
S
6
G
8
Posts: 1,215
Reputation: 7,881

Post » Mon Aug 31, 2015 2:43 pm

**I have added the corrected file to the original download**

Whoops, I've just spotted the following-

The following line should be added to the bottom of the .fx file to make it work correctly-
gl_FragColor.a = front.a;

So the bottom line's should look like this-

else

gl_FragColor.rgb = vec3(noise(p));
gl_FragColor.a = front.a;
}


resulting in -

Image

Cheers.
B
21
S
6
G
8
Posts: 1,215
Reputation: 7,881

Post » Mon Aug 31, 2015 3:01 pm

Appreciated, @chrisbrobs.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,414
Reputation: 59,514

Post » Mon Aug 31, 2015 4:07 pm

Maybe I'll give this a shot tonight. It looks quite promising. Thanks @chrisbrobs!
Be sure to check out my Metroidvania game, A Hole in the Earth
B
59
S
24
G
3
Posts: 359
Reputation: 5,683

Post » Wed Sep 02, 2015 2:41 pm

Nice, thank you.

Would be nice if Static and Blocky could be animated as well, but regardless good job.
ImageImageImageImage
B
157
S
66
G
42
Posts: 2,603
Reputation: 35,343

Post » Wed Sep 02, 2015 3:08 pm

@shinkan

'Would be nice if Static and Blocky could be animated as well'

To add movement you just need to change line 98 and line 102 to match what you can see below-

98 gl_FragColor.rgb = vec3(stepNoise(p-(time/animSpeed)));
99
100 else
101
102 gl_FragColor.rgb = vec3(noise(p-(time/animSpeed)));
103 gl_FragColor.a = front.a;
104 }

(obviously omit the numbers !)
Cheers.
B
21
S
6
G
8
Posts: 1,215
Reputation: 7,881

Post » Wed Sep 02, 2015 3:56 pm

Great! Thank's for the tip.
ImageImageImageImage
B
157
S
66
G
42
Posts: 2,603
Reputation: 35,343

Post » Tue Sep 22, 2015 6:19 pm

Updated better version with extra params..see top post.
B
21
S
6
G
8
Posts: 1,215
Reputation: 7,881

Post » Tue Sep 22, 2015 7:43 pm

Cool.
Cheers, chrisbrobs.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,414
Reputation: 59,514

Post » Tue Oct 20, 2015 6:47 pm

Thanks @chrisbrobs!

Made some neat ocean effects with it!
http://voxi3d.comule.com/simlexgenerate/
B
29
S
8
G
4
Posts: 767
Reputation: 5,985

Next

Return to Effects

Who is online

Users browsing this forum: No registered users and 0 guests