[EFFECT] Apply Below

Completed plugins, behaviors and effects.

Post » Mon Jul 04, 2011 5:08 pm

[QUOTE=Davioware] Interesting, I had once made this same effect, but then questioned its efficiency vs. a canvas with grab layout. I settled on the Canvas. Have you tested it vs a canvas for full-screen post processing effects?

And The_Funny_Guy, don't use a .fx to make something simple like screen shake, even if "it's easier". It's a massive waste of gpu time. Do it with events, it's not hard. I believe the effect already exists anyways, it's called offset, if I recall.[/QUOTE]
Davioware, i agree its a huge waste of PC resources. But for how long the "shake" effect would last? 1-2 seconds. think of it. math is dead without common sense.
Offset cannot be used from obvious reason. You want the screen to shake - not emerge from another side
B
16
S
5
G
4
Posts: 211
Reputation: 3,767

Post » Mon Jul 04, 2011 6:24 pm

[QUOTE=Davioware] Interesting, I had once made this same effect, but then questioned its efficiency vs. a canvas with grab layout. I settled on the Canvas. Have you tested it vs a canvas for full-screen post processing effects?[/QUOTE]
Nice question. I just made a quick test with a 1024x768 window and got almost the same results with canvas and Apply Below. Actually the effect gives me 1 or 2 more fps, but this is negligible. The canvas also adds a little more vram, probably because it has to store its original texture. So technically, even if you stretch a 1x1 canvas in the entire layout it still will use a tiny bit more vram. Nothing to worry about.

Based on this: just use the one you prefer most. I personally think the effect is simpler to use though.

Anyway, I suggest people to make more tests, probably there's cases where this could not be true.


@The_Funny_Guy: I advise you to make it through events or a plugin. An effect would give lot slower results an unnecessarily narrow your possible audience to people with good graphics cards. It's so easy to implement this through events that doesn't worth it. It also would get pretty ugly near the window borders with intense shakes.
Scirra Employee
B
129
S
45
G
15
Posts: 705
Reputation: 15,413

Previous

Return to Completed addons

Who is online

Users browsing this forum: No registered users and 0 guests