Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this library? #40

Open
MeRahulAhire opened this issue Oct 15, 2022 · 5 comments
Open

How to use this library? #40

MeRahulAhire opened this issue Oct 15, 2022 · 5 comments
Labels
question Further information is requested

Comments

@MeRahulAhire
Copy link

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
Copy link
Owner

tentone commented Nov 9, 2022

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
Copy link
Author

MeRahulAhire commented Nov 9, 2022

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
Copy link
Owner

tentone commented Nov 9, 2022

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
Copy link
Author

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

@tentone tentone added the question Further information is requested label Nov 9, 2022
@MeRahulAhire
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants