Skip to content

Commit

Permalink
3D Tilesの出力結果を微調整 (#649)
Browse files Browse the repository at this point in the history
<!-- Close or Related Issues -->

### What I did(変更内容)
<!-- Please describe the motivation behind this PR and the changes it
introduces. -->
<!-- どのような変更をしますか? 目的は? -->

- 出力結果を微調整する

### Notes(連絡事項)
<!-- If manual testing is required, please describe the procedure. -->
<!-- 手動での動作確認が必要なら手順を簡単に伝えてください。そのほか連絡事項など。 -->

None / なし
  • Loading branch information
nokonoko1203 authored Sep 26, 2024
1 parent fb6b58d commit 52cd11c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions nusamai/src/sink/cesiumtiles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl DataSink for CesiumTilesSink {
let tile_id_conv = TileIdMethod::Hilbert;

// TODO: configurable
let min_zoom = 12;
let min_zoom = 15;
let max_zoom = 18;

let limit_texture_resolution = self.limit_texture_resolution;
Expand Down Expand Up @@ -409,8 +409,8 @@ fn tile_writing_stage(
// initialize texture packer
// To reduce unnecessary draw calls, set the lower limit for max_width and max_height to 4096
let config = TexturePlacerConfig {
width: max_width.max(4096),
height: max_height.max(4096),
width: max_width.max(2048),
height: max_height.max(2048),
padding: 0,
};

Expand Down
2 changes: 1 addition & 1 deletion nusamai/src/sink/cesiumtiles/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ pub fn slice_to_tiles<E>(
tiling::scheme::zxy_from_lng_lat(zoom, lng_center, lat_center);
tiling::scheme::geometric_error(zoom, y)
};
let threshold = geom_error * 1.5; // TODO: adjustable
let threshold = geom_error * 2.0; // TODO: adjustable
if approx_dx < threshold
&& approx_dy < threshold
&& approx_dh < threshold
Expand Down

0 comments on commit 52cd11c

Please sign in to comment.