I'm looking for info on how to go about creating a skybox texture.
I'm going to be generating 3d data (star positions) at runtime. I then want to produce a cubemap that I can use for a skybox. I have no idea how to do the mapping from 3d coordinates to the six 2D cube faces. I really just need some guidance on the math, don't need source code or details on specific cube map formats (yet!) though that would work too.