Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
voyezvousca
Experienced
Topic Author
Posts: 83
Joined: 27 Mar 2011, 11:21

Cylindrical panorama

15 Feb 2019, 07:36

Hi !

I'm "testing" a cylindrical 180° panorama with pano2vr.
So in export, i have this architecture : 
cf_0 -> l_x -> c_x
cf_1 -> l_x -> c_x
cf_2 -> l_x -> c_x
....etc

I don't know if possible, but it's a mix of a flat format and 360° panorama. I have this result in x3: https://portfolio.voyezvousca.fr/portfo ... pano=carry

And look at pano2vr : https://portfolio.voyezvousca.fr/demo2/
Code
<?xml version="1.0" encoding="UTF-8"?>
<panorama id="node1" apprev="17253">
  <input width="11622" leveltilesize="510" levelbias="0.400" levelingpitch="0" height="11622" overlap="1" levelingroll="0" levelbiashidpi="1.000" leveltileurl="tiles/node1/cf_%c/l_%l/c_%x/tile_%y.jpg">
    <level width="11622" height="11622" preload="0" predecode="0"/>
    <level width="5811" height="5811" preload="0" predecode="0"/>
    <level width="2905" height="2905" preload="0" predecode="0"/>
    <level width="1452" height="1452" preload="0" predecode="0"/>
    <level width="726" height="726" preload="0" predecode="0"/>
    <level width="363" height="363" preload="1" predecode="1"/>
    <preview color="0x808080" strip="1"/>
  </input>
  <view fovmode="0" pannorth="0">
    <start tilt="0" projection="4" pan="0" fov="70"/>
    <flyin tilt="-90" projection="9" pan="0" fov="170"/>
    <min tilt="-32.3342" pan="-90" fovpixel="2"/>
    <max tilt="32.3342" fovfisheye="360" pan="90" fov="120" fovstereographic="270"/>
  </view>
  <userdata tags="pano" description="" copyright="Tout droits reserves" source="" longitude="" info="" datetime="09/02/2019 17:57" title="" author="V.V.C-PHOTOGRAPHIE" comment="" customnodeid="" latitude=""/>
  <hotspots width="180" height="20" wordwrap="1">
    <label width="180" bordercolor="0x000000" backgroundalpha="1" borderalpha="1" height="20" background="1" textalpha="1" borderradius="1" wordwrap="1" enabled="1" backgroundcolor="0xffffff" textcolor="0x000000" border="1"/>
    <polystyle bordercolor="0x0000ff" backgroundalpha="0.2509803921568627" borderalpha="1" mode="0" handcursor="1" backgroundcolor="0x0000ff"/>
  </hotspots>
  <media/>
  <transition zoomin="0" zoomout="0" zoomspeed="2" zoomfov="20" softedge="0" blendcolor="0x000000" type="crossdissolve" zoomoutpause="1" enabled="1" blendtime="1"/>
  <animation syncanimationwithvideo="0" useinautorotation="0" animsequence="Animation01"/>
  <control lockedwheel="0" contextprojections="0" sensitivity="8" invertcontrol="1" lockedmouse="0" lockedkeyboardzoom="0" speedwheel="1" invertwheel="0" simulatemass="1" lockedkeyboard="0" dblclickfullscreen="0" contextfullscreen="1" rubberband="0" hideabout="0"/>
</panorama>
Do you think that is possible to have the same look with pano2vr?



Thank you in advance !
My website using x3 : https://bit.ly/2EMEmNq
« La photographie est une brève complicité entre la prévoyance et le hasard. »
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Cylindrical panorama

15 Feb 2019, 10:39

voyezvousca wrote:And look at pano2vr : https://portfolio.voyezvousca.fr/demo2/
This is basically a PARTIAL CYLINDRICAL format. It would require the same render mechanisms as spherical panoramas (cube/equirectangular), except it would need to include a vertical limiter (to limit vertical movement, eg. the difference between "cylindrical" and "spherical"), and a horizontal limiter (to limit horizontal movement, eg "partial").

Unfortunately, the underlying Marzipano renderer doesn't seem to support cylindrical panoramas. And since it's "partial", it would be even more complicated.
https://github.com/google/marzipano/issues/180
voyezvousca wrote:I don't know if possible, but it's a mix of a flat format and 360° panorama. I have this result in x3: https://portfolio.voyezvousca.fr/portfo ... pano=carry
I see. Since X3 thinks it's "flat", it just rendering the tiles as flat. Unfortunately, it can't just translate this into partial cylindrical format view. It was a lot of work in the first place to try to get X3 to work with native pano2vr/krpano exports, but this is currently reserved for FLAT panoramas only.

We already added pitch_min and pitch_max settings to the panorama plugin, which allows you to LIMIT the vertical view of a spherical panorama. Technically, this would allow you to create a 2:1 format from your source, with black areas top and bottom, and simply limit the viewer so that these areas are not visible. That is basically a hack to support "cylindrical" panoramas. However, to support "partial" cylindrical panoramas, it would require more work to prepare your source, and we would need to include yaw_min and yaw_max options to limit the horizontal movement.

All in all, not worth it. For now, X3 simply doesn't support partial cylindrical format. Certainly not when exported from another tool for it's own viewer. Maybe in the future!
voyezvousca wrote:And look at pano2vr : https://portfolio.voyezvousca.fr/demo2/
For now, if you want to include unsupported projects like this into X3, you would need to keep pano2vr. You can easily open the link above in an X3 popup, which would make it feel like it's integrated directly into your website. Let me know if you need advice about this.
 
User avatar
voyezvousca
Experienced
Topic Author
Posts: 83
Joined: 27 Mar 2011, 11:21

Re: Cylindrical panorama

16 Feb 2019, 11:11

Hi,

thank you for the explanations ! I undertsant better now. I will test something with the link source :)
My website using x3 : https://bit.ly/2EMEmNq
« La photographie est une brève complicité entre la prévoyance et le hasard. »