PDA

View Full Version : moving random dots



shosking
09-22-2003, 07:31 PM
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

virtualchetan
09-23-2003, 03:30 PM
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