(cell: &HEALPixCell, delta_depth: u8, camera: &
let skewed_factor = (center_to_vertex_dist - smallest_center_to_vertex_dist)
/ (largest_center_to_vertex_dist - smallest_center_to_vertex_dist);
+ if is_too_large::(cell, camera) || cell.is_on_pole() || skewed_factor > 0.25 {
+ num_sub += 1;
+ }
+
+ /*
if skewed_factor > 0.25 {
num_sub += 1;
}
@@ -77,6 +82,7 @@ fn num_subdivision(cell: &HEALPixCell, delta_depth: u8, camera: &
if is_too_large::(cell, camera) || cell.is_on_pole() {
num_sub += 1;
}
+ */
num_sub
}
@@ -1229,8 +1235,6 @@ impl ImageSurveys {
(survey.is_allsky() || survey.get_config().get_format() == ImageFormatType::RGB8U) && meta.opacity == 1.0
});
-
-
if !not_render_transparency_font {
let shader_font = get_fontcolor_shader(&self.gl, shaders).bind(&self.gl);
shader_font
diff --git a/src/core/src/survey/render/rasterizer/uv.rs b/src/core/src/survey/render/rasterizer/uv.rs
index 64e5e7b9..0f330268 100644
--- a/src/core/src/survey/render/rasterizer/uv.rs
+++ b/src/core/src/survey/render/rasterizer/uv.rs
@@ -51,8 +51,7 @@ impl TileUVW {
let u = ((idx_row_in_slice as f32) + ((idx_row_in_tex as f32) / nside)) / num_textures_by_side_slice_f32;
let v = ((idx_col_in_slice as f32) + ((idx_col_in_tex as f32) / nside)) / num_textures_by_side_slice_f32;
-
- let ds = 1_f32 / (num_textures_by_side_slice_f32 * nside) - 1_f32 / (texture_slice_px as f32);
+ let ds = 1_f32 / (num_textures_by_side_slice_f32 * nside);
let w = (texture_idx as f32) / (num_textures_by_slice as f32);
TileUVW([
diff --git a/src/core/src/survey/view.rs b/src/core/src/survey/view.rs
index bc384676..5610ddcc 100644
--- a/src/core/src/survey/view.rs
+++ b/src/core/src/survey/view.rs
@@ -31,7 +31,7 @@ pub fn depth_from_pixels_on_screen(camera: &CameraViewPort, num_p
let two_power_two_times_depth_pixel =
std::f32::consts::PI / (3.0 * angle_per_pixel * angle_per_pixel);
- let depth_pixel = (two_power_two_times_depth_pixel.log2() / 2.0).floor() as u32;
+ let depth_pixel = (two_power_two_times_depth_pixel.log2() / 2.0).ceil() as u32;
//let survey_max_depth = conf.get_max_depth();
// The depth of the texture
diff --git a/src/js/View.js b/src/js/View.js
index 7a1a93a2..401a07ad 100644
--- a/src/js/View.js
+++ b/src/js/View.js
@@ -79,7 +79,7 @@ export let View = (function() {
this.mode = View.PAN;
this.minFOV = this.maxFOV = null; // by default, no restriction
- this.fov_limit = 1000.0;
+ this.fovLimit = 1000.0;
this.healpixGrid = new HealpixGrid();
this.then = Date.now();
@@ -678,7 +678,7 @@ export let View = (function() {
// zoom
const dist = Math.sqrt(Math.pow(e.originalEvent.touches[0].clientX - e.originalEvent.touches[1].clientX, 2) + Math.pow(e.originalEvent.touches[0].clientY - e.originalEvent.touches[1].clientY, 2));
- const fov = Math.min(Math.max(view.pinchZoomParameters.initialFov * view.pinchZoomParameters.initialDistance / dist, 0.00002777777), view.fov_limit);
+ const fov = Math.min(Math.max(view.pinchZoomParameters.initialFov * view.pinchZoomParameters.initialDistance / dist, 0.00002777777), view.fovLimit);
view.setZoom(fov);
return;
@@ -1372,8 +1372,8 @@ export let View = (function() {
}
let new_fov = si / Math.pow(this.pinchZoomParameters.initialAccDelta, alpha);
- if (new_fov > this.fov_limit) {
- new_fov = this.fov_limit;
+ if (new_fov > this.fovLimit) {
+ new_fov = this.fovLimit;
//this.pinchZoomParameters.initialAccDelta = Math.pow(si / new_fov, 1.0/alpha);
}
if (new_fov < 0.00002777777) {
@@ -1397,8 +1397,8 @@ export let View = (function() {
let new_fov = si / Math.pow(this.pinchZoomParameters.initialAccDelta, alpha);
- if (new_fov > this.fov_limit) {
- new_fov = this.fov_limit;
+ if (new_fov > this.fovLimit) {
+ new_fov = this.fovLimit;
//this.pinchZoomParameters.initialAccDelta = Math.pow(si / new_fov, 1.0/alpha);
}
if (new_fov < 0.00002777777) {