I was wondering how does the stars in night time in minecraft work, are they point sprites? And are they placed on a texture or just randomly placed on some far away location.
EDIT 1:
OK, well, with the imformation gathered concerning the minecraft skybox I now know that the stars are not directly textured onto a sphere but are individial quads placed some set distance (the radius of the sphere) from the player.
The problem is now I will I go about getting a random position on that sphere (not in it and not too far out of it). And how will I get rotation for it to face the player? One user suggested normalising a random Vector3 then multiplying it by the spheres radius which I think, simply won't work. Also another suggested that I use the formular: "1 = x^2+y^2+z^2", I don't know how I would use this to find a random position on a sphere either.
EDIT 2:
OK, I haven't tested this or anything but from all the imformation gathered from PrinceCharles anwser it should be something like this:
float x = (float)random.NextDouble() * 2 - 1;
float y = (float)random.NextDouble() * 2 - 1;
float z = (float)Math.Sqrt((double)(1f - x * x - y * y));
Vector3 randomPoint = new Vector3(x, y, z);
if (randomPoint.Length() != 0)
{
randomPoint.Normalize();
Vector3 pointOnSphere = randomPoint * radius;
// Position Rotation
stars.Add(new Star(pointOnSphere, new Vector3(0, 0, 0)));
}
The reason for the "* 2 - 1" is to give the random a range of -1 to 1. I think that is correct...
EDIT 3:
One side of the map:

The other:

Any ideas?
Thanks :)