Tuesday, November 28, 2023
HomeVisual EffectsFlipbook movement vectors for non-square frames with completely different collums/rows

Flipbook movement vectors for non-square frames with completely different collums/rows


Hiya everybody,

I’m pretty new to unreal 4 engine and i’ve not too long ago began messing with movement vectors for flipbooks. I’m already conscious of the problem the place the flipbook_motionvector node breaks when you’ve got a unique quantity of collums and rows because of the earlier posts about it in there boards.

Nonetheless i’ve come throughout a brand new situation, it seems that when you’ve got completely different collums/rows mixed with a non sq. body it breaks once more. It appears to work if i’ve the identical quantity of rows/collums when every body just isn’t sq. and in addition with completely different rows/collums with sq. frames (after i utilized the repair) however when i mix the 2 so i’ve completely different rows and collums AND non sq. frames the problem arrises. My flipbook is 4k and has 16×8 frames and every particular person body is 1:2 side ratio. (256×512 per body) It seems to play the primary few frames okay then it simply disappears. If i manually squish the diffuse in photoshop so the frames are sq. once more it really works.

Im nonetheless simply studying these shaders snd i’ve been poking round within the flipbook movement vectors node graph however nothing is leaping out at me. Would anybody right here have any concepts i how would go about debugging or fixing this situation?

Thanks rather a lot for any enable you guys can present!

EDIT: I’ve recompiled all the things and redid my shader graph and all the things appears to be magically working now. Unsure what i tousled beforehand however oh nicely! Thanks!


Don’t use non sq. textures it doesnt actually assist the optimization

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments