Kylsha / panorama_viewer

Plugin for QGIS to view 360-degrees panoramic photos
5 stars 0 forks source link

Error WebGL #2

Open Itinerari opened 2 months ago

Itinerari commented 2 months ago

Hello, I have a critical issue and I hope you can help me. I installed the "PanoramaView" plugin, at first it worked then I formatted my pc and it doesn't work for me anymore. I get this screen, do you know what it depends on?

Waiting for your feedback, I cordially greet you.

Roberto

errore_webGL

Kylsha commented 2 months ago

@Itinerari hi! I thought it could be not properly working on up-to-date versions, but right now tested plugin on QGIS 3.34 version everything works. Also tested it in Windows 10 and have no idea whether it works on Ubuntu or MacOS.

Itinerari commented 2 months ago

@Kylsha Hi :-) The pc I have is a nauta e1502 pro, the S.O. is a Windows 11, version 23H2 and the version of Qgis installed is 3.36.0 Qgis_version

Itinerari commented 2 months ago

@Kylsha then I noticed another thing, if I'm on vpn it tells me the error from before, that is from WebGL, but if I don't have vpn it shows me this output_panoramaview

P.S. I use vpn for work

Kylsha commented 2 months ago

@Itinerari I'll try check QGIS 3.36. Still on Windows 10 but not sure that it matters.

Itinerari commented 2 months ago

@Kylsha I tried searching before I contacted you, and a girl told me to distinstall and then reinstall the plugin (which I had already done) and then advised me to change the user.. which I did but the result does not change profiles_qgis

Kylsha commented 2 months ago

@Itinerari this plugin is using a Panellum js lib. Try opening a simple example of it in browser: https://pannellum.org/documentation/examples/simple-example/. If it works then it may be something with QGIS updates.

Itinerari commented 2 months ago

@Kylsha Confirmed, it works. I tried with 4 different browsers (IE, Opera, Chrome and Firefox). I can see the image example_qgis

Kylsha commented 2 months ago

@Itinerari well, I will try check 3.36 then

Itinerari commented 2 months ago

Hello @Kylsha I talked to a colleague, he has the Qgis 3.32 Lima version and he can see the images. But I ask for your confirmation that it is so

Kylsha commented 2 months ago

@Itinerari Ok, I use even older one, 3.22.5, also works

Itinerari commented 2 months ago

Ok @Kylsha , but i need to know for 3.36.0

Kylsha commented 2 months ago

@Itinerari hi there! I have installed QGIS 3.36 Maidenhead and tested plugin. Everything works file. Tested with a link to a sample panorama picture: https://pannellum.org/images/alma.jpg . I also found a thread with the same problem that you have: https://github.com/mpetroff/pannellum/issues/382. Anyway it looks still strange to me, Qt browser should work with panellum lib with no problems, js and WebGL is turned on by default here as well. After looking for more reasons all I can think about a failure is a picture size/format or some system settings in QGIS.

Itinerari commented 2 months ago

@Kylsha hi, look I also tried uninstalling and then installing Qgis again, but I always get the same error, a few times I also got this immagine but I think it was a momentary thing, because then the same error always appeared immagine (1) I tried to see the problem "https://github.com/mpetroff/pannellum/issues/382" but nothing. Now I also talk inside that issue. Meanwhile I also saw other solutions like "https://stackoverflow.com/questions/40472961/webgl-unavailable-gpu-process-unable-to-boot", "https://superuser.com/questions/836832/how-can-i-enable-webgl-in-my-browser" but they deal with the browser issue. I tried setting but nothing, I think at this point it is a critical issue on the plugin

Kylsha commented 2 months ago

@Itinerari hey there! As I see your first pic in post, I forgot to mention one thing. While plugin is opened, it launch a local server in order to make a job with panellum library. Basically it opens an html page which takes a panoramic photo. During tests I see that it may not work when a localhost server was launched in some way BEFORE opening a plugin.

Itinerari commented 2 months ago

@Kylsha Hi, And how do I make sure that this doesn't happen?

Kylsha commented 2 months ago

@Itinerari localhost server can be launched using any kind of software like Apache, Nginx etc. If you use it, your pc become a server and local files from specifi folder can be accessed from browser. Overall, if you are making some web development, it may messing with plugin. Unfortunately I'm not an experienced web developer and cannot tell for sure what to do. But you may run a command like ping localhost in windows console before working with plugin. If there are responses (usually there are four to test a connection), it means that local server is launched already. Otherwise everything should be okay.

Itinerari commented 2 months ago

@Kylsha Workaround found, I see the image from the browser instead of from Qgis locally. Not the workaround I wanted but at least I can see the images. Thanks, you have been very kind

Kylsha commented 2 months ago

@Itinerari sorry that plugin doesn't work properly. I'd like to know a reason and if I do, plugin will be updated.