Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

"Loop" an image tile

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.

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!

"Loop" an image tile

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!