You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Boubou

Trainee

  • "Boubou" started this thread

Posts: 67

Location: Paris

Occupation: Photographer

  • Send private message

1

Friday, August 19th 2011, 11:58am

[Solved] Play two panoramas simultaneously

I would like to have two panoramas side by side in the same window (eg. summer/winter)...
An idea of ​​how to achieve this?
Thanks a lot to help me ;-)

This post has been edited 1 times, last edit by "Boubou" (Aug 22nd 2011, 6:42pm)


jpdeglet69

Intermediate

Posts: 212

Location: France

Occupation: VR Maker and Document Management Expert

  • Send private message

2

Friday, August 19th 2011, 2:58pm

Hi,

Download Examples from krPano and have a look on

examples/javascript-interface/js-sync/syncscreen.html

Two panoramas syncronised on same HTML page.
Best regards,
JPhD
VR-Guide®/Eleana CEO
https://vr-guide.online

Boubou

Trainee

  • "Boubou" started this thread

Posts: 67

Location: Paris

Occupation: Photographer

  • Send private message

3

Friday, August 19th 2011, 5:24pm

Thanks jpdeglet69 ;-)

I knew that those examples existed, but I could not find its *thumbsup*

Boubou

Trainee

  • "Boubou" started this thread

Posts: 67

Location: Paris

Occupation: Photographer

  • Send private message

4

Saturday, August 20th 2011, 4:56pm

Hi,

Impossible to get the two panoramas moving simultaneously *wacko*
Each one move, yes, but not together *confused*
An idea? ;-)

5

Saturday, August 20th 2011, 6:26pm

Hi,

are you testing locally?
if yes, the Flashplayer security settings need to be changed (the syncing is done via Javascript and the Javascript interface of the Flashplayer is locally only available after adding the folder of the swf to the trusted folders),

see here for details:
http://krpano.com/docu/localusage/

best regards,
Klaus

Boubou

Trainee

  • "Boubou" started this thread

Posts: 67

Location: Paris

Occupation: Photographer

  • Send private message

6

Saturday, August 20th 2011, 7:54pm

Hi Klaus,

No, it is on the web and all is good exept the panoramas don't move together...
"Here's the trouble "

Best regards

Laurent

This post has been edited 1 times, last edit by "Boubou" (Aug 20th 2011, 8:25pm)


Boubou

Trainee

  • "Boubou" started this thread

Posts: 67

Location: Paris

Occupation: Photographer

  • Send private message

7

Monday, August 22nd 2011, 9:43am

Hi,

Can anybody tell me what's going wrong?
I repeat exactly the example of KRPano (exept the width & height) and... *question* *cursing*

Thanks a lot ;-)

jpdeglet69

Intermediate

Posts: 212

Location: France

Occupation: VR Maker and Document Management Expert

  • Send private message

8

Monday, August 22nd 2011, 10:33am

Hi boubou,

Are you sure to have managed in your two pano.xml

<events onmousedown="set(syncother,true); events.onviewchange();"
onmousewheel="events.onmousedown();"
onviewchange="if(syncother, js( sync_1to2() ) );"
/>
Best regards,
JPhD
VR-Guide®/Eleana CEO
https://vr-guide.online

This post has been edited 1 times, last edit by "jpdeglet69" (Aug 22nd 2011, 10:45am)


Boubou

Trainee

  • "Boubou" started this thread

Posts: 67

Location: Paris

Occupation: Photographer

  • Send private message

9

Monday, August 22nd 2011, 10:55am

Hi jpdeglet69 ;-)

