Sign in to follow this  
andreib

WebGL image transition

Recommended Posts

andreib    147

I have a page that uses this WebGL shader to make a transisiton from one image to another: https://glsl.io/transition/ee15128c2b87d0e74dee

 

All of my files, the JS and HTML and images, etc... I ziped here:https://app.box.com/s/ao03nu1lujly17ws74v1

 

 

I can't get the transision to transision from the size of the first image to the size of the next image.

Right now it just stretches both images to the size of the canvas, no matter what the size of the image is.

 

I want it to  transition from one image size to the next smoothly using the progress counter as an aid to calculate the size.

 

If that can't be done, then I want to keep the aspect raitio of the images unchanged.

 

 

Can anyone give me any tips?

 

I am using this library for transisioning: https://github.com/glslio/glsl-transition

 

I used this as the starting point: github.com/glslio/glsl-transition-examples  (example1)

Edited by Promit

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this