Giter Site home page Giter Site logo

Comments (3)

potenziani avatar potenziani commented on July 30, 2024

Hi @afr-git
most probably your application is hitting the internal 3DHOP limit for the Nexus cache (2M triangles are not so much for Nexus, but 4*8K images are a lot of data to stream).

To be sure of that try to include nexus.monitor.js to your project. Once done you should get a debug panel superimposed to the 3DHOP viewer (top-right corner):

Annotazione 2020-06-23 112313

If I'm right your issue should happen when the cache will use all the 512MB allocated. We have been a little bit conservative with this setup (also thinking to mobile devices), but this doesn't mean that you cannot customize it. You can find the functions useful to customize the Nexus setup marked as "new" in the just updated 3DHOP documentation.

For solving your issue you can exploit the setup function setNexusMaxCacheSize() and set the Nexus cache size as you prefer (for instance, use presenter.setNexusMaxCacheSize(2048*(1<<20)); to set the cache size limit to 2GB).

This should work for you. If not, please let us know!

from 3dhop.

afr-git avatar afr-git commented on July 30, 2024

Hi @potenziani thank you for the quick reply on this issue. I did as you said, and the monitor showed the 512MB cache size was the limiting factor. I increased it to 2GB and problem is solved! Thank you for your help!

I'm not really familiar with how the viewer works behind the scenes but I wonder if it is possible to dynamically unload the cache so the viewer doesn't hit the expanded cache limit on huge models e.g. 100m+ tris with 10+ 8K maps?

from 3dhop.

potenziani avatar potenziani commented on July 30, 2024

Hi @afr-git, this is exactly what Nexus already does. But the good result of this procedure strongly depends on the 3D model (and "simple" geometries with a lot of textures do not help our caching system). Moreover, it is not easy to find a balance between rendering quality and number of HTML requests that is perfect and adaptative depending on the devices' resources and network capabilities...
Anyway, we will continue to work on it! Thanks for reporting your issue and enjoy 3DHOP.

from 3dhop.

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.