Open jsassinsky opened 7 years ago
Do you have an example that displays this behavior? Are any errors printed to the browser's developer console?
See attached. There are no errors in the console. By all indications, except for the bug, the viewer is operating properly. No exceptions. No errors.
We did find that a multires pano with "autoLoad": true
enabled shows black and will remain that way indefinitely until the browser window is resized then it instantly appears.
By example, I meant a web page, not an image. I unfortunately can't debug an image.
it usually happen when you implement pannellum into a modal bootstrap view, it didn't work. it works with autoload "false". it works when you click on button.
@mpetroff I could provide an example:
With autoload: http://360.ademo.work/multires?autoload Without autoload: http://360.ademo.work/multires
Although I don't get a black screen, I get sth like this:
If I resize the browser or do something that cause the display area to change size (E.g. open developer tool) then the image became normal.
@yjchieng You need to move the <style>
section into <head>
(or at least before the Pannellum instance). The canvas is being created before the style information is evaluated, so the canvas is 0px tall and hence isn't visible.
@mpetroff ah, now i understand why. The problem is solved by moving the
When the
"autoLoad": true
option is added to a multires pano it causes Pannellum to open but the viewer remains black. Removing the autoLoad option returns the viewer to normal behavior, of course with the "Click to Load" button.The black screen behavior is observed using Chrome Version 56.0.2924.87 (64-bit) on Windows 10. The background on Microsoft Edge 38.14393.0.0 is the "Click to Load" background image but without the button. Regardless, the pano still does not auto load.
It appears the multires panos on the pannellum.org home page auto load during scene changes without the autoLoad option in the script. Is this default behavior or is there another method used to auto load the multires image?