PanoSalado.xml for one solid image panos

So I downloaded the example and really think it's neet. I noticed that in the images folder their are other examples that don't get used. for example the one that's located in \images\cyl_060702_chagallmosaic.jpg

How would the PanoSalado.xml look for a pano that just used one image?

re: PanoSalado.xml for one solid image panos

Hi there:

You'd just need to have the one  space element... From the example, you could just remove all the  spaces except for the first one.

 
<space id="defaultSpace">
        <cube id="pano_1" segments="16">
          <file face="front">files/Panos/files_000/default.jpg</file>
          <file face="right">files/Panos/files_000/default.jpg</file>
          <file face="back">files/Panos/files_000/default.jpg</file>
          <file face="left">files/Panos/files_000/default.jpg</file>
          <file face="top">files/Panos/files_000/default.jpg</file>
          <file face="bottom">files/Panos/files_000/default.jpg</file>
       </cube>
</space>
 

(along with all the other XML)

__________________

Patrick Cheatham
Forum Administrator

Thank you!

Thank you!

I'm sorry, I'm not having

I'm sorry, I'm not having any luck getting it to look right.

So I downloaded the example and change the xml file to look like this. I get it to load but the results look like junk. I've tried to play with the settings to get it to look correct but nothing I do seems to help it. Can someone tell me what I needs to change in order for it to look better. I think that half of it is due to it wrapping the image from the very top. If I could tell it not to do that it might help.

XML FILE STARTS ------------------------------------------

<blockcode>
<PanoSalado>
        <layer id="Interface" url="UserInterface.swf" depth="1"/>
        <layer id="PanoSalado" url="PanoSalado.swf" depth="0">
<!--// parameter attributes set in the spaces element can be overridden in the individual space elements //-->
                <spaces

                        onStart="loadSpace:preview"

                        cameraRetainsLastValues="false"
                        cameraZoom="5"
                        cameraFocus="75"
                        cameraZoomIncrement="0.2"
                        cameraKeyIncrement="75"
                        cameraSensitivity="60"
                        cameraFriction="0.2"
                        cameraRestThreshold="0.0001"
                        cameraMinimumZoom="4"
                        cameraMaximumZoom="8"
                       
                        autorotator="false"
                        autorotatorIncrement="0.25"
                        autorotatorDelay="15000"
                       
                        dynamicQualityAdjustment="true"
                       
                        preciseOnAcceleration="true"
                        precisionOnAcceleration="4"
                        smoothOnAcceleration="false"
                       
                        preciseOnDeceleration="true"
                        precisionOnDeceleration="4"
                        smoothOnDeceleration="true"
                       
                        preciseAtRest="true"
                        precisionAtRest="1"
                        smoothAtRest="true"
                >
                        <space id="preview"
                                label="preview"
                                interactive="false"
                                segments="6"
                                transition="tween:currentSpace.viewport.alpha from 0 over 1.5 seconds using Expo.easeInOut"
                                onTransitionEnd="loadSpace:concert1"
                        >

                                <sphere id="preview_pano">
                                        <file>images/cyl_060702_chagallmosaic/1.jpg</file>
                                </sphere>
                               
                        </space>

                        <space id="concert1"
                                label="concert1"
                                interactive="true"
                                segments="16"
                                transition="tween:currentSpace.viewport.alpha from 0 over 1.5 seconds using Expo.easeIn"
                                onTransitionEnd="removeLastSpace"
                                smoothOnAcceleration="true"
                        >

<space id="concert1_pano">
          <file face="front">images/cyl_060702_chagallmosaic/1.jpg</file>
          <file face="right">images/cyl_060702_chagallmosaic/1.jpg</file>
          <file face="back">images/cyl_060702_chagallmosaic/1.jpg</file>
          <file face="left">images/cyl_060702_chagallmosaic/1.jpg</file>
          <file face="top">images/cyl_060702_chagallmosaic/1.jpg</file>
          <file face="bottom">images/cyl_060702_chagallmosaic/1.jpg</file>
</space>                               
                                <hotspot id="toConcert2"
                                        useHandCursor="true"
                                        pan="-20"
                                        tilt="-10"
                                        segments="2"
                                        oneSide="false"
                                        smooth="true"
                                        onClick="loadSpace:preview2"
                                >

                                        <file>graphics/hotspot.png</file>
                                </hotspot>
                        </space>
                        <space id="preview2"
label="preview2"
                                interactive="0"
                                cameraPan="60"
                                cameraTilt="10"
                                transition="tween:currentSpace.viewport.alpha from 0 over 1.5 seconds using Expo.easeIn"
                                onTransitionEnd="removeLastSpace;loadSpace:concert2"
                        >

                                <sphere id="preview_pano2">
                                        <file>images/cyl_060702_chagallmosaic/1.jpg</file>
                                </sphere>
                               
                        </space>

<!--// QTVR //-->
                        <space id="qtvr_preview"
label="qtvr-preview"
                                interactive="0"
                                transition="tween:currentSpace.viewport.alpha from 0 over 3 seconds using Expo.easeInOut"
                                onTransitionEnd="loadSpace:qtvr_fullres"
                        >

                                <qtvr id="qtvr_preview_pano" applyCameraSettingsFromThisQTVR="true">
                                        <mov>PSQTVRPreviewParse.php?mov=images/qtvr_lgphoto/20070824_LG.mov</mov>
                                </qtvr>
                               
                        </space>
                        <space id="qtvr_fullres"
label="qtvr"
                                interactive="0"
                                transition="tween:currentSpace.viewport.alpha from 0 over 3 seconds using Expo.easeInOut"
                        >

                                <qtvr id="qtvr_fullres_pano" applyCameraSettingsFromThisQTVR="true">
                                        <mov>PSQTVRParse.php?mov=images/qtvr_lgphoto/20070824_LG.mov</mov>
                                </qtvr>
                               
                        </space>

                </spaces>
       
        </layer>
</PanoSalado>
</blockcode>

re: PanoSalado.xml for one solid image panos

I think where you have this:

 <space id="concert1_pano">
          <file face="front">images/cyl_060702_chagallmosaic/1.jpg</file>
          <file face="right">images/cyl_060702_chagallmosaic/1.jpg</file>
          <file face="back">images/cyl_060702_chagallmosaic/1.jpg</file>
          <file face="left">images/cyl_060702_chagallmosaic/1.jpg</file>
          <file face="top">images/cyl_060702_chagallmosaic/1.jpg</file>
          <file face="bottom">images/cyl_060702_chagallmosaic/1.jpg</file>
</space>              

You want:

 <cube id="concert1_pano">
          <file face="front">images/cyl_060702_chagallmosaic/1.jpg</file>
          <file face="right">images/cyl_060702_chagallmosaic/1.jpg</file>
          <file face="back">images/cyl_060702_chagallmosaic/1.jpg</file>
          <file face="left">images/cyl_060702_chagallmosaic/1.jpg</file>
          <file face="top">images/cyl_060702_chagallmosaic/1.jpg</file>
          <file face="bottom">images/cyl_060702_chagallmosaic/1.jpg</file>
</cube>              

But, the "1.jpg" is a cylinder and not a cube face, so you're ending up with 6 cylinders hanging around. Try using the cube faces instead! Smile

__________________

Patrick Cheatham
Forum Administrator