Texture Map Correction for spherical mapping

Blitz3D Forums/Blitz3D Programming/Texture Map Correction for spherical mapping

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I know this tool, but I won't preprocess the heightmaps, I want to calculate the new maps in BB (imagine 100 stars with approx. 5 planets each = 500 heightmaps, doh!). And if you try to stretch the upper map with this tool and put the new map on a sphere it won't fit anymore at the sides.

Torbens planet generator has the solution but I don't understand his source code (the squarep() function).