Jump to content
  • Advertisement
Sign in to follow this  
andreib

WebGL image transition

This topic is 1487 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!