Embed multiple panos in a web page using PTGuiViewer

367 views
Skip to first unread message

Prusiano

unread,
Jun 12, 2012, 8:31:49 AM6/12/12
to PTGui Support
Hi, Folks,

This is one my first messages in a forum, so you can say I am a total
forum rookie. I am an accomplised forum reader, though.

I usually solve all my doubts by searching in forums (using the search
button as albinoblacksheep people taught me: http://www.albinoblacksheep.com/flash/posting
).
But I can't find an answer to my questions this time.

I have been creating 360x180 panos for years, and I have my own
webpage to display them: www.360vision.es
I use "Flash Panorama Player" to display the panos in it. But, how its
name implies quite strongly, it is based in Flash.
Nobody can surf my web if they are using Apple phones o tablets.
(Thanks, Steve!)

Besides, the "Flash Panorama Player" I use is quite messy, and I
hardly update my page because of its poor usability.


When I updated to PTGUI 9.1.3 pro I discovered the "Publish to
Website" feature and I decided to give it a try.


It works nicely, and I can browse my web in my iPhone if I open the
very .htm file the PTGui produces.
http://360vision.es/ParkingA.htm

I can browse a page with a pano embedded in it in my desktop PC, but
the embedded image can't be played in an Iphone.
http://360vision.es/AAAA.html

And I can't embed several panos in one page, as I used to with my old
"Flash Panorama Player".
http://360vision.es/galeriae.html


Do you know if PTGui viewer permits to embed more than one pano in a
single web page?
If so, could you give me the code to insert in the HTML file of the
page, please?
Do you know how to embed a pano in a page so that iPhones and iPads
can see the embedded pano?

I am asking about PTGui Viewer specifically. I am well aware that
there is "other software" around. I am an user of that "other
software", in fact, and I would like to move into PTGui Viewer.


Thanks in advance, Guys.

PTGui Support

unread,
Jun 12, 2012, 9:13:38 AM6/12/12
to pt...@googlegroups.com
Hi,

This code would embed two separate viewers in a single web page:

---------------------------------
var viewer1=new PTGuiViewer();
viewer1.setVars({
...
});
viewer1.embed("mypanoviewer1");

var viewer2=new PTGuiViewer();
viewer2.setVars({
...
});
viewer2.embed("mypanoviewer2");

...

<div id="mypanoviewer1"></div>
<div id="mypanoviewer2"></div>
---------------------------------

But I don't think it's a good idea, you'll quickly run into memory
limitations when showing more than one panorama on mobile devices.

Instead, using the Lightbox functionality might be a better idea. See:
http://www.ptgui.com/examples/louvreweb/lightbox.html

Joost

Prusiano

unread,
Jun 12, 2012, 9:31:35 AM6/12/12
to PTGui Support
Thank you for your answer.

I had already tried a (loosely) similar approach, but not being an
expert It didn't work.

I have given a quick try to your anser and it didn't work either, but
I'll keep trying and I am sure It will eventually work.




One little question:

This part goes in the head section, doesn't it?

"var viewer1=new PTGuiViewer();
viewer1.setVars({
...
});

viewer1.embed("mypanoviewer1");
var viewer2=new PTGuiViewer();
viewer2.setVars({
...
});

viewer2.embed("mypanoviewer2"); "





I had not thought about the memory issues concerning multiple panos in
mobile devices...
You are right.

I will have to consider other approach, as you say.

Thanks again!

PTGui Support

unread,
Jun 12, 2012, 9:38:11 AM6/12/12
to pt...@googlegroups.com
On 12-6-2012 15:31, Prusiano wrote:
> Thank you for your answer.
>
> I had already tried a (loosely) similar approach, but not being an
> expert It didn't work.

Be sure to check the error console of your browser, it might tell you
what is wrong.

> One little question:
>
> This part goes in the head section, doesn't it?

Yes.

Joost

Prusiano

unread,
Jun 12, 2012, 10:30:18 AM6/12/12
to PTGui Support
Thanks once more!

It works indeed, http://360vision.es/AAAAA.html

It shows FIVE embedded panoramas, but it gets stuck easily and you
have to refresh.



But it only works in my desktop PC, not in my iPhone. Not even with
only one pano enbedded. I Do not know Why :(


Thanks again!

PTGui Support

unread,
Jun 13, 2012, 9:39:58 AM6/13/12
to pt...@googlegroups.com
On 12-6-2012 16:30, Prusiano wrote:
> But it only works in my desktop PC, not in my iPhone. Not even with
> only one pano enbedded. I Do not know Why :(

As I said mobile devices don't have enough memory to show multiple
panoramas simultaneously. Even a PC will struggle if you embed 5
panoramas on a single web page.

Joost

Prusiano

unread,
Jun 14, 2012, 10:26:04 AM6/14/12
to pt...@googlegroups.com
In former posts, Joost and I agreed that embedding more than one pano in a web page using PTGui player can overload even a powerful desktop PC, let alone iPhones and iPads. Therefore, PTGui player can't be used to embed more than one interactive pano ("interactive thumbnails").


I have decided to keep using my good old Flash Panorama Player to embed more than one pano per page (lets call them "interactive thumbnails"). I'll be able to display more than one embedded pano in a single page in any device but iPhones and iPads. 

However, whenever Flash panorama player detects Flash player under v6 (or no flash player at all), it used to offer a link to download Flash. I have changed the link and when flash is old or there is no Flash, the browser now shows a static thumbnail of the pano that links to the PTGUI player. When that link is clicked, the interactive PTGUI-player version of the pano is displayed in the browser.

The only drawback ot this approach is that more processing time is needed to create both "Flash Panorama Player" and "PTGUI player" versions of the panos and both will have to be uploaded to and stored in the server

Anyway, by doing this, I can display multiple embedded interactive panos in most computers and I can show static Thumbnails in iPhones. Those Thumnails redirect to non flash interactive panos that can be seen in iPhones and iPads.

It must be noted that in regular computers able to play flash files, the "interactive thumbnails" can lead both to "Flash Panorama Player" pano (lighter and faster) or to "PTGUI player" pano (heavier but more customizable), depending only in the link you attach. See Examples below:
http://360vision.es/Renault/BBB.html.html All the links lead to "Flash Panorama Player" full screen versions,
http://360vision.es/Renault/BBBB.html All the links lead to "PTGUI player" full screen versions, 
http://360vision.es/Renault/BBBBB.html Offers both "Flash Panorama Player" and "PTGUI player" full scren versions



I have reached this conclusion after testing PTGUI player for days: the images it produces are outstanding, but too heavy. From My point of view, the fact that the 15 images produced by PTGUI overlap quite a bit, strains unnecessarily both the RAM and the internet connection. There may be other reasons beside this, though.

Flash Panorama Player Uses only six images that don't overlap, so no memory is wasted in duplicate data.


BTW: Can anyone recommend software to display EQUIRECTANGULAR panos (not cubes, not 15-image tiles like PTGui) in a web browser (both embedded and full screen), both in Flash-able compuers and in iPhones/iPads?


Thanks Again
Reply all
Reply to author
Forward
0 new messages