Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
GeoPal
Experienced
Topic Author
Posts: 212
Joined: 20 Dec 2007, 12:56

Few things

22 Feb 2019, 03:30

Hello Karl,
Thanks again for the effort to make life easier and more beautiful!
Here is a 360 panorama from Iran, Aminoddoleh Caravansary 
Kashan, Iran
I had to disable autorotate, because on sharp and higher res images it gives flicker when autorotating. Anyway!
My suggestion- to change the cursor when a pano is opened in the native player with a "hand" icon, so the user knows this is different and have to do something (this in case there is no autorotate).
Is this the code one could use to insert picture, then text, then again picture, e.g. panorama? When I want to tell a story with panoramas?
Code
<a href="#" data-embed-modal="http://panoramaURL/"><img src="{{path}}panoramafile.jpg" alt="" /></a>
Will this detect a panorama with enabled pano plugin or just open the 2:1 equi photo?

p.s. I had problems using the panel on mobile android 8 phone- could not edit text in post- it underlined and multiplied words many times, it might be something enabled in my phone as autocorrect or complete, but wasn't anything I have seen. If someone wants to test also will be great.

Thanks again, G
 
User avatar
mjau-mjau
X3 Wizard
Posts: 12620
Joined: 30 Sep 2006, 03:37

Re: Few things

22 Feb 2019, 03:58

GeoPal wrote:Here is a 360 panorama from Iran, Aminoddoleh Caravansary 
Kashan, Iran
Really cool. This panorama also has great a vertical view.
GeoPal wrote:I had to disable autorotate, because on sharp and higher res images it gives flicker when autorotating. Anyway!
Yes, I can imagine this may happen with highly textured backgrounds. Keep in mind, it probably only happens for some resolutions and screen refresh rates. For example, here on my macbook retina 13" (2560 x 1600), autorotate is smooth and without flickering.
GeoPal wrote:My suggestion- to change the cursor when a pano is opened in the native player with a "hand" icon, so the user knows this is different and have to do something (this in case there is no autorotate).
I was trying to do this, but it crashed with some Marzipano native behavior. I will look into it again.
GeoPal wrote:Is this the code one could use to insert picture, then text, then again picture, e.g. panorama? When I want to tell a story with panoramas?
Code
<a href="#" data-embed-modal="http://panoramaURL/"><img src="{{path}}panoramafile.jpg" alt="" /></a>
Will this detect a panorama with enabled pano plugin or just open the 2:1 equi photo?
No. You need to use data-panorama, not data-embed-modal. At it's most basic, for an equirectangular source, you could simply use:
Code
<a href="{{path}}source.jpg" data-panorama="width=8192"><img src="{{path}}lowres.jpg" alt=""></a>
Why width? Because X3 cannot know the width and height of your panoramas that are added to custom content, and this is required for correct rendering in the viewer. If you were using 4096 px, you could leave data-panorama empty, because 4096 is default.
Code
data-panorama="source={{path}}source_8k.jpg&pitch=-0.03"
For more parameters, see the original panorama post:
viewtopic.php?f=51&t=9677
 
User avatar
GeoPal
Experienced
Topic Author
Posts: 212
Joined: 20 Dec 2007, 12:56

Re: Few things

22 Feb 2019, 04:42

Thank you Karl!
Also wanted to ask abouyt minFOV and maxFOV? About this pano, it has a great dome and I want to be able to zoom out a bit more. I am ok not being able to zoom in restricted by file size/resolution e.g. 100%, but zooming out a bit would be great. Is there a way to achieve this?
About data-panorama, I could set default 8196 px and again skip width?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 12620
Joined: 30 Sep 2006, 03:37

Re: Few things

22 Feb 2019, 05:10

GeoPal wrote:Also wanted to ask abouyt minFOV and maxFOV? About this pano, it has a great dome and I want to be able to zoom out a bit more. I am ok not being able to zoom in restricted by file size/resolution e.g. 100%, but zooming out a bit would be great. Is there a way to achieve this?
This is probably more complicated than you imagine. Zoom, maxres and FOV are all tied in with the current DISPLAY resolution. For instance, an 8K equirect is unlikely to allow zoom on a 4K screen, because there is no more zoom available without causing grainy images. It's similar to viewing a normal image ... For instance, a 2048 px image will allow 2x zoom on a 1024 px display, while a 2048 screen would not allow further zoom.

In your case, you want to provide more zoom "out". Try to increase the maxVFov to 2 or 3. The final result will depend on the resolution and aspect of the screen. I was trying to figure out best defaults for these settings, but it's all "theory", so I stuck to safe defaults.
GeoPal wrote:About data-panorama, I could set default 8196 px and again skip width?
No, you would have to set width=8192, and height will be calculated automatically. You can only omit the width if the image is 4096 px, because that is what we anticipate as a default. When using the GALLERY mode, we can detect width automatically, but not in your custom html content.
 
User avatar
GeoPal
Experienced
Topic Author
Posts: 212
Joined: 20 Dec 2007, 12:56

Re: Few things

22 Feb 2019, 05:35

maxVFOV=2.25 did the trick for me, thanks!