Comments (2)
Hello
Sorry for the late response. The method you are using seems correct it only seems to miss on the height extraction from the tile image texture.
To calculate the height from a pixel value you have to use the following formula
elevation = -10000 + (({R} * 256 * 256 + {G} * 256 + {B}) * 0.1)
Maybe we could add a util to library with this technique.
Thanks a lot!
from geo-three.
@tentone might be a silly question but how do we get the RGB?
elevation = -10000 + (({R} * 256 * 256 + {G} * 256 + {B}) * 0.1)
thanks!
from geo-three.
Related Issues (20)
- Usage with Normal JS Project HOT 2
- LOD issue HOT 7
- height shader HOT 4
- wrong tile coordinates using react-fiber and fiber/drei HOT 3
- get all tiles that are in viewspace HOT 2
- 2 questions: "confusion about EPSG:900913" and "performance of Equirectangular projection" HOT 4
- How to load tiles with a resolution of 512 * 512 or 1024 * 1024? HOT 1
- Location problems HOT 1
- integration with react-three-fiber HOT 2
- Clipping map plane HOT 1
- sth wrong when "UnitsUtils.datumsToSpherical(la, lo)" HOT 1
- Implementing a Map Overlay HOT 2
- How to load 3D terrain by loading geotiff data HOT 2
- Shadow is not working on terrain mesh HOT 1
- how to get bbox of map ?? HOT 2
- Support for 3D Tiles HOT 1
- is there any method to set dynamic ZoomLevel ? HOT 1
- Google Maps, createSession fails HOT 1
- Multiple maps over the same area HOT 2
- No support material transparent HOT 2
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 geo-three.