Re: [PyOpenGL-Users] Fastest way to draw lots of points
Brought to you by:
mcfletch
From: Derakon <de...@gm...> - 2012-10-22 19:56:29
|
On Mon, Oct 22, 2012 at 12:41 PM, Mike C. Fletcher <mcf...@vr...> wrote: > > I'm guessing you want to update the stars so that you see more stars as > you move out of the central star-field? That is, as you move positions > you want to add another "slice" of stars off to the side toward which > you are walking? Unless you are travelling faster than light (or dealing > with extremely long time-scales) you don't actually see any significant > parallax with a star-field AFAIK. The suggestion I made off-thread was to have a repetitive starfield -- a 3x3 grid of the same pattern. That way you can invisibly loop the scrolling of the pattern when you get far enough from the center -- since it's repetitive, there's no way to tell, say, the position (-10, 0) from the position (0, 0) (if each "cell" in the grid were 10x10). Make the base pattern large enough (2x screen resolution should do) and the repetition should be hard to notice. Real-life parallax would be very hard to notice on these scales, but scrolling starfields are a time-honored tradition for space games. :) -Chris |