Panoramic Video "Scene"

  • Is it possible to create a Scene with a Panoramic Video as the "image"?
    I've played with this a bit but have gotten nowhere.
    Every time I wrap an image / hotspot pair with a Scene tag the image is flattened out.
    The video plays but the ability to pan around disappears.

    Examples....

    Plays but is flattened:
    <scene name="scene" onstart="">
    <view fov="70" fovmin="30" fovmax="100" />
    <image hfov="360" vfov="180" devices="flash">
    <sphere url="plugin:video" />
    </image>
    <hotspot name="spot_zoombild" style="zoomspot" ath="90" atv="3.2" scale="0.60" zorder="1" />
    </scene>

    Plays as expected with pan-ability:
    <view fov="70" fovmin="30" fovmax="100" />
    <image hfov="360" vfov="180" devices="flash">
    <sphere url="plugin:video" />
    </image>
    <hotspot name="spot_zoombild" style="zoomspot" ath="90" atv="3.2" scale="0.60" zorder="1" />

  • Klaus,

    I have to be missing something basic here.
    But then again maybe not.

    I took the example that comes with the KRPano viewer download, "videointerface", and wrapped the <image> with <scene> opening and closing tags and the 360 video flattens out.
    Just adding the <scene> tags causes this behavior.

    Here is the relevant code from the modified example.

    <!-- define the pano image and get the pano video from the videoplayer plugin (flash only) -->

    <scene name="scene_video" title="Video" onstart="">
    <image hfov="360" vfov="180" devices="flash">
    <sphere url="plugin:video" />
    </image>


    <!-- the startup view settings -->
    <view hlookat="+51" vlookat="0" fov="130" fovtype="HFOV" />
    </scene>

    All I did was add the <scene> tags. Nothing else.
    Once I remove the <scene> tags the 360 video plays as expected.

    What am I missing here? *confused*

  • Hi,

    when you wouldn't load the scene then the there is no pano <image> with the 'plugin:video' reference and so the videoplayer plugin will show the video just normally.

    That means you would also need to put everything else (videoplayer plugin + skin) into the <scene> and then also load that scene.

    Best regards,
    Klaus

  • Hi
    I have similar problems in my project.

    1)
    As descibed, when I dont include the videoplugin and skin into the scene, video flattens out.
    <plugin name="video" ..... />
    <scene name="video_scene" ...>
    <image hfov="360" vfov="180" devices="panovideosupport">
    <sphere url="plugin:video" />
    </image>
    <view hlookat="0" .... />
    <scene>

    2)
    When I include the videoplayer and skin in the <scene> tags I just get a black screen:
    <scene name="video_scene" ...>
    <plugin name="video" ..... />
    <image hfov="360" vfov="180" devices="panovideosupport">
    <sphere url="plugin:video" />
    </image>
    <view hlookat="0" .... />
    <scene>

    3)
    When I use an external xml file (with the structure like decribed in 2) and I will include that scene in my main xml file <include url="../xxx/xxx/video.xml" /> then the video, navigation and hotspots works correcty, but I have a "loading..." message on my screen.

    Cant find a solution for that and happy for help..

    Best
    Peter

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!