A question that has been bothering me for some time: How is the satellite texture and mask actually mapped to the terrain ?
If, for example, I have a grid of 512x512 and a satmap of the same dimensions, do the pixels of the satmap get mapped on the terrain vertices ? Or between adjacent vertices ?
The question is interesting to me because I also have the problem with the satmap not showing correctly on eastern and southern borders. I was wondering if that was related.
If the satmap is mapped between the vertices, the map would actually be one pixel shorter. Let me try to explain:
If I had a 3x3 grid of terrain vertices, these would form a 2x2 square mesh (crappy ASCII art):
So, to fit a 3x3 texture on the above "mesh" it would be necessary to map the pixel centers of the satmap to the vertices.Code:+--+--+ | | | +--+--+ | | | +--+--+
Any idea ?
- Varanon
HOME 

Reply With Quote

