Comments (5)
That [x, y, z]
is the result of applying "mouse picking" against the visible terrain mesh objects with:
three-geo/examples/geo-viewer/src/viewer.js
Lines 459 to 463 in 07a47d6
For the underlying raycasting function raycastFromMouse()
, please follow its implementation.
from three-geo.
Hi,
First thanks for your library, it rocks !
This ticket is named exactly as I would have named mine, so I put my question here.
I looked at your example "projection" and I saw that your are setting the elevation of the point by hand.
I tried to use the _resovleElevation by passing the meshes to the proj function (and it works) but I guess there is some debug code which try to access window._scene to display the result of the function.
I guess I should not be using this as it is mentionned WIP, but there is currently not any other way to retrieve the height of a given point right ?
Thanks again for your work.
from three-geo.
I found out that you can obtain the height of any coordinate using Mapbox rgb terrain tiles (you can find a library for this). The rest is easy as shown in the projection example.
from three-geo.
I tried to use the _resovleElevation by passing the meshes to the proj function (and it works)
...
I guess I should not be using this as it is mentionned WIP, but there is currently not any other way to retrieve the height of a given point right ?
Hi @Spope ! Resolving elevation by proj()
with the meshes
argument (i.e. [x, y, z] = proj(latlng, meshes)
) is WIP and the internal _resolveElevation()
would not be robust enough (hence not yet documented in API). Yes, this is the only approach tried thus far.
you can obtain the height of any coordinate using Mapbox rgb terrain tiles (you can find a library for this)
@eserrose Curious, what's the name of the library?
from three-geo.
Thanks for the answers, will look for other way of doing this.
from three-geo.
Related Issues (20)
- How to retrieve Lat/Log from WebGL Coordinates? HOT 1
- Invalid in node HOT 1
- How can I exaggerate elevation? HOT 2
- display this in mapbox?
- What are the Unitsside units
- How to cache tiles on the Web side
- require("THREE") should be require("three") HOT 1
- error with es-pack-js when executing 'npm i' HOT 15
- Aligning multiple tiles together HOT 2
- Change number of vertices HOT 1
- Error when executing npm HOT 5
- Loading custom DEM data (GeoTIFF) instead of Mapbox data HOT 2
- Customize height and width of the scene
- none of the live demo's work HOT 4
- can i use google map image and DEM data to build, do not use mapbox ?
- ReferenceError: THREE is not defined
- How to reduce vertex count? HOT 1
- Q: How do you calculate terrain height relative to the position units in three.js, which are also dependant on the zoom factor? HOT 3
- Dependencies issue HOT 2
- install error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from three-geo.