You are not logged in.

> The forum rules have been updated. Please take a moment to read them.


#1 2012-07-12 14:20:05

mkintner
Member
From: Olean, New York
Registered: 2011-08-30
Posts: 30
Website

HELP: BUG found in Pano Tour Pro with External Paramaters

Can we make this fix in the next release!

GOAL:  Setup a HTML file to send parameters into the XML file on load.  The goal was to setup multiple HTML files to load different default panos upon load.  In the HTML file I would use a parameter called startup and add its variable to the viewer in the inital startup script.  Discovered multiple issues when trying to perform this task.

PROBLEM: It appears to be a bug in the KOLOR generate SWL file and produces this error.  FATAL: %$startup% - loading error (IO Error)   This may be because KOLOR has turned on "disable external parameters" but I can't seem to find this.

TEMP RESOLUTION NOT PERFECT AND STILL PROBLEMS: I downloaded the new krpano.swf file and it worked however now I have licensing issue because I purchased the PANO TOUR PRO through KOLOR.

SUGGESTION: I noticed in all the KOLOR code generation they are NOT using createPanoViewer.  This is a problem because if you want to add your own custom work such as variables you can't.  Instead KOLOR creates the inital pano via embedpano (see below)

Code:

<script>
  embedpano({target:"panoDIV",swf:"Test100Year.swf",wmode:"transparent"});
</script>

and limits your ability to customize your tour.  When instead it should follow krpano direction of:

Code:

<script>
   var viewer = createPanoViewer({swf:"Test100Year.swf",target:"panoDIV",wmode:"transparent"});
   viewer.addVariable("startup", "Test100Year0.xml");
   viewer.embed();
</script>

Then in the startup XML file Test100Year.xml you can add the variable and all would be fine:

Code:

  <!--************** Open the first pano ********************************************************-->
  <!--*** <include url="Test100Year0.xml"/>
  <include url="%$startup%"/>

Another option may be that KOLOR has turned on "disable external parameters" but I can't seem to find this.

Any help PLEASE, because I am right in the middle of a huge project and this limit is causing some big issues. 

Thank you in advance for your help.  smile

Offline

 

#2 2012-07-12 15:37:14

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9709
Website

Re: HELP: BUG found in Pano Tour Pro with External Paramaters

mkintner wrote:

TEMP RESOLUTION NOT PERFECT AND STILL PROBLEMS: I downloaded the new krpano.swf file and it worked however now I have licensing issue because I purchased the PANO TOUR PRO through KOLOR.

There is no problem - just export the krpano license from PTP using Help/Licenses.


Uploaded Images


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Offline

 

#3 2012-07-12 15:39:11

bdd
Administrator
Registered: 2011-01-18
Posts: 621
Website

Re: HELP: BUG found in Pano Tour Pro with External Paramaters

Hello,

embedPano vs createPanoViewer
The 2 default HTML templates are there as samples.
You can create as many HTML template as you want.
Just choose the "Edit/Open Templates Directory" menu entry in Panotour Pro.
Then create your own template by copying one of our html web page and one of its subdirectory.
The subdirectory should have same name as the html file. Its content will be copied by Panotour Pro in the tour directory.

add variables to a viewer
To be able to add external variables to a viewer you need to restrict the usage of your player to one (or some) domain(s).
Use the "Restricted domains" field in the "Project Properties" tab.

Load a specific pano at start
You are right, to be able to load a specific pano at start you'll have to remove the  line

Code:

<include url="Test100Year0.xml"/>

But if you want to load the pano that is in your "startup" variable, just add a call to loadpano in the action : "startaction" :

Code:

<krpano version="1.0.8.14" logkey="false" onstart="startaction">
    <action name="startaction">
                [...]
        loadpano(get(startup),NULL,NULL,BLEND(1));
    </action>

Be aware that many Panotour Pro "start" features will not be available (Little Planet, Splash Screen, etc...), because in 1.8 version of PTP, some start code is written in the XML file of the first panorama.
This part should be fixed in the 2.0 version of PTP.


Gérald

Offline

 

#4 2012-10-30 09:48:53

d1ufo
New member
Registered: 2012-10-30
Posts: 1

Re: HELP: BUG found in Pano Tour Pro with External Paramaters

Hi bdd,

I did everything you said in the post before but its still not working. I typed in the restricted adress and exported the panorama. Modified the virtualtour.xml and the virtualtour.html but its not working. Kinda confusing.

Here ist the html:

<script src="swfobject/swfkrpano.js"></script>
  <div id="container">
    <h1>Project : virtualtour</h1>
      <div id="panoDIV" style="height:90%;">
  <script>
   var viewer = createPanoViewer({swf:"virtualtorswf",target:"panoDIV"});
   viewer.addVariable("start", "virtualtour0.xml");
   viewer.embed();
</script>

And here the xml:
<?xml version="1.0" encoding="UTF-8"?>
<!-- for xml compliance -->
<!-- Generated By Kolor Panotour 1.8.0 -->
<krpano version="1.0.8.14" logkey="false" onstart="startaction">
    <action name="startaction">
        loadpano(get(start),NULL,NULL,BLEND(1));
    </action>
    <action name="mainloadpano">
        closepanoobjects();
        ifnot(stopSequence === undefined,interruptAnimation()wink;
        loadpano(%1,NULL,NULL,BLEND(1));
    </action>
    <plugin name="gyro" url="virtualtourdata/graphics/gyro.js" devices="ipad|iphone" keep="true" enabled="true"/>
    <!--************** KrPano Pluginsund Daten ****************************************************-->
    <plugin name="data" firstPanoHasBeenPlayed="false" soundOn="true" keep="true"/>
    <!--************** Das erste Pano öffnen ******************************************************-->

What am I doing wrong? Pse help

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson