From 9ac0cb69080b334e20207028dfb7fef42310c02f Mon Sep 17 00:00:00 2001 From: Kieran Farr Date: Fri, 5 Jul 2024 11:24:07 -0700 Subject: [PATCH] playing with raycaster, trying to find height of ground At current lat long (in index.html), we're colliding with things, but we're not yet sure which thing is the ground. Hypothesis: a mesh that contains a lot of points (faces) in its geometry (object.geometry.index.count) is likely to be the ground; others are likely to be sky or excessively coarse-grained meshes. --- examples/google-tiles-raycaster/index.html | 11 +- .../tiles-raycaster-simple.js | 108 ++++++++++++++++++ 2 files changed, 115 insertions(+), 4 deletions(-) create mode 100644 examples/google-tiles-raycaster/tiles-raycaster-simple.js diff --git a/examples/google-tiles-raycaster/index.html b/examples/google-tiles-raycaster/index.html index d90903fb..8910da6b 100644 --- a/examples/google-tiles-raycaster/index.html +++ b/examples/google-tiles-raycaster/index.html @@ -8,6 +8,7 @@ +