"Loop" an image tile [closed]

asked 2015-12-07 05:02:42 -0600

KvltKitty gravatar image

updated 2015-12-07 05:03:35 -0600

Hey all,

So I'm using opencv with the allegro game library to aid me in generating procedural content. One quest I had was if I have a water tile Mat image, is there a way to "offset" it so it appears to be moving in a particular direction? Any suggestions on where to get started on something like this would be greatly appreciated. There are water tile images essentially and I want to be able to cycle them. Thanks for the help!

If I haven't been concise enough please let me know. I've been coding for about 15 hours and my brain is kind of fried at this point

Cheers!

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-09-27 08:57:59.415729

Comments

To be more precise I'd like to create about 5-10 frames of it to cycle through in real time

KvltKitty gravatar imageKvltKitty ( 2015-12-07 06:40:49 -0600 )edit

May be this

LBerger gravatar imageLBerger ( 2015-12-07 14:10:33 -0600 )edit

That's an interesting approach. How would I go about starting to do this? (opencv beginner here)

KvltKitty gravatar imageKvltKitty ( 2015-12-07 15:23:04 -0600 )edit

this is probably not a job for opencv, but more one for your game-engine, where you'd just move texcoords from a fragment shader

berak gravatar imageberak ( 2015-12-08 01:13:30 -0600 )edit