What shader effects do you want?

Share your Construct 2 effect files

Post » Mon Jul 22, 2013 4:51 pm

[QUOTE=DoudouSupreme] [QUOTE=coolernow123] Not sure if this has been said already, but something like this would be nice:
[/QUOTE]

I'd love to have something like this as I currently need it.[/QUOTE]

Another vote for this please!
B
15
S
5
G
2
Posts: 154
Reputation: 3,076

Post » Sat Sep 21, 2013 8:07 pm

I have been using a lot of WebGL shaders for my personal projects.

My requests are mainly hacks to existing effects.

Noise- Have a speed control. I am trying to add noise to a canvas snapshot and I am getting scan-refresh lines. It would be nice to have the noise Stop, or variate the speed.

Emboss - Give a light source direction. Right now it defaults to the light being in the lower right corner of the image. This makes it completely useless for side scrolling games where the light source (eg, the sun) would be coming from above the game board.

Blur- Combine horiz and vert blur into a single block. Make it so it is Horizontal, vertical, or BOTH. Trying to knock the high spots off an emboss is a real pain in the butt when you have to add 2 effect blocks every single time you want to do a "blur-all".

Glow- Combine Horiz and Vert Glow so we add, and adjust BOTH at the same time.

Render Normal map- with complete control over the RGB channels, so you can make Green up for Maya or Blue up for Blender materials. This one needs to be tileable as well.

Render to color pallet- For making everything from CGA to early VGA games with a pallet. User supplies the pallet as a bitmap like NeoTextureEdit.

TIA!

B
28
S
8
G
4
Posts: 767
Reputation: 5,940

Post » Fri Oct 11, 2013 1:14 am

I also would opt for a 2D displacement shader. Would be fantastic to use a second sprite (with nested shaders?) to drive the displacement map for full flexibility.

PS: Copying/Pasting Effects between Objects would be nice too   
B
5
Posts: 12
Reputation: 374

Post » Fri Oct 18, 2013 7:21 pm

[QUOTE=rs3d] PS: Copying/Pasting Effects between Objects would be nice too[/QUOTE]

This.
B
4
Posts: 1
Reputation: 227

Post » Sat Nov 16, 2013 4:55 pm

Right now I could really use a shader that could flip part of the screen. In my specific case, I want to flip the top half of the screen vertically for a 2 player split screen game, so I don't have to configure every behavior differently for each player and flip every single object. Of course there would still be the horizontal flip problem, but it would be a lot easier to deal with.
B
8
S
1
Posts: 53
Reputation: 787

Post » Mon Nov 18, 2013 2:39 am

@Raicuparta I liked this idea and gave it a shot.

1) Create an empty sprite.
2) Scale and position this to the area you want to invert.
3) Make sure it's z-layer is set to the top.
4) Add the InvertSection effect.
5) Bang your head against the desk because something goes terribly wrong when using 'Scale inner'.
Edit: It should work in full screen if you adjust the window size/layout size of your project to match the aspect ratio of the device screen.

FX File:
Code: Select all
// invertsection.fx
precision lowp float;

// User settings:
uniform float vFlip;
uniform float hFlip;

// Texturing:
varying vec2 vTex;
uniform sampler2D samplerBack;
uniform vec2 destStart;
uniform vec2 destEnd;

void main(void)
{
    vec2 tex = vTex;
    if (1.0 == hFlip) tex.s = 1.0 - tex.s;
    if (1.0 == vFlip) tex.t = 1.0 - tex.t;
    gl_FragColor = texture2D(samplerBack, mix(destStart, destEnd, tex));
}


XML File:
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<c2effect>
     <id>invertsection</id>
     <name>Invert Section</name>
     <category>Distortion</category>
     <description>Invert a subsection of the screen about x-axis or y-axis.</description>
     <author>Edwin</author>

     <!-- Settings -->
     <extend-box-horizontal>0</extend-box-horizontal>
     <extend-box-vertical>0</extend-box-vertical>
     <blends-background>true</blends-background>
     <cross-sampling>true</cross-sampling>
     <animated>false</animated>
     
     <!-- Parameters -->
     <parameters>
          <param>
              <name>Vertical Flip</name>
              <description>Set to 1 if you want to flip vertically.</description>
              <type>float</type>
              <initial>0</initial>
              <uniform>vFlip</uniform>
          </param>
          <param>
              <name>Horizontal Flip</name>
              <description>Set to 1 if you want to flip horizontally.</description>
              <type>float</type>
              <initial>0</initial>
              <uniform>hFlip</uniform>
          </param>
     </parameters>
</c2effect>
Edwin2013-11-21 04:02:29
Last edited by Edwin on Sat Jul 26, 2014 2:25 pm, edited 3 times in total.
B
3
Posts: 3
Reputation: 181

Post » Mon Nov 18, 2013 3:50 am

@Edwin There a bug it won't resize inverted section when we use fullscreen.

Anyway, welcome here!Joannesalfa2013-11-18 03:51:06
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,646

Post » Mon Nov 18, 2013 4:31 am

@Joannesalfa Thanks.

Bug appears to be fixed.Edwin2013-11-19 07:53:17
B
3
Posts: 3
Reputation: 181

Post » Tue Dec 03, 2013 4:30 pm

another +1 on coolernow's shadow cast!
B
5
Posts: 2
Reputation: 236

Post » Sun Dec 22, 2013 9:41 pm

A Pixel Scaling Shader would be awesome to apply over 8bit games.

hqnx and xBR look great

The code hqx is already ported to JavaScript here and here

Comparison of different Pixel Scalings

Also, it looks like 2 researchers have come up with a new scaling algorithm called Depixelizing Pixel Art ... Looks awesome, but is not public
Info
Multi Comparison 1
Multi Comparison 2
B
44
S
15
G
6
Posts: 481
Reputation: 6,967

PreviousNext

Return to Effects

Who is online

Users browsing this forum: No registered users and 2 guests