Sie sind nicht angemeldet.

1

Donnerstag, 6. Januar 2022, 16:41

is startscene still working? SOLVED

Hi,
I droped few panos a made pure krpano testing tour.
Now in 1.20.11 can not use startscene any more. Am I mistaken?

Where to find the answer??
https://www.virtualczech.cz/startscene/i…ml?startscene=3


Older 1.20.5 is working:
https://www.virtualczech.cz/ceskykrumlov…l?startscene=22

Marty

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »martyhr« (7. Januar 2022, 12:28)


2

Donnerstag, 6. Januar 2022, 16:53

skin_settings.deeplinking

3

Donnerstag, 6. Januar 2022, 17:57

Thanks. Never used deeplinking in the past.
Working but how to do as I was used to - just use the ordinary simple and short URL and only if I want to use startscene, just to write index.html?startscene=23 ?

In the past i sent to my customer this short clear good looking URL with deeplinking="false":
https://www.virtualczech.cz/ceskykrumlov/


or if I wanted to start with another pano instead of the first one, I sent this URL with deeplinking="false":
https://www.virtualczech.cz/ceskykrumlov…l?startscene=31



Now I always have this long and not good looking one with deeplinking="true":
https://www.virtualczech.cz/startscene/?…at=0,0,120,0,0;

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »martyhr« (6. Januar 2022, 18:10)


5

Donnerstag, 6. Januar 2022, 18:09

I just want to know if 1.20.11 changed and if not, why I can not use my startscene like in my 1.20.5.
In the index generated by krpano is default passQueryParameters:true in 1.20.5
and
passQueryParameters:"startscene,startlookat" in 1.20.11


Old tours are working. Please see my previous post.
Any other advice please?
Thanks in advance

6

Donnerstag, 6. Januar 2022, 18:28

Yes, that has changed https://krpano.com/forum/wbb/index.php?p…86297#post86297. As far as I understand, since version 1.20.10 you will not be able to pass values without setting deeplinking = "true"

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

7

Donnerstag, 6. Januar 2022, 21:41

Hiu,

if you just out quote the skin_onstart_loadscene action in the vtourskin.xml,
set passQueryParameters to true in index.html
and add this:

Quellcode

1
2
3
4
5
	<action name="startup" autorun="onstart">
		if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );
		loadscene(get(startscene), null, MERGE);
		if(startactions !== null, startactions() );
	</action>


it works.

You could change that in your droplet template files so that when you use it to generate a tour it works as you like.

Hope it helps,
Tuur *thumbsup*

8

Freitag, 7. Januar 2022, 11:00

Hi,

that's not related to krpano itself, that is a feature from the vtourksin.xml and these can be changed anytime in any way you like.

And right at the moment the checking of startscene, startlookat is only done when the deeplinking setting is enabled. I have to admit I'm not sure why I added the deeplinking check in this case... but that could be removed of course...

Have a look into the vtourskin.xml at this part:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
<action name="skin_onstart_loadscene" scope="local" autorun="onstart">
        
    <!-- load first scene -->
    loadscene(calc(skin_settings.deeplinking == true AND isset(startscene) ? startscene : 0), null, MERGE);
    
    <!-- set optional deeplinking startup lookat -->
    if(skin_settings.deeplinking == true AND isset(startlookat),
        txtsplit(startlookat, ',', hlookat,vlookat,fov,distortion,architectural);
        lookat(get(hlookat),get(vlookat),get(fov),get(distortion),get(architectural));
    );

</action>


To allow passing the startscene and startlookat parameters also without the deeplinking setting enabled, change it to:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
<action name="skin_onstart_loadscene" scope="local" autorun="onstart">
        
    <!-- load first scene -->
    loadscene(calc(isset(startscene) ? startscene : 0), null, MERGE);
    
    <!-- set optional deeplinking startup lookat -->
    if(isset(startlookat),
        txtsplit(startlookat, ',', hlookat,vlookat,fov,distortion,architectural);
        lookat(get(hlookat),get(vlookat),get(fov),get(distortion),get(architectural));
    );

</action>


Best regards,
Klaus

9

Freitag, 7. Januar 2022, 12:28

Thanks to all.
marty