Skip to content

Commit

Permalink
Switch from merge to blend for high zoom tiles
Browse files Browse the repository at this point in the history
- Merge, even with the previous patches, appears to improperly detect
which tiles to overwrite when creating zoomed out tiles.  This results
in empty mosaic/elevation data overwriting good data in some tiles.
- The real fix would be to figure out what is going on with merge, but
blend() is a good workaround
  • Loading branch information
zthorson committed Aug 3, 2021
1 parent 76c5bfd commit 70b71e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/realm_stages/src/tileing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,11 @@ bool Tileing::process()
Tile::Ptr tile_merged;
if (tile_cached)
{
// Currently merge appears to be having issues properly combining tiles, leading to
// odd artifacts. Merge is slightly more intensive, but works cleaner. I am not yet sure why merge
// is having issues.
tile_merged = merge(tile, tile_cached);
//tile_merged = blend(tile, tile_cached);
tile_cached->unlock();
}
else
Expand Down

0 comments on commit 70b71e0

Please sign in to comment.