Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


DirectX - Displaying sprite as moving background image

Posted on 2005-04-22
Medium Priority
Last Modified: 2007-12-19
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


Question by:s34n
1 Comment

Accepted Solution

Diane258 earned 1000 total points
ID: 13851483
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.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Introduction to Processes

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question