Flipping an image like a playing card with jitter
Hello I am trying to use jitter to flip through cards and I am pretty close to a result that I like. I wanted to send this out to the community in case others would have more streamlined methods which would save some CPU/GPU.
-perhaps there is a way to build this in gl so that i don'T have to crossfade between two matrices?
I am hoping to find the most optimal way to process this because i am planning to have 4 instances of this processing for 4 different cards.
I am encountering a small problem near the turn of the images (around 0 on the slider) I would hope not to see the many lines that popup around the turn of the card. I see that this only happens after jit.rota.
I am using Max 9, glcore, viddl, cache size 1, Windows 11
As a general rule, for better performance with graphics, use jit.gl or jit.fx objects.
Here is your same patch but running on the GPU:
And more specifically about your card flipping effect, you could also use one jit.gl.videoplane per card, and rotate (flip) them in the 3D space. Think more of recreating a card game in 3D rather than giving the illusion of flipping cards in 2D.