GithubHelp home page GithubHelp logo

gl-transitions / gl-transitions Goto Github PK

View Code? Open in Web Editor NEW
1.8K 21.0 281.0 619 KB

The open collection of GL Transitions

Home Page: https://gl-transitions.com/

GLSL 99.28% Shell 0.72%
glsl transition transitions webgl

gl-transitions's Introduction


Each commit that gets to gl-transitions/gl-transitions's master automatically generate a new npm minor release.

npm version Build Status


GL Transition Specification v1

NB. This is a technical documentation, for more informal information, please see https://gl-transitions.com/ homepage.

This document specifies GL Transition Specification v1, 1 as in gl-transitions @ 1 (consistently to the NPM package major). For any breaking changes in this specification, semver will be respected and the major will get bumped.

What is a transition?

A Transition is an animation that smoothly animates the intermediary steps between 2 textures: from and to. The step is specified by a progress value that moves from 0.0 to 1.0.

important feature to respect: When progress is 0.0, exclusively the from texture must be rendered. When progress is 1.0, exclusively the to texture must be rendered.

GL Transition

// transition of a simple fade.
vec4 transition (vec2 uv) {
  return mix(
    getFromColor(uv),
    getToColor(uv),
    progress
  );
}

A GL Transition is a GLSL code that implements a transition function which takes a vec2 uv pixel position and returns a vec4 color. This color represents the mix of the from to the to textures based on the variation of a contextual progress value from 0.0 to 1.0.

Contextual variables

  • progress (float): a value that moves from 0.0 to 1.0 during the transition.
  • ratio (float): the ratio of the viewport. It equals width / height. (width and height are not exposed because you don't need them. A transition code should be scalable to any size. ratio can still be used to preserve some shape ratio, e.g. you want to draw squares)

Contextual functions

  • vec4 getFromColor(vec2 uv): lookup the "from" texture at a given uv coordinate.
  • vec4 getToColor(vec2 uv): lookup the "to" texture at a given uv coordinate.

don't directly use texture2D to get a texture pixel out of from and to textures. Instead, use getFromColor(vec2) and getToColor(vec2). That way, the "implementer" can properly implement ratio preserving support as well as chosing a different color for the "out of bound" case.

Transition parameters

Transition parameters are parameters than the final user can set to tweak the transition. They are constant over a full run of a transition (no parameter changes when progress moves from 0.0 to 1.0).

any constant you define in your transitions are potential parameters to expose.

When you define a transition parameter, you must also define a default value that will get set in case the final user didn't provided it. It's unfortunately not possible to initialize a uniform in GLSL 120 (WebGL 1) but we support commented code // = value

Examples:

uniform float foo; // = 42.0
uniform vec2 foo; // = vec2(42.0, 42.0)

The following variants are also supported:

uniform float foo/* = 42.0 */;
uniform vec2 foo /*= vec2(42.0, 42.0)*/, bar /* = vec2(1.) */;
uniform vec2 foo, bar; // = vec2(1.0, 2.0); // both at the same time ! (needs a ';' if you have this second //, like usual glsl code)

gl-transitions

TBD this is not finished to be written. just keeping these notes around...

  • If we have duplicated transitions or one transition is more generic than another one, we don't necessary drop the less generic one: it might be more performant and might fit for some users. We also want to keep backward compat'. if we still want to drop it, what we will do is to deprecate it and drop it at the next major bump.

gl-transitions's People

Contributors

0gust1 avatar adrian-purser avatar andrewchan2022 avatar artrointel avatar bnlcas avatar caffeinewriter avatar flexi23 avatar fskuteken avatar gre avatar gunrot avatar haiyoucuv avatar jacereda avatar jnelson180 avatar kmojek avatar mandubian avatar martyniukigor avatar mattdesl avatar mrmcsoftware avatar mrspeaker avatar ngoxuanhuy avatar nicolajkn avatar nwoeanhinnogaehr avatar peterekepeter avatar pschroen avatar rich-harris avatar thibka avatar tianshuo avatar utopiah avatar zeh avatar zhangbenber avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gl-transitions's Issues

mattdesl's transition

Hi @mattdesl, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

paniq's transition

Hi @paniq, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

peterekepeter's transition

Hi @peterekepeter, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

bobylito's transition

Hi @bobylito, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

things to change for next bump (v1)

  • I was not careful enough in the current implementation and varying vec2 uv; should be renamed so it's not exposed to the transition. It should not impact existing transition unless it uses uv outside of the transition(uv) function.. A mistake was to name it like the transition parameter, which today you can't access it from outside transition() function (from another function), need to add a assert in the transformer.
  • forbid any variables scope that starts with _ just to reserve that for potential private variables/functions for the wrapping code

pthrasher's transition

Hi @pthrasher, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

adrian-purser 's transition

Hi @adrian-purser, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

Flexi23's transition

Hi @Flexi23, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

Repository Abandoned?

Tried to have one example working with React but seems to be impossible with the current documentation.

PawelPlociennik's transition

Hi @pawelplociennik, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

corporateshark's transitions

Hi @corporateshark, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past these transitions:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

pthrasher's transition

Hi @pthrasher, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

Reverse of cube?

Hello,

I don't know if this thread (I'm completely new to programming and Github) is still used.

