Sign in to follow this  

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:


All of my files, the JS and HTML and images, etc... I ziped here:



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:


I used this as the starting point:  (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