mpetroff / pannellum

Pannellum is a lightweight, free, and open source panorama viewer for the web.
https://pannellum.org/
MIT License
4.21k stars 717 forks source link

Black screen with loadScene #216

Open Arcens opened 8 years ago

Arcens commented 8 years ago

Hello,

Thanx for this fantastic panorama library ,

I read this issue => https://github.com/mpetroff/pannellum/issues/174 .

I have tried to Implement your solution like this , If ( pannellumInstance ) { pannellumInstance.loadScene (image) ; } else { pannellumInstance pannellum.viewer = ( ' panorama' , config) ; pannellumInstance.loadScene (image) ; }

However , I have a black screen after the loading . capture d ecran 2016-08-09 a 15 32 01

I must to resize the navigator if I want to display the panorama, capture d ecran 2016-08-09 a 15 32 19

When I choose an another panorama this one is displayed correctly but if I not resize all panorama are displayed with black screen.

thanx for your help.

mpetroff commented 8 years ago

I don't see how the this issue or the code you mention have anything to do with this issue. Are you using the latest release, 2.2.1, or the Git development version? Is there anything logged to the browser's developer console?

Arcens commented 8 years ago

Hi tx for you answer,

I took the version of master branch.

There are no errors in the brower's developper console. :(.

mpetroff commented 8 years ago

Can you post your configuration?

Arcens commented 8 years ago

Yes of course,

Below my configuration

capture d ecran 2016-08-09 a 19 52 42

Also, I post my Pannellum source.

Tx for you help. Pannellum.zip

mpetroff commented 8 years ago

By "configuration," I meant your configuration for Pannellum, i.e. the config variable in the code snippet you posted.

Arcens commented 8 years ago

Excuse ^^,

In attach file my config.

Tx,

config.json.zip

mpetroff commented 8 years ago

I'm still at a loss for why this is happening. There's nothing wrong with the Pannellum configuration. Did you change anything in pannellum.js or libpannellum.js besides the indentation; I can't run a diff because of the indentation change.

Does it work properly if you don't try to change the scene with the API? Does clicking and dragging in the window cause the image to appear?

Arcens commented 8 years ago

Hi, Excuse me for the silence, I was on vacation. So, I downloaded the source again and it's great the panorama is loaded, however I have a problem on mobile the images are not loaded in order :(. capture d ecran 2016-09-07 a 10 40 20.

Tx.

mpetroff commented 8 years ago

What device / OS version / browser are you using?

Arcens commented 8 years ago

Hello , The device is a samsung s4, android 4.4 for the OS, after It's an phonegap application with crosswalk-project plugin for the webgl (https://crosswalk-project.org/).

Tx

mpetroff commented 8 years ago

Do the tiles appear to move relative to each other when panning the scene? This sometimes happens with the CSS 3D transform-based fallback viewer.

Arcens commented 8 years ago

Hello thanx for you answer,

When I load a scene the tiles move during the loading, after they are not in the order, do you have a solution ?

Thanx

mpetroff commented 8 years ago

I'm not sure what you're trying to say. After the panorama loads, do the tiles move strangely when you pan the panorama or do they move as a cube would?