Scrolling stars / background?

Ok so im a new to opengl and im starting to make a space game.

My goal is to have a top-down view of objects/spacecraft ect with stars underneath them. The ships would move like real live (I.E. the old asteroids game) and the stars would scroll under the ships.

Any ideas on a good way to accomplish this with opengl?

Originally posted by CharredSoul:
Ok so im a new to opengl and im starting to make a space game.

Well, you probably should be posting in the beginner’s forum then.

You’ll find plenty of examples / starting points at http://nehe.gamedev.net/

[b]My goal is to have a top-down view of objects/spacecraft ect with stars underneath them. The ships would move like real live (I.E. the old asteroids game) and the stars would scroll under the ships.

Any ideas on a good way to accomplish this with opengl?[/b]

  1. Clear screen
  2. Draw stars
  3. Draw ships
  4. Compute new starfield position
  5. Compute new ship position
  6. GOTO 1

-Damon