Hi.
I’m dabbling with a spacegame, and I’m working with texturing planets at the moment. I have some tools to create decent-looking planet surfaces, - however they’re the typical flat kind based off heightmaps etc. (Square shaped, - 512*512 pixels as an example).
To wrap around spheres seamlessly, I’d like to convert these images into an equirectangular projection so that they map very nicely around spheres. Does anyone have any code that does this, or perhaps can explain the algorithm to me?
Thanks.