diff --git a/src/Layer/C3DTilesLayer.js b/src/Layer/C3DTilesLayer.js index 9415b809d0..1d862e75be 100644 --- a/src/Layer/C3DTilesLayer.js +++ b/src/Layer/C3DTilesLayer.js @@ -118,8 +118,8 @@ class C3DTilesLayer extends GeometryLayer { this.pntsShape = PNTS_SHAPE.CIRCLE; this.classification = config.classification; this.pntsSizeMode = PNTS_SIZE_MODE.VALUE; - this.pntsMinAttenuatedSize = config.pntsMinAttenuatedSize || 3; - this.pntsMaxAttenuatedSize = config.pntsMaxAttenuatedSize || 10; + this.pntsMinAttenuatedSize = config.pntsMinAttenuatedSize || 1; + this.pntsMaxAttenuatedSize = config.pntsMaxAttenuatedSize || 7; if (config.pntsMode) { const exists = Object.values(PNTS_MODE).includes(config.pntsMode); if (!exists) { @@ -196,8 +196,7 @@ class C3DTilesLayer extends GeometryLayer { } preUpdate(context) { - this.scale = context.camera._preSSE; - return pre3dTilesUpdate.bind(this)(); + return pre3dTilesUpdate.bind(this)(context); } update(context, layer, node) { diff --git a/src/Process/3dTilesProcessing.js b/src/Process/3dTilesProcessing.js index 3bce32d607..6c40fcc557 100644 --- a/src/Process/3dTilesProcessing.js +++ b/src/Process/3dTilesProcessing.js @@ -171,10 +171,11 @@ function cleanup3dTileset(layer, n, depth = 0) { } // this is a layer -export function pre3dTilesUpdate() { +export function pre3dTilesUpdate(context) { if (!this.visible) { return []; } + this.scale = context.camera._preSSE; // Elements removed are added in the layer._cleanableTiles list. // Since we simply push in this array, the first item is always diff --git a/src/Provider/3dTilesProvider.js b/src/Provider/3dTilesProvider.js index 7448c56721..e3fe278f7f 100644 --- a/src/Provider/3dTilesProvider.js +++ b/src/Provider/3dTilesProvider.js @@ -36,7 +36,7 @@ function pntsParse(data, layer) { const material = layer.material ? layer.material.clone() : new PointsMaterial({ - size: 0.05, + size: 1, mode: layer.pntsMode, shape: layer.pntsShape, classification: layer.classification,