Is there a possibility that the cube transition can be reversed?
Like it moves the opposite way?

Greetings,

Salty

mikolalysenko's transition

Hi @mikolalysenko, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

zeh's transitions

Hi @zeh, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past these transitions:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

natewave's transition

Hi @natewave, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

how to express constraint on parameters?

just defining default parameter values is limited in some aspects.

Firstly, it makes it hard to constraint the values: (which includes validating them)

  • in bunch of parameters, we would like to express the "min" and "max" bound. because usually a transition goes crazy if out of expected bound. (like it's no longer valid in the fact it no longer render the images from and to respectively on 0.0 and 1.0 bounds.)
  • in some cases, we have more implicit constraints for instance in colorphase.glsl we want to express that fromStep < toStep.

Secondly, and more wider, it makes it hard to implement a proper UI:

  • what input to use? at least, if we have a min/max being defined, we can choose a proper stepping based on that, we can also chose int vs float based on the type. However, it's not so easy to infer what component it should be. A range, a input type=number, something else?
  • one example is the vec2 and the vec4. Usually we use vec2 for position and vec4 for colors, but it would be better if it was clearly defined. Especially for vec2, it's very not clear if it's a position OR a vector. Identifying different usecases and providing them with the shader would allow to have a decent UI (like imagine we could have a "position picker" vs a "vector" – well, a vector still needs to have an origin, we can use the center for now,.. but this can be extended)
  • in example colorphase.glsl, one interesting UI for this is to have one range slider per component ( like to define the from and to steps: screen shot 2017-05-27 at 14 17 33 ) – which sounds very tricky to express. even tho, the fact one variable is <–constrained with the other makes it "solvable".

So yeah, tricky topics but this is worth thoughts to make better UIs that can be automatically inferred and offers to final users a way to customize a transition nicely.

One important aspect to me is that that way we describe the constraints & the "categories" of parameters should be independent from the actual implementation.
It's also unclear where this should live... I wish it would be part of the shader as continuation to that // = 1.0 format but this might be a bit too verbose. another way is to make a foo.json next to foo.glsl but this makes it no longer one file to commit and cannot be unified with the shader source...


So basically i'm looking for a concise/extensible/generic descriptive format that can express constraints between numeric variables (on numbers/vectors/..). Does that even exists for some libs?

Add some b&w images to demo ?

Some transitions could look very cool (or different) with B&W or vector-like images (maybe I'm sick to see this bird, this road and this field... ^^)

(again, thanks for your project, it's very fun and pedagogic )

P-Seebauer's transition

Hi @P-Seebauer, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

Simpler uniform initialisation syntax

Hi,

Nice project. Would you consider a PR changing the shaders and the docs so that only the first variant of the uniform values initialisation is supported?

I want to use these from desktop OpenGL but I don't want to complicate the parsing more than needed.

nwoeanhinnogaehr's transitions

Hi @nwoeanhinnogaehr, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past these transitions:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

iOS usage

Is there any way to use these transitions in iOS (swift)

interop with glslify paradigm?

check if it's possible to use a transition from https://github.com/stackgl/glslify out of the box and what would be the fix for it?

I feel the fact we use uniforms is a dead end to this. I don't think we should move parameters in function param because it's not meant to be changed over time. they really are uniforms.

MemoryStomp's transition

Hi @MemoryStomp, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

transitionify glsl-blend

It would be awesome to see the blending modes from https://github.com/jamieowen/glsl-blend turned into realtime transitions.

glsl-blend features blending modes similar to what Adobe helpd push to the 2D Canvas drawing APIs in CanvasRenderingContext2D.globalCompositeOperation and CSS's background-blend-mode.

Blend modes might need to be adjusted to be able to transition between images (e.g. opacity change towards the start/end and have mid point with the strongest blending effect).

working html example

Hi, can a simple index.html example be made to show how this can be used for a web page please? Maybe a jsfiddle or codepen? I and I'm sure others (starting out with shaders) would love to know how this can be made into an image slideshow, for example. Looking through the code of the examples, it doesn't seem accessible.

Thanks for this wonderful resource. I can't wait to start using it :)

benraziel's transitions

Hi @benraziel, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past these transitions:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

0gust1's transition

Hi @0gust1, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

rakeshcjadav's transition

Hi @rakeshcjadav, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

mrspeaker's transition

Hi @mrspeaker, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

rectalogic's transitions

Hi @rectalogic, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past these transitions:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

mandubian's transitions

Hi @mandubian, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past these transitions:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

JustKirillS's transition

Hi @JustKirillS, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

numb3r23's transitions

Hi @numb3r23, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past these transitions:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

AnastasiaDunbar's transition

Hi @AnastasiaDunbar, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

tschundler's transition

Hi @tschundler, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

fkuteken's transition

Hi @fkuteken, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

dycm8009's transition

Hi @dycm8009, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

ffmpeg-concat using gl-transitions

Hey @gre!

I just published another module + CLI tool which uses gl-transitions, ffmpeg-concat.

Concats a list of videos together using ffmpeg with sexy OpenGL transitions.

This module is meant to be a bit more robust and easier to use than the lower-level ffmpeg-gl-transition, as it doesn't require you to compile a custom version of ffmpeg.

Let me know if you have any thoughts -- thanks!

Xaychru's transitions

Hi @Xaychru, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past these transitions:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

Preview of a transition as a gif

Hello,

I would like to thank you for your awesome work. I would like to use some of the transitions in my website, but I didn't find any way to represent a transition as a gif for example, so the user could see a preview of it, how the transition looks like.

P.S: Previews, like the ones shown in the repository here.

Thank you!

TimDonselaar's transition

Hi @TimDonselaar, how are you?

A few years ago, I was running GLSL.io but recently shut it down to focus on various OSS libraries, now I'm back on this GL Transition concept πŸ™‚ I am rebooting GL Transitions.

Next week, I'll release this webapp: https://gl-transitions.netlify.com/ that is a fresh reboot of the previous transitions.glsl.io .

As you were the creator of some transitions, I wanted to ping you once before going full public πŸ˜…

You have created in the past this transition:

Would you mind porting them in? You basically need to paste them into https://gl-transitions.netlify.com/editor and click on "Publish on Github" (you might need to add a name, author name and polish some code if you want).

Then you can create a Pull Request on Github, it will gets to the website gallery when we merge it! (using some Travis, NPM) That's all, no server, all web services ;)

Hope you enjoy this new version and feel free to report any things for me to improve!
I dedicate my next days in polishing this release.

Thanks!

throw new Error("GL validation context could not be created");

@gre @gltransitions @gunrot
I have followed below steps

sudo apt-get update && sudo apt-get -y upgrade
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
npm -v
npm i -g gl-transition-scripts
sudo npm i -g data-uri-to-buffer jpeg-js mime-types ndarray ndarray-pack node-bitmap omggif parse-data-uri pngjs request through
sudo npm i -g bindings bit-twiddle glsl-tokenizer nan node-gyp prebuild-install
sudo npm i -g ndarray ndarray-ops typedarray-pool
sudo npm i -g gl-shader
sudo npm i -g gl-shader gl-texture2d glsl-parser glsl-token-string glsl-tokenizer ndarray performance-now
sudo npm i -g iota-array is-buffer
sudo npm i -g contentstream gif-encoder jpeg-js ndarray ndarray-ops pngjs-nozlib through
sudo npm i -g commander get-pixels gl gl-texture2d gl-transition gl-transition-utils ndarray save-pixels

On running
gl-transition-render -t CrossZoom.glsl -i test.png -w 480 -h 480 -out out

I am getting

/usr/lib/node_modules/gl-transition-scripts/lib/gl-transition-render.js:81
if (!gl) throw new Error("GL validation context could not be created");

Do I need to explicitly set the GL libraries ? Is there any documentation for steps to do this setup for CLI(specifically on machine without any graphics support)?

Thanks
Akash

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.