From 91884e56b6dcf792badef5f5b55fa330ff3a3b4b Mon Sep 17 00:00:00 2001 From: Jeran Date: Mon, 20 Jul 2026 13:22:50 +0200 Subject: [PATCH 1/4] e --> exponent --- src/components/plots/PointCloud.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/plots/PointCloud.tsx b/src/components/plots/PointCloud.tsx index a2cbbb64..e9df9b45 100644 --- a/src/components/plots/PointCloud.tsx +++ b/src/components/plots/PointCloud.tsx @@ -97,7 +97,7 @@ export const PointCloud = ({textures} : {textures:PCProps} )=>{ } } const indexAttr = new THREE.Int32BufferAttribute(indexData, 1); - const maxPointsPerDraw = 2e31 - 1; // 32bit limit + const maxPointsPerDraw = 2**31 - 1; // 32bit limit const list = []; for (let offset = 0; offset < subNumPoints; offset += maxPointsPerDraw) { const count = Math.min(maxPointsPerDraw, subNumPoints - offset); From 7f5f397679d713e5a2be4c011129485b18e710a8 Mon Sep 17 00:00:00 2001 From: Jeran Date: Mon, 20 Jul 2026 13:33:10 +0200 Subject: [PATCH 2/4] misunderstood. Going back to 25million --- src/components/plots/PointCloud.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/plots/PointCloud.tsx b/src/components/plots/PointCloud.tsx index e9df9b45..10d14020 100644 --- a/src/components/plots/PointCloud.tsx +++ b/src/components/plots/PointCloud.tsx @@ -96,8 +96,8 @@ export const PointCloud = ({textures} : {textures:PCProps} )=>{ indexData[writePtr++] = i; } } - const indexAttr = new THREE.Int32BufferAttribute(indexData, 1); - const maxPointsPerDraw = 2**31 - 1; // 32bit limit + const indexAttr = new THREE.Uint32BufferAttribute(indexData, 1); + const maxPointsPerDraw = 25e6; const list = []; for (let offset = 0; offset < subNumPoints; offset += maxPointsPerDraw) { const count = Math.min(maxPointsPerDraw, subNumPoints - offset); From ae871394b254df0611b2a1e20604b752d1884ada Mon Sep 17 00:00:00 2001 From: Jeran Date: Mon, 20 Jul 2026 13:34:38 +0200 Subject: [PATCH 3/4] Uint doesn't work --- src/components/plots/PointCloud.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/plots/PointCloud.tsx b/src/components/plots/PointCloud.tsx index 10d14020..b993410e 100644 --- a/src/components/plots/PointCloud.tsx +++ b/src/components/plots/PointCloud.tsx @@ -96,7 +96,7 @@ export const PointCloud = ({textures} : {textures:PCProps} )=>{ indexData[writePtr++] = i; } } - const indexAttr = new THREE.Uint32BufferAttribute(indexData, 1); + const indexAttr = new THREE.Int32BufferAttribute(indexData, 1); const maxPointsPerDraw = 25e6; const list = []; for (let offset = 0; offset < subNumPoints; offset += maxPointsPerDraw) { From 0d6dfab406607cd64a882071942b32e5f51da299 Mon Sep 17 00:00:00 2001 From: Jeran Date: Mon, 20 Jul 2026 13:39:31 +0200 Subject: [PATCH 4/4] Remove lines --- src/components/plots/PointCloud.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/components/plots/PointCloud.tsx b/src/components/plots/PointCloud.tsx index b993410e..77c24a42 100644 --- a/src/components/plots/PointCloud.tsx +++ b/src/components/plots/PointCloud.tsx @@ -4,8 +4,6 @@ import { pointFrag, pointVert } from '@/components/textures/shaders' import { useGlobalStore } from '@/GlobalStates/GlobalStore'; import { usePlotStore } from '@/GlobalStates/PlotStore'; import { useShallow } from 'zustand/shallow'; -import { deg2rad } from '@/utils/HelperFuncs'; -import { useCoordBounds } from '@/hooks/useCoordBounds'; import { UVCube } from './UVCube'; import { ColumnMeshes } from './TransectMeshes'; @@ -109,8 +107,6 @@ export const PointCloud = ({textures} : {textures:PCProps} )=>{ return list; }, [depth, width, height]); - const {lonBounds, latBounds} = useCoordBounds() - const shaderMaterial = useMemo(()=> (new THREE.ShaderMaterial({ glslVersion: THREE.GLSL3, uniforms: {