DirectX - Displaying sprite as moving background image

Hi all,

I'm making a 3d-Submarine game in C++/DirectX9c and im having trouble with the background imagery. All I have is a colour.

I would like to load in an image ie. 'back.jpg' that moves to represent the floor moving as the submarine travels through the water.

does anybody have any insight? i think im looking for something to do with LPD3DXSPRITE, that as far as it goes. Please make answers quite basic as I have exp. in C++, but not as much in D3D


Who is Participating?
Well, one method that comes to mind is to make a bunch of rectangles(one more than the screen can fit), testure each of them and line them up.

move all of them to the left or right. then when one of the rectangles is offscreen, move it's position to the opisite side and have scroll it to the left or right as need be.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.