diff --git a/nusamai/src/sink/cesiumtiles/mod.rs b/nusamai/src/sink/cesiumtiles/mod.rs index 0ef6f15e..d8fde01f 100644 --- a/nusamai/src/sink/cesiumtiles/mod.rs +++ b/nusamai/src/sink/cesiumtiles/mod.rs @@ -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; @@ -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, }; diff --git a/nusamai/src/sink/cesiumtiles/slice.rs b/nusamai/src/sink/cesiumtiles/slice.rs index db0a283a..898838e2 100644 --- a/nusamai/src/sink/cesiumtiles/slice.rs +++ b/nusamai/src/sink/cesiumtiles/slice.rs @@ -138,7 +138,7 @@ pub fn slice_to_tiles( 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