Code Monkey home page Code Monkey logo

Comments (4)

arthurschiller avatar arthurschiller commented on June 2, 2024

Hi Garret, thanks for this great library! Could you give a brief example on how this would be accomplished via onLoadModel? How do I know the total amount of models that are going to be loaded so I can compare it with the current count? Sorry in case this is actually obvious. I just hit my quota rate limit on the google tiles API but wanted to give it a go tomorrow.

from 3dtilesrendererjs.

gkjohnson avatar gkjohnson commented on June 2, 2024

You can check the amount of models currently in the queue to be parsed or downloaded using downloadQueue.items.size and parseQueue.items.size. onLoadModel is called every time a model has been downloaded and parsed so when those fields are both set to 0 you know it's complete.

What's your use case exactly? If you have a compelling one and would like to open a PR to make this more convenient I can point you in the right direction.

from 3dtilesrendererjs.

arthurschiller avatar arthurschiller commented on June 2, 2024

Thank you, that works! :)
My use case is similar to here: #378
I'm building a location based 3D editor and so I'm fetching tiles at a specified location via an Orthographic Camera.

I could certainly try, but I come from iOS development and am not too familiar with typescript.

from 3dtilesrendererjs.

gkjohnson avatar gkjohnson commented on June 2, 2024

I could certainly try, but I come from iOS development and am not too familiar with typescript.

The project is in Javascript if that changes anything. Either way up to you - also nice to have help. Happy to give feedback if you'd like to try.

from 3dtilesrendererjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.