I am trying to procedurally generate a galaxy. 400 billion stars is a lot. I want to generate only the stars in a narrow region (the ones visible from a particular location). But I'm going to do this many times, and I want the stars to be consistent no matter where you're looking from.
I might, for instance, render a star field from Earth, then one from Tau Ceti, then one from Proxima Centauri. Some stars will be in common among them.
I would like a way to select points in 3d volumes such that any given point selected in one 3d volume is also selected in every 3d volume containing that point. Actually, ideally it would be generalizable to more dimensions, and I could use a fourth dimension






![Hootsifer[ule]](https://i.redd.it/0x8jllua8aga1.jpg)