Giter Site home page Giter Site logo

Comments (3)

mpetroff avatar mpetroff commented on August 25, 2024

the white flashing screen

You're going to have to clarify your configuration. There should not be any such screen for equirectangular images, and for multires images, the default color is black.

Assuming you're using multires images and have just changed the default color, there are two things you can do to alleviate this.

First, there's the sceneFadeDuration configuration parameter, which allows you to specify a fade from the old scene to the new scene; this gives the new scene more time to load, which should lessen the effect.

Second, using the master branch, you can specify either the shtHash or equirectangularThumbnail configuration options. The shtHash parameter allows you to provide a spherical-harmonic-transform-based preview, and the equirectangularThumbnail parameter allows you to provide a Base64-encoded equirectangular thumbnail image. In either case, the preview will be immediately displayed instead of the solid color, prior to any tiles being loaded. The current version of generate.py will generate the shtHash for you, assuming pyshtools is installed.

from pannellum.

devinmarkley avatar devinmarkley commented on August 25, 2024

Sorry for the lack of specificity. I'm serving equirectangular images outside of a tour as I don't know all the images that the user may want to access. When user click to move to the next image the previous image they were viewing disappears and the screen below appears. I'd like the previous image to remain until the new image is ready to be served.

Screenshot 2024-04-17 at 7 22 44 AM

from pannellum.

mpetroff avatar mpetroff commented on August 25, 2024

Tours can still be and should be used in the context you're describing. When you want to move to a new image, use the API's addScene method to add it as a new scene followed by the loadScene method to switch to it (you can optionally use removeScene to remove the previous scene after switching). This avoids the loading screen background and avoids repeatedly creating new WebGL contexts.

from pannellum.

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.