Laza,
I just had a chat with Mr. Hüllmandel, the developer of „PanoramaStudio“. I think this relates to the topic if this post here.
########################################################
Hello Mr. Hüllmandel,
It’s me again.
The jAlbum program (or rather "Tiger," the skin I use) offers an option to display 360° panoramas using a special "player." Since I hadn't worked with 360° panoramas before, I hadn't really encountered this option.
However, for the past few weeks, I’ve been using my drone to capture the necessary imagery and then processing it with PanoramaStudio to create 360° panoramas (either as images or HTML exports). So far, so good.
The issue arises when I have both "normal" panoramas (simply very wide images) and 360° panoramas in the
same album. I’ve noticed that jAlbum/Tiger treats the normal panoramas as 360° panoramas, which naturally looks quite "odd" (distorted).
While examining the images' metadata, I noticed that
all of them contain the value "xmp.GPano:ProjectionType=equirectangular."
I asked an AI to explain what "ProjectionType=equirectangular" means.
########################
Quote:
"The metadata field 'ProjectionType=equirectangular' on a photo indicates that the image is in an equirectangular projection format. This projection is a specific type of mapping in which a world map or panorama is displayed such that geographic coordinates (longitude and latitude) are mapped linearly onto the image.
In practice, this projection is frequently used for 360-degree panoramic photos or videos to capture an entire environment within a rectangular image. The equirectangular format allows the panorama to be explored seamlessly using specialized viewer software or virtual reality applications, as it provides a distortion-free representation of the environment surrounding the observer." In short: The field indicates that the photo depicts a special, spherical environment in a flat, rectangular format used for 360-degree views.
########################
Assuming that is correct, it would be incorrect to generate a
standard panorama with “xmp.GPano:ProjectionType=equirectangular”. Is my analysis correct so far?
I created a demo using 4 images:
https://www.markus-drueck.de/public/jAlbum/Pictures/Skin%20Tiger/Panos/index.html
The first image is a standard panorama, yet it is displayed as a 360° panorama by Tiger’s special player—which is incorrect.
The other three panoramas are true 360° panoramas, and they display correctly. Using the jAlbum metadata extractor, I determined the following for the first image:
xmp.GPano:CroppedAreaImageHeightPixels=5113
xmp.GPano:CroppedAreaImageWidthPixels=16026
xmp.GPano:CroppedAreaLeftPixels=9238
xmp.GPano:CroppedAreaTopPixels=5776
xmp.GPano:FullPanoHeightPixels=17253
xmp.GPano:FullPanoWidthPixels=34503
xmp.GPano:PoseHeadingDegrees=0.0
xmp.GPano:ProjectionType=equirectangular
xmp.GPano:StitchingSoftware=PanoramaStudio 4
xmp.GPano:UsePanoramaViewer=True
For the second one:
mp.GPano:CroppedAreaImageHeightPixels=7200
xmp.GPano:CroppedAreaImageWidthPixels=14400
xmp.GPano:CroppedAreaLeftPixels=0
xmp.GPano:CroppedAreaTopPixels=0
xmp.GPano:FullPanoHeightPixels=7200
xmp.GPano:FullPanoWidthPixels=14400
xmp.GPano:ProjectionType=equirectangular
xmp.GPano:UsePanoramaViewer=True
I admit I’m completely in the dark here, but my gut tells me the problem might stem from PanoramaStudio incorrectly setting "ProjectionType=equirectangular"?
In the jAlbum forum, within the "Tiger" subsection, I found the following post by Laza, the creator of "Tiger":
And a little further down, Laza writes:
The normal panorama (horizontal panning) is completely different from 360 ° VR panoramas. In the former case, it is a matter of taste what you mark as a panorama, while in the latter case, these images are specially formatted (8192x4096 pixels) and have the metadata "XMP.projectiontype=equirectangular". This attribute cannot be added by jAlbum; it was probably added by a 3rd-party software. Do you use any software that can insert such metadata?
For me, this supports my theory that "projectiontype=equirectangular" is incorrect for standard panoramas.
Many thanks in advance for your patience and effort.
########################################################
His Answer:
########################################################
Good day Mr. Drück,
No, everything is correct.
jAlbum simply cannot handle partial panoramas.
jAlbum ignores the metadata that defines the image area (all Cropped... attributes).
The Cropped attributes define which part of the entire surroundings of the panorama is shown.
If this is ignored, the display is incorrect, as is the case with jAlbum.
This means that jAlbum can only display full 360x180° panoramas in spherical (equirectangular) projection – nothing smaller.
More precisely: If the values for GPano:CroppedArea... are identical to GPano:FullPanoWidth/Height, the display is correct – however, if the Cropped values define a smaller area, then the display is incorrect because it is not supported by jAlbum.
This means that jAlbum can only display full 360x180° panoramas in spherical (equirectangular) projection – nothing smaller. Even for "normal" panoramas or partial panoramas, the projection is equirectangular.
Panoramas with a field of view of 180° or more simply cannot be displayed in the conventional rectilinear projection (wide-angle shot).
Furthermore, only equirectangular panoramas can be described using the GPano specification, both 360x180° and "normal" ones.
Since the GPano metadata is a Google specification, here is the official specification:
https://developers.google.com/streetview/spherical-metadata?hl=de
Google itself only supports equirectangular projection (therefore, PanoramaStudio only writes the metadata for this projection). However, Google also supports partial panoramas for displaying "normal" panoramas.
``` PanoramaStudio therefore outputs exactly the specification as defined by Google, which allows for the display of both complete 360x180° panoramas and any partial panoramas (those less than 360x180°).
Accordingly, partial panoramas are also displayed correctly by the relevant Google services, the Facebook Panorama Viewer, and other viewers that fully support GPano metadata.
jAlbum apparently cannot.
The normal panorama (horizontal panning) is completely different from 360° VR panoramas. In the former case, it is a matter of taste what you mark as a panorama, while in the latter case, these images are specially formatted (8192x4096 pixels) and have the metadata "XMP.projectiontype=equirectangular". This attribute cannot be added by jAlbum; it was probably added by third-party software. Do you use any software that can insert such metadata?
That's unfortunately incorrect.
Apparently, by "normal panorama" he means a partial panorama.
A partial panorama is always a section of a complete 360° panorama.
As described in the specification, only "XMP.projectiontype=equirectangular" is currently supported as the XMP.projectiontype.
This means that
all panoramas have equirectangular projection—even "normal" panoramas—and the cropped area is defined in the Cropped... attributes.
Sincerely, Tobias Hüllmandel
########################################################
Laza, what do you think, do you agree with Mr. Hüllmandel? If yes, can you do anything about it to fix this in Tiger? If you need any example source images, please let me know.
Thanks in advance.