Sign in to follow this  
CamO

image texture dynamic transition

Recommended Posts

Hello, I am trying to create a dynamic transition from one image texture to another shape and not a created mask transition. In short I am trying to create the effect show on the link below.

 and one other question is it possible to click on a single stroke that is part of the. borderline of a graphic shape?

Thanks for your time and thumbs up for your library !

 

Edited by CamO
forgot a question

Share this post


Link to post
Share on other sites

You could do that by creating a shader with two texture inputs which blend between those two. The actual code & math inside the shader is out of my scope in reasonable time.

As a starting point I would propably try doing somekind of convolution with previous frame as feedback and then moving towards target image.

This is the closest example for blending. In the example a perlin noise image is used to determine the blending. In your case that would be the shader somehow morphing the images.

https://pixijs.io/examples/#/mesh-and-shaders/multipass-shader-generated-mesh.js

Edited by Exca
Added example link.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.