Joannesalfa's Recent Forum Activity

  • I found

    gist.github.com/gre/2950478

    It's called perturbation.frag

    I'm contacting him via Twitter

  • oppenheimer I wanted to contact the creator of this script, my friend showed me a script, actually he doesn't remember who was, so we are trying to find this source.

  • Joannesalfa

    > a polygon (pron.: /'p?l?g?n/) is a flat shape consisting of straight lines that are joined to form a closed chain or circuit

    I know what means polygon, sorry my mistake for saying "Path" which doesn't make sense.

    However, it would have more than 50 vertex to create a complex shape.

    Take a look:

    http://www.w3schools.com/svg/svg_polygon.asp

    <svg xmlns="http://www.w3.org/2000/svg" version="1.1">

    <polygon points="100,10 40,180 190,60 10,60 160,180"

    style="fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;" />

    </svg>

    Isn't possible to recreate this shape according to this code via JSON or something with your Polygon plugin?

  • Hi pals, i'm releasing a new effect would simulate damaged VHS on TV.

    Thanks to oppenheimer by fix!

    Description

    A VHS or TV like distortion.

    <img src="http://i.imgur.com/CIEA2XI.jpg" border="0">

    <img src="http://i.imgur.com/ohrfiLQ.jpg" border="0">

    Parameters:

    Power: Frequency of VHS effect (eg. 0.2 is weaker, 0.7 is strong).

    Amount: Amount of wave distorsion.

    Seed: Randomize effect to applied parameters.

    Lines: Quanity of lines sync. (eg. 2 is split screen).

    Intensity: Intensity of alpha/color effect applied to the original. (eg. 25 is ghost effect, 200 is high exposure of the image).

    This effect doesn't offer animation when you apply some parameters, there a .capx it explains you how to animate effect:

    Download ZIP including a .capx:

    http://dl.dropbox.com/u/76227787/VHSdamage.zip

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • labithiotis Good one! im not looking a workaround to support bitmap fonts in CocoonJS :D

  • oppenheimer

    Nice! Thanks, i didn't know it should have vTex. I edited XML for precise example.

    I'm going to release this effect to public, i hope you don't mind.

  • Joannesalfa

    Not without some effort on your side (:

    If you're interested the JSON format of the polygon plugin is:

    {
        'c2polygon':true,
        'vertexCount' : numberOfVertex,
        'vertices': [
    >                     [x0,y0],
                        [x1,y1],
                        [x2,y2],
                        ...
                    ]
    }

    As long as you can create a JSON in such format, the plugin will gladly accept it and you'll be able to draw any polygon.

    I'm trying to recreate this with Polygon plugin

    http://openclipart.org/people/zeimusu/zeimusu_Swash_ornament.svg

    I doubt if is required to work with JSON or standard SVG path. Would you explain how do it or provide an example? If you can when you get change.

    Thanks!

  • https://chromiumcodereview.appspot.com/12260011

    It seems it will work with DirectInput Gamepads, it may work with Generic Gamepads, not only Xbox 360 gamepad.

  • oppenheimer I'm sorry, i have no experience but it gave me error because it cannot convert float at line 0:13

    #ifdef GL_ES

    precision highp float;

    #endif

    uniform float p;

    uniform float amount;

    uniform float seed;

    uniform float lines;

    uniform lowp sampler2D sampleFront;

    float rand(vec2 co){

        return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);

    }

    void main( void ) {

    vec2 myPos = position;

    float y = floor(lines*myPos.y)/lines;

    float disf = 0.01*(cos(myPos.y*130.0+p*10.0)+sin(myPos.y*183.0+p*80.0));

    float parity = 0.0; if(mod(y*lines, 2.)>0.5) parity=1.; else parity=-1.;

    float a = smoothstep(0.0, 1.0, p);

    myPos.x = amount*a*(y*0.3+disf)+myPos.x+

            amount*0.5*parity*smoothstep(0.6, 0.65, p)*(sin(myPos.y*(12.0+40.0*seed))+smoothstep(0.64, 0.65, p));

    vec4 colorInput = texture2D( sampleFront, myPos );

    gl_FragColor = colorInput;

    }

  • We should insist to Ashley to add a special plugin to access Node-webkit API, we really need it.

    There are some threads are complaining to Node-webkit exporter won't work some functions than webkit browser offers

  • Hey Yann

    Is possible to convert from SVG lines to JSON and recreate the lines?

Joannesalfa's avatar

Joannesalfa

Member since 8 May, 2011

Twitter
Joannesalfa has 3 followers

Trophy Case

  • 13-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • x2
    Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

19/44
How to earn trophies