cazitouni / QgisGLViewer

A simple streetview-like Qgis plugin for equirectangular image visualisation
GNU Affero General Public License v3.0
12 stars 2 forks source link

Handling RGBA images in 360 #7

Open andrewsongj opened 1 year ago

andrewsongj commented 1 year ago

Hi,

I am using the plugin and I noticed that the 360 view for an RGBA image is black and white and distorted for some images For example MicrosoftTeams-image I was able to get them to view properly by checking the image.mode property for the image object opened by PIL to check for RGB or RGBA, and accordingly, using GL_RGB or GL_RGBA as the argument to the glTexImage2D method, but thought you might want to take a look

cazitouni commented 1 year ago

Hello @andrewsongj,

Thanks for the feedback I didn't notice because all the datasets I've used are in RGB. If you already have the solution do not hesitate to sumbit a PR.

Every contribution are welcomed.

In the meantime I reopen the issue.

Thanks, Regards, Clément.

ar-siddiqui commented 1 year ago

@cazitouni Andrew's teammate here.

We have a solution, we will post a link once we open-source our work. Thanks.

cazitouni commented 12 months ago

Hello @ar-siddiqui,

I'm glad you found a soplution, do not hesitate to inform me or make a PR When you're ready !