Droplet related questions

Q&A about the latest versions
Post Reply
User avatar
Hrvoje
Posts: 171
Joined: Sat Feb 28, 2009 7:34 pm
Location: Zagreb, Croatia
Contact:

Hello

I'm converting 150ish Flash panoramas into HTML5
For that I created let's call it Master p2vr file and using droplet option.
As output I'm using $n variable, so that it creates separate folder named as image file.

Each image placed in droplet creates folder with these files / folders in it:

images folder
tiles folder
index.html file
pano.xml file
pano2vr_player.js file
skin.js file

Questions:

1. Is it possible to use only one image folder for all panoramas?
Because all the files are the same because all panos are using same skin.

2. Is it possible to use only one pano2vr_player.js file for all panoramas?
- No need to multiply and load the same 220 kb file for each panorama

3. Is it possible to use only one skin.js file for all panoramas?
- No need to multiply and load the same 27 kb file for each panorama

4. Is it possible to include XML file in index.html?
- In my Master.p2vr file in HTML Template settings I've selected Embedded XML, but it still creates it separated.

5. Is it possible to use only one CSS file for all panoramas?

6. I've set $n in Panorama title and panorama comment, but all panoramas created by Droplet have the same Title,
which is Title of Image in Master panorama. Shouldn't Title be taken from $n variable?

Note 1: When creating droplet, I tried with "Save values in project file" and without that checked, and it's always the same.

Note 2: In image settings I tried to use this: ../images it created image externally from $n folder, but after that panos doesn't work.


I'm trying to achieve this:
- To use Droplet to automate most of things.
- To have this folder structure

Panoramas:
Panorama_001 folder
Panorama_002 folder
Panorama_003 folder
...
Shared resources:
images folder
pano2vr_player.js
skin.js
style.css

Thanks,
Regards

I'm usinfg latest Pano2VR
Version: 5.2 beta4 pro 64bit
Revision: 15957/5.7.1
Build date: Jun 21 2017, 16:07:53
User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,

I've set up some test files using the same configuration as you posted. On my server I have a directory that contains; Shared_Resources containing the skin.js, pano2vr_player.js and the images folder. Panorama_001 and _002 containing the index.html and tiles folder.

You can test the files at;

http://tonyredhead.photography/P2VR/For ... orama_001/ and http://tonyredhead.photography/P2VR/For ... orama_002/

The index.html has the following updates;

<link href="../shared_resources/styles.css" rel="stylesheet">
<script type="text/javascript" src="../shared_resources/pano2vr_player.js">
<script type="text/javascript" src="../shared_resources/skin.js">

The skin.js has the following updates;

all references to images/ are now ../shared_resources/images/

As far as I can test the following is possible.
1. Is it possible to use only one image folder for all panoramas?
Because all the files are the same because all panos are using same skin.
Yes, with the changes above
2. Is it possible to use only one pano2vr_player.js file for all panoramas?
- No need to multiply and load the same 220 kb file for each panorama
Yes, with the changes above
3. Is it possible to use only one skin.js file for all panoramas?
- No need to multiply and load the same 27 kb file for each panorama
Yes, with the changes above
4. Is it possible to include XML file in index.html?
- In my Master.p2vr file in HTML Template settings I've selected Embedded XML, but it still creates it separated.
Yes. When I included the XML file in the index.html it did work but it also created a pano.xml file in the output folder. Deleting this file didn't seem to make a difference.
5. Is it possible to use only one CSS file for all panoramas?
Yes, with the changes above.

So as far as I can see you should be able to get it to work and modifying the .ggt file used for the html will reduce the amount of changes you have to make. These are quite simple outputs but as long as the paths are correct it should work.

cheers,

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
IronWagen
Posts: 47
Joined: Mon Nov 30, 2015 4:34 pm

Just like Tony mentioned, you can change the paths in the html.

For the xml you could just change this path in the index.html to fit your needs:

window.addEventListener("load", function() {
pano.readConfigUrlAsync("pano.xml"); //"../shared_resources/pano.xml"
});

This way all of the panos could load it from there and it gets saved into browser cache anyway.
User avatar
Hrvoje
Posts: 171
Joined: Sat Feb 28, 2009 7:34 pm
Location: Zagreb, Croatia
Contact:

Hello

Excellent!

Now I've sorted all and it works as I want:
- Droplet automates pano conversions
-Template speeds up pano transofrmations
- Your suggestion(s) sorts shared resources

Thanks for the suggestions :)
Best Regards
Post Reply