chrisbrobs's Recent Forum Activity

  • 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.

  • untune

    I had a look at your 'FilmGrain_v1.1' file...way too complicated for my brain.

    The best I can come up with is this basic noise/image mix effect-

    I will play around with the sums to see if i can improve it.

    Its a start?.

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

    P.S

    ' I don't have a lot of time at the moment and life is getting to me'

    Its only a shader

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 2 color gradient shader.

    parameters-

    direction 0 = horizontal

    direction 1 = vertical

    direction 2 = diagonal

    direction 3 = halfdiagonal (better for sky gradients)

    color1R = top color red amount

    color1G = top color green amount

    color1B = top color blue amount

    color2R = bottom color red amount

    color2G = bottom color green amount

    color2B = bottom color blue amount

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

    Includes fx. files and SkyGradient example capx

  • **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 -

    Cheers.

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

    Parameters-

    NoiseType

    noiseLevel

    animSpeed

    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.

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

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

    chrisbrobs

  • bladedpenguin

    "This does everything I need, but I think it would be good if I could reverse it somehow, so the faded part shows up at the bottom."

    Use the following to reverse it-

    /////////////////////////////////////////////////////////

    // Opacity Gradient effect

    varying mediump vec2 vTex;

    uniform lowp sampler2D samplerFront;

    //uniform lowp float pixelWidth; not needed //

    //uniform lowp float pixelHeight; not needed //

    uniform lowp float opacityx;

    uniform lowp float heightx;

    uniform lowp float opacityy;

    uniform lowp float heighty;

    void main(void)

    {

    lowp vec4 front = texture2D(samplerFront, vTex);

    mediump float ay = (1.-vTex.y) *((1. - opacityy) / heighty) + opacityy;

    mediump float ax = vTex.x*((1. - opacityx) / heightx) + opacityx;

    gl_FragColor = front*min(ax*ay,1.0);

    }

    ------------------------------

    This bit ... (1.-vTex.y).... Flips it.

  • flyovergames@

    Great Plugin, keep up the good work.

    (I'm halfway through my latest game using this !)

  • I would copy the events to a text editor,and post them here...somebody will give you a solution straight away.

  • skyhunter93

    No.. It's 3 years old !

    To make the 'shaking sprite' effect, you simply copy the first frame of the animation to the frame 2

    and slightly move the 'origin' position on the 2nd frame.

    Run the animation on a suitable fast speed and it appears to shake.

  • Thanks for this...great work.

  • chrisbrobs

  • Fawk

    Check on 'C2 forums / Completed creations for C2 Capx example.

    chrisbrobs.

chrisbrobs's avatar

chrisbrobs

Member since 10 Aug, 2010

Twitter
chrisbrobs has 1 followers

Trophy Case

  • 14-Year Club
  • Email Verified

Progress

15/44
How to earn trophies