tentone / geo-three

Tile based geographic world map visualization library for threejs
https://tentone.github.io/geo-three/docs/
MIT License
651 stars 105 forks source link

How to use this library? #40

Open MeRahulAhire opened 1 year ago

MeRahulAhire commented 1 year ago

By reading the readme I'm not getting on how to actually use this library to turn map tiles into a material for my sphere buffer geometry.

I'm not getting on how to initialise the lib and then use it for myself. Can you please let me know any examples that'll give me clear understanding about it?

tentone commented 1 year ago

Hello @MeRahulAhire

To use the library you first must create a three.js scene and rendering setup.

Then you import the objects from this library into the three.js scene.

You will need a data provider for tile data. The lib already supports a couple of services out of the box.

Thanks a lot!

MeRahulAhire commented 1 year ago

Do you have a specific example on how to use this library as a texture to sphereBufferGeometry? I also tried this approach but it's making a hole at both the poles.

I don't want to import the object from this library as I have blender animation that I want to import it natively in it as I assume that'll be much easy. Any suggestion on how should I approach it?

edit: I have my own custom xyz tiles that I created out of Nasa's Black Marble.

tentone commented 1 year ago

You cannot use this library to dinamically generate texto for your sphere buffer,

I can use the sphere object from this library to map the tiles into a sphere surface.

MeRahulAhire commented 1 year ago

I guess then this lib wont be fit for what I'm trying to do but can you please let me know that how can I cover this hole at the poles?

Thanks

MeRahulAhire commented 8 months ago

Hi, @tentone I've have completed this project https://experientia.in/nasa-black-marble where it does work but is not super optimised. I wanted to know if I can bring my camera gltf animation and use it with geo-three to be able to make it run on mobile devices. Right now it's a 16k Basis texture which does hogs the ram on low spec machine.

I'm indeed thinking to look into the code base of this library to see how can I implement it in near future.