You are not logged in.

1

Thursday, May 5th 2011, 7:55am

Loading specific scene within a single XML file from HTML page + Plus want to protect

OK,
I have setup a single webpage that has a window (for viewing pano), and thumbnails for choosing the pano to load into the window.
My original design has each pano in it's own directory, with its own xml and swf. The HTML embedded section calls each tour xml and swf from its own directory as the user clicks a thumbnail. All works great
http://www.lush.360rama.com

But I want to reduce file size, and protect the tour (Not a whole bunch of them).

So I was thinking there must be a way to load the xml file and point to a specific scene in that xml when calling from HTML rather than load the 1st scene called by the "startup" action.
Something like this:
embedpano({swf:"lushgc.swf", xml:"lushgc.xml", "scene:"scene_lush", target:"item2"});

I'm sure there's a better way than what I am thinking here, but this seems like it would be the easiest.

Tony

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Thursday, May 5th 2011, 5:12pm

You don't have any custom xml and I don't think someone its going to piece together your images to steal them so I wouldn't worry too much...
Adjust as necessary.

html
var startscene = 0;
viewer.addVariable("startscene", startscene);

xml
<action name="startup">
ifnot (startscene === null,
loadscene(get(scene[%startscene].name),null,MERGE);
,
loadscene(get(scene[0].name),null,MERGE);
);
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

3

Friday, May 6th 2011, 5:30am

You don't have any custom xml and I don't think someone its going to piece together your images to steal them so I wouldn't worry too much...
Adjust as necessary.


Definitely not worried about the images or xml but...
Unless I misunderstand some of the purpose of protecting, my intention is to avoid having my licensed krpano.swf from being misused... specifically by known Thai counterparts. As far as xml, I am only just beginning to flirt with disaster :) I have much to learn.

Thanks for the advice on the html and programming!

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

4

Friday, May 6th 2011, 6:21am

You cant protect your license if you want to serve html5. There is no encryption yet.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

Similar threads