From 41dced63f26f72f935997132a49d0da6810462bb Mon Sep 17 00:00:00 2001 From: xeolabs Date: Mon, 18 Jan 2021 22:42:27 +0100 Subject: [PATCH] Example tweak --- ...n_PerformanceModel_batching_benchmark.html | 57 ++++++++++--------- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/examples/sceneRepresentation_PerformanceModel_batching_benchmark.html b/examples/sceneRepresentation_PerformanceModel_batching_benchmark.html index a24d8aded5..ff45e06fec 100644 --- a/examples/sceneRepresentation_PerformanceModel_batching_benchmark.html +++ b/examples/sceneRepresentation_PerformanceModel_batching_benchmark.html @@ -81,6 +81,9 @@

PerformanceModel Benchmark

viewer.scene.camera.look = [-977.5, 17.14933204650879, -397.5]; viewer.scene.camera.up = [-0.17806679010391235, 0.9044896960258484, 0.33330681920051575]; + viewer.cameraControl.followPointer = true; + viewer.cameraControl.smartPivot = true; + //------------------------------------------------------------------------------------------------------------------ // Generate the buildings //------------------------------------------------------------------------------------------------------------------ @@ -193,33 +196,33 @@

PerformanceModel Benchmark

// Mouse over Entities to highlight them //------------------------------------------------------------------------------------------------------------------ - var lastEntity = null; - - viewer.scene.input.on("mousemove", function (coords) { - - var hit = viewer.scene.pick({ - canvasPos: coords - }); - - if (hit) { - - if (!lastEntity || hit.entity.id !== lastEntity.id) { - - if (lastEntity) { - lastEntity.highlighted = false; - } - - lastEntity = hit.entity; - hit.entity.highlighted = true; - } - } else { - - if (lastEntity) { - lastEntity.highlighted = false; - lastEntity = null; - } - } - }); + // var lastEntity = null; + // + // viewer.scene.input.on("mousemove", function (coords) { + // + // var hit = viewer.scene.pick({ + // canvasPos: coords + // }); + // + // if (hit) { + // + // if (!lastEntity || hit.entity.id !== lastEntity.id) { + // + // if (lastEntity) { + // lastEntity.highlighted = false; + // } + // + // lastEntity = hit.entity; + // hit.entity.highlighted = true; + // } + // } else { + // + // if (lastEntity) { + // lastEntity.highlighted = false; + // lastEntity = null; + // } + // } + // }); window.model = performanceModel;