Comments (2)
Currently the THREE.js scene isn't exposed as the shaders used in the library transform the positions of the terrain in a non-trivial way, so exposing the scene would likely be confusing as objects wouldn't show up where one would expect. However I would like to add support for adding THREE Meshes in the future, but I need to figure out a clean way to do this.
As for the camera positions, thefocusOnLocation API lets you set the camera position and the onUserInteraction
callback can detect user input. The missing part is reading out the camera position. If this was added to the API would this help?
from procedural-gl-js.
Hi Felix,
to be able to read out the camera position would help for sure!
Indeed, it would be really cool if in the future one could add THREE mesh objects :-) Thanks for the feedback about the position data, I was not aware of this!
Given your feedback, I guess it's more difficult than I thought, my reference to globe.gl was only to say that the author added a few auxiliary methods that help translating between different coordinate systems (using e.g. getCoords(lat, lng [,altitude])
, getScreenCoords(lat, lng [,altitude])
, toGeoCoords({ x, y, z })
and toGlobeCoords(x, y)
as described here.
Of course in your case one needs different methods, but for globe.gl for instance these greatly help adding an additional annotation layer of some sort by using an overlay, be it a div, a canvas element or an svg element e.g. so you can link up d3.js based chart elements . Of course adding the overlay is easy, getting things to sync up is where the auxiliary functions come in handy.
Anyways, thanks for your feedback and amazing package. Have a good and healthy new year!
from procedural-gl-js.
Related Issues (20)
- Unexpected Behaviour after clicking on marker HOT 3
- Potential Settler Sponsor here! HOT 3
- Adjustable zoom cap for terrain tiles HOT 4
- Mapbox static tiles are not well placed HOT 2
- Remove all Overlays at once
- Calculate bounding box automatically with given markers array HOT 1
- Get world coordinates from user click HOT 2
- Multiple Markers on Android HOT 4
- Camera bug
- [Question] is it possible to add an area (polygon) as an overlay? HOT 5
- focusOnLocation doesn't work in some locations. HOT 6
- Three.js function HOT 1
- Offset location indicator line HOT 1
- Some questions about missing tiles and other things.. HOT 3
- Environment parameters are being reset
- Environment parameters are being reset
- Add THREE.js objects into procedural-gl-js scene. HOT 2
- picker.raycastTerrain error
- datasources/base.js ImageLoader.load - Error callback broken
- It's not work in huawei
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 procedural-gl-js.