HomefieldOfView | SPi-V dev

Navigation

user

How To For Cylindricals

Just downloaded the latest engine.
This is something that's been bugging me for about a year...
In simple mode, everything is ok and simple.
However, I'd like to use an xml for autopan etc.

Is there a way to specify in the xml file the projection type and have it set the tilt limits automatically like in simple mode?
Because otherwise, you get the hall of mirrors.

example
http://www.seeit360.net/sw/

thanks

Re: How To For Cylindricals

try to work with this code:

<scene id="scene1">

<meta>
      <cameralimits
        panmin="-180" panmax="180"
        tiltmin="-17" tiltmax="17"
        fovmin="15"  fovmax="36" />
    </meta>

Karol

Re: How To For Cylindricals

or better yet:

<tour>
  <global>
    <meta>
      <title>SPi-V panorama</title>
    </meta>
  <uigroup src="scripts/toolbar.xml"/>
  <uigroup src="scripts/autopan.xml"/>
  </global>

  <scene id="scene_panoramic.jpg">
    <meta>
      <cameralimits panoelement="pano_panoramic" />
    </meta>
    <panoelement id="pano_panoramic" image="image_panoramic.jpg" type="cylindrical" enabled="true" />
    <image id="image_panoramic.jpg">
      <layer class="base" type="bitmap" src="taboga.jpg"/>
    </image>
  </scene>
</tour>

By using the panoelement="" attribute of the cameralimits node, the pan/tilt limits are automatically generated from the specified panoelement.

Re: How To For Cylindricals

Perfect, and type is found automatically when ommitted so its 10 second fix for my php.

Thank you very much.

Sacha Griffin
Southern Digital Solutions LLC
http://www.seeit360.net
404-551-4275