moving random dots

Hi,
wondering if anyone could point me to a code example of a random dot “starfield”, where the dots are moving towards the viewer, rather than the viewer towards the stars. once a star reaches a defined point, i’d like it to reappear somewhere randomly at the focus of expansion.

i’ve seen stars.c in the glutdemos, but would prefer something simpler, without all the warping effects.

thanks in advance,
Simon

Originally posted by shosking:
where the dots are moving towards the viewer, rather than the viewer towards the stars.

what does this mean?

stars are in motion w.r.t. the viewer and viewer is in motion w.r.t. the stars

  • Chetan