Nearly daily [EFFECTS] by Somebody - neat things + big GIFs

Share your Construct 2 effect files

Post » Wed Jan 28, 2015 8:35 pm

frcol wrote:Dissolve and frozen worked perfect now! :)

The problems with Construct´s Effects must be the same of yours.


Awesome! The problem was actually with the random number system used by the default effects, which I also used thinking it is the best way. But it's not - first of all there's the problem we see of it not working on certain mobile GPUs, but also the results it produces aren't as random as could be.

So I started doing research and found this awesome blog post from a fine gentleman by the name of ajgryc: http://byteblacksmith.com/improvements- ... gl-es-2-0/ - where he nicely explains why the "standard" random system is bad and also provides a better one. One that I now use in all the shaders that have random bits.

I'll also ping @Ashley here just in case he'd like to fix the default shaders, but he'll probably ask for the proper bug report which cannot be provided as it's device specific and so it'll probably fade away as usual. But just in case the reason and solution are right in the link above. If he'd like to help out those working for mobile it's as easy as implementing that code.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Wed Jan 28, 2015 8:53 pm

Awesome!
Good job.
B
18
S
4
G
1
Posts: 143
Reputation: 1,868

Post » Wed Jan 28, 2015 9:13 pm

So, @"Allen T" was looking for a way to make a flat spinning disc and I though - well, just use a built-in scale shader on a layer and... wait, there is no built-in scale shader? Say hello to "Scale":
Image

Just scales the contents of a sprite/layer by the given percentage. Bad things will happen if something is over the edge (or maybe you want that sort of an effect actually).

Add to the top post and repo.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Thu Jan 29, 2015 12:30 am

infinite looping of your gifs rocks! which tools do you use for converting thease gifs?
the central distro place is very useful against this massive flood of awesome plugins.
B
79
S
28
G
108
Posts: 194
Reputation: 59,906

Post » Thu Jan 29, 2015 1:14 am

All I gotta say is "wow." Nice work on all of these! I especially like the show every x y pixel. : D
ImageImageImageImage
B
62
S
19
G
51
Posts: 633
Reputation: 30,826

Post » Thu Jan 29, 2015 7:15 am

totoe wrote:infinite looping of your gifs rocks! which tools do you use for converting these gifs?

Well, most of the magic happens because of the sine setting the values or just preparing them in such a way that they repat at a predictable regular intervals, be it 1,2 or 4 seconds.

A crowd favorite (and I believe one of the first apps of this type (just click and go) is gifcam: http://blog.bahraniapps.com/gifcam/

But gifcam doesn't let you set capture frame size with numbers and doesn't let you set precise length, so I ended up with the awesome LICEcap: http://www.cockos.com/licecap/

You can set the size, set a framerate, and when you hit record you get to set extra options, like time, show mouse clicks, etc. It doesn't have built in pixel-precise positioning, but that is easy to overcome using Windows tools - Alt+Space for a menu, press m for "move" then use cursor keys for big jumps or ctrl+cursor keys for 1 pixel jumps and hit Enter to confirm.

Since my machine is a little old (coming up on 6 years and it's a laptop) some of these suffer a little from choppiness, but at least LICEcap intelligently changes the framerate to compensate so the overall movement is preserved - which also helps with that seamless looping.

totoe wrote:the central distro place is very useful against this massive flood of awesome plugins.

Massive flood, heh, heh... But yeah, I got ideas for more.

DatapawWolf wrote:All I gotta say is "wow." Nice work on all of these! I especially like the show every x y pixel. : D

Thanks, "wow" I like :)

If anyone comes up with creative uses of these do share them - we can all benefit. Or, if you feel like "Well, these dots are cool, but how about having an actual grid instead of dots?" - let me know, Somebody might do something about it :)
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Thu Jan 29, 2015 11:41 am

@Somebody

Thanks for these they are great :) . I know someone mentioned Skew.. that would be great to see :)
B
47
S
16
G
9
Posts: 1,097
Reputation: 11,180

Post » Thu Jan 29, 2015 11:51 am

@spongehammer - it's on the list... I'm still learning, but skew per se should be easy enough. The trouble is most of the documentation for this stuff seems to be basically the sort of thing that goes "Pfwah, who doesn't know how to vec4 the rgb element with the a value of the background sampler and then mix that via a texture2D command with the separate tex parts, just don't forget that everything here is premultiplied". And I'm like... :shock: ...what?

So I have figured out simple things, like moving some pixels around and working with separate things, like color OR alpha. The moment we get to mixing different things I'm at a loss. So for now it's simple little things while trying to keep them as lean as possible.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Thu Jan 29, 2015 12:13 pm

Hehe thats fine by me :) thanks anyway.
B
47
S
16
G
9
Posts: 1,097
Reputation: 11,180

Post » Thu Jan 29, 2015 3:57 pm

spongehammer wrote:I know someone mentioned Skew.. that would be great to see :)

newt wrote:If you're looking for other shaders to try, how about skew?


Did Somebody say "skew"? Somebody did!
Image

For when that texture just cannot stand straight. As with Flag I base the "logic" of the shader around C2's approach to angles and object bases - so if our base is left-center and then we rotate an item upwards so it stands "upright" the skew happens on the vertical axis while it is "sideways". Just check the .capx, it's simple, really.

That little jitter is my attempt at "realism" in grass. There's also another version coming with a slightly different behaviour.

Added to the distro.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

PreviousNext

Return to Effects

Who is online

Users browsing this forum: No registered users and 0 guests