nathanielwarner / flightgear-photoscenery

FlightGear - PhotoScenery Edition
GNU General Public License v2.0
21 stars 6 forks source link

Texture issues on meridian #1

Closed elpiaui closed 3 years ago

elpiaui commented 3 years ago

Hello,

I'm having texture issue along the meridian (tiles before 0° lon). I managed to fix it by changing this line on OrthophotoBounds::_updateHemisphere():

if (_maxPosLon - _minNegLon <= _maxNegLon - _minPosLon) { to if (_maxPosLon - _minNegLon >= _maxNegLon - _minPosLon) {

Thanks

nathanielwarner commented 3 years ago

Hi, Thanks for letting me know! You're right that the prime meridian (0° lon) was broken, though the fix you provided breaks the 180th meridian. I've pushed a fix now (41aaf44) that I think will work in both cases. Also, could you let me know where you found this issue? I searched quite awhile without success for airports that straddle either of the meridians!

elpiaui commented 3 years ago

Hi, you are right, thanks for the fix! I found it flying in France but it wasn't close to a specific airport.