Sie sind nicht angemeldet.

1

Mittwoch, 18. Mai 2011, 21:51

Go to a specific scene by url

hi all

i want to go in a scene with url it's possible ? I know to go in a single pano but don't find the good syntax for scene

thanks

I got it
Direct linking to a specific panorama

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Mittwoch, 18. Mai 2011, 22:11

like

....virtualtuur.com/ilovekrpano/skin/krpano.swf?pano=../device/tour.xml&onstart=loadscene(scene_krpano_3);

hope it helps

Tuur *thumbsup*

4

Donnerstag, 19. Mai 2011, 15:08

Ok it's work perfect to get a scene

But now I want a scene and get a position in a scene, I don't find the good syntax, I try &x=.... &y=.... &z= or &view.hlookat=.... &view.vlookat=.... &viewfov=.... without sucess *confused* *wacko*

5

Donnerstag, 19. Mai 2011, 15:30

Hi Job.1,

Inside your loadscene() action, you can use the vars parameter for that...
loadscene(scenename,vars*,flags*,blend*)

SAlut.

6

Donnerstag, 19. Mai 2011, 15:54

Thank's Michel but I can just pass one like view.vlookat=-40 but what else for the others, view.hlookat=15 and view.fov=50 *confused*

7

Donnerstag, 19. Mai 2011, 15:56

Hi ;-) ,
....
(e.g. sphere=image.jpg&view.fov=120&view.fisheye=0.35)
....
SAlut.

8

Donnerstag, 19. Mai 2011, 15:58

Yes I see that but not working

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

9

Donnerstag, 19. Mai 2011, 21:09

Did you in your krpano js code/embed code ...?
viewer.passQueryParameters();

See the getlink example in your examples folder.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

10

Donnerstag, 19. Mai 2011, 21:15

It's only for panonot for scene mode

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

11

Donnerstag, 19. Mai 2011, 21:46

Then you can build your scene dynamically with php or asp
xml=krpano.php?fov=60 <- just a rough example

and in the krpano.php
<scene fov=<?php print $_GET["fov"] ?>"

another rough example with no input validate or default setting for the variable.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

12

Donnerstag, 19. Mai 2011, 21:51

I know that but the trouble is that I can put only one and is working
But if you put two or three not working

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

13

Donnerstag, 19. Mai 2011, 22:04

That shouldn't be the case, Post your php or asp code then.
The maxlength of your xml file plus its parameters, shouldn't be close to 2048.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

14

Donnerstag, 19. Mai 2011, 23:08

Hi Job,

I have tried some... The loadscene() action itself seems to accept multiples vars when used from xml... but seems to accept only one var when used from url or as a variable in the embed process...
Perhaps it is a bug from the swfkrpano.js...

SAlut.

15

Donnerstag, 19. Mai 2011, 23:11

Quellcode

1
.....mydomain.com/krpano.swf?pano=tour.xml&onstart=loadscene(myscene,view.hlookat=52)


if you change view.vlookat or view.fov it's working

but

Quellcode

1
.....mydomain.com/krpano.swf?pano=tour.xml&onstart=loadscene(myscene,view.hlookat=52&view.vlookat=-20&view.fov=120)


this is not working

17

Freitag, 20. Mai 2011, 13:10

Hi Klaus,

it's a bug or normal way to work ?

18

Mittwoch, 1. Juni 2011, 12:20

Hi,

Zitat

.....mydomain.com/krpano.swf?pano=tour.xml&onstart=loadscene(myscene,view.hlookat=52&view.vlookat=-20&view.fov=120)
when using the & in the url then the browser will assume a new 'http-get' parameter will be started,
maybe escaping the inner & by %26,
e.g.

Zitat

.....mydomain.com/krpano.swf?pano=tour.xml&onstart=loadscene(myscene,view.hlookat=52%26view.vlookat=-20%26view.fov=120)

beside of that - I would recommend setting the startup view by set() or the lookat() actions,
this should be to more reliable and unproblematic way,
e.g.

Zitat

.....mydomain.com/krpano.swf?pano=tour.xml&onstart=loadscene(myscene);lookat(52,-20,120);

best regards,
Klaus

19

Mittwoch, 1. Juni 2011, 13:25

Thanks Klaus all working well *thumbsup*

but it seem not working with encript xml

20

Mittwoch, 1. Juni 2011, 13:58

Zitat

but it seem not working with encript xml
Hi, make sure that the "Disable External Parameters" is NOT checked in the kprotect tool,

best regards,
Klaus