Yes, you can have the source of the html page and here's the code of one xml (the second is the same exept the "<area>"

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<krpano syncother="true" onstart="ifnot(haveexternalinterface, error('ExternalInterface (Javascript Interface) not avaiable!  check your Flashplayer security settings see: http://krpano.com/docu/localaccess/'));">
	
	<panoview h="0" v="0" fov="90"/>

	<view fisheye="0" limitview="range" hlookatmin="-180" hlookatmax="180" vlookatmin="-90" vlookatmax="90" fovmin="60" fovmax="110" fov="90" hlookat="0" vlookat="0"/>
	<progress showload="none" showwait="none"/>

	<preview url="pano1data/pano10/preview.jpg" type="CUBESTRIP" striporder="FRBLUD" details="16"/>

	<image type="CUBE" multires="true" tilesize="955" baseindex="0">
    	<level tiledimagewidth="1910" tiledimageheight="1910">
        	<left url="pano1data/pano10/3/1/%v_%u.jpg"/>
        	<front url="pano1data/pano10/0/1/%v_%u.jpg"/>
        	<right url="pano1data/pano10/1/1/%v_%u.jpg"/>
        	<back url="pano1data/pano10/2/1/%v_%u.jpg"/>
        	<up url="pano1data/pano10/4/1/%v_%u.jpg"/>
        	<down url="pano1data/pano10/5/1/%v_%u.jpg"/>
    	</level>
    	<level tiledimagewidth="955" tiledimageheight="955">
        	<left url="pano1data/pano10/3/0/%v_%u.jpg"/>
        	<front url="pano1data/pano10/0/0/%v_%u.jpg"/>
        	<right url="pano1data/pano10/1/0/%v_%u.jpg"/>
        	<back url="pano1data/pano10/2/0/%v_%u.jpg"/>
        	<up url="pano1data/pano10/4/0/%v_%u.jpg"/>
        	<down url="pano1data/pano10/5/0/%v_%u.jpg"/>
    	</level>
	</image>
	
	<area x="0%" width="200%"/>

	<events onmousedown="set(syncother,true); events.onviewchange();" 
	onmousewheel="events.onmousedown();" 
	onviewchange="if(syncother, js( sync_1to2() ) );"/>
   
</krpano>

jpdeglet69

Intermediate

Posts: 212

Location: France

Occupation: VR Maker and Document Management Expert

  • Send private message

10

Monday, August 22nd 2011, 12:37pm

Strange Laurent,

Following the Klaus's example code,
I do a similar test with my own panoramas

It's running *confused*
Best regards,
JPhD
VR-Guide®/Eleana CEO
https://vr-guide.online

Boubou

Trainee

  • "Boubou" started this thread

Posts: 67

Location: Paris

Occupation: Photographer

  • Send private message

11

Monday, August 22nd 2011, 1:29pm

As you say, stange *confused* *blink* *g*

12

Monday, August 22nd 2011, 6:24pm

Hi,
No, it is on the web and all is good exept the panoramas don't move together...
"Here's the trouble "
try to use the original krpano.swf file,
the swf files from Panotour have the Javascript Interface disabled by default (like when checking the Disable Javascript Interface option in the kprotect Tool),

best regards,
Klaus

Boubou

Trainee

  • "Boubou" started this thread

Posts: 67

Location: Paris

Occupation: Photographer

  • Send private message

13

Monday, August 22nd 2011, 6:41pm

Thanks a lot Klaus!!!

My first good night since 3 days *rolleyes* *thumbsup*

Best regards,

Laurent

jpdeglet69

Intermediate

Posts: 212

Location: France

Occupation: VR Maker and Document Management Expert

  • Send private message

14

Monday, August 22nd 2011, 10:18pm

Following the idea,

For fun *rolleyes*, the same panorama with a mirror to view back
Best regards,
JPhD
VR-Guide®/Eleana CEO
https://vr-guide.online

This post has been edited 1 times, last edit by "jpdeglet69" (Aug 22nd 2011, 10:49pm)


Boubou

Trainee

  • "Boubou" started this thread

Posts: 67

Location: Paris

Occupation: Photographer

  • Send private message

15

Wednesday, August 24th 2011, 8:23am

Hi,

Very funny *thumbup*
It is also possible to get a window with a magnifying glass in the middle *thumbsup*

jpdeglet69

Intermediate

Posts: 212

Location: France

Occupation: VR Maker and Document Management Expert

  • Send private message

16

Wednesday, August 24th 2011, 10:10am

Hi,

Very funny *thumbup*
It is also possible to get a window with a magnifying glass in the middle *thumbsup*


YES *tongue* in this other thread
Best regards,
JPhD
VR-Guide®/Eleana CEO
https://vr-guide.online

17

Thursday, March 21st 2013, 8:17pm

the swf files from Panotour have the Javascript Interface disabled by default (like when checking the Disable Javascript Interface option in the kprotect Tool),
A old thread, but is it possible to activate the javascript interface in the panotour swf ?

Thanks!!

18

Thursday, March 21st 2013, 8:32pm

Hi,

I'm not sure if this is still true for the current Panotour version, but so far I know, you need to enable the domain limitations in Panotour to enable the Javascript interface.

Or an other way - just use the krpano.swf instead.

Best regards,
Klaus