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.

herrpedro

Intermediate

  • "herrpedro" started this thread

Posts: 208

Location: Lisbon

Occupation: Programmer/analyst

  • Send private message

1

Sunday, January 15th 2023, 3:14pm

load full res scene after "load"

hi all
hope you had a great new year (it's the 15th already)

i understand that
PRELOAD
loads the pano before blend
and seen some actions to preload entire tour (but its 150 panos.. a lot to load before walking and may be not visiting)

is there a way to load it after blend/loadscene?

so a visitor arrives from 1 place to other and all the visible squares are loading for that resolution
is it possible to load all the non visible suqares in the same resolution?
so when he loos around the full res is already there

thank you all

Posts: 119

Location: Russia, Komi republic, Uhta

  • Send private message

2

Monday, January 16th 2023, 9:34am

yes, I wrote myself a preloader plugin. it works in several modes:
- loading of all panoramas before the start of the tour
- loading neighboring panoramas in the background while the visitor is watching the current one (it checks which panoramas can be switched from the current one and loads them) *cool*

panoyun

Intermediate

Posts: 229

Location: Somalia

  • Send private message

3

Monday, January 16th 2023, 3:28pm

@lastromantik

Can you load a multi -resolution panoramic picture?
I want to buy this plug -in

herrpedro

Intermediate

  • "herrpedro" started this thread

Posts: 208

Location: Lisbon

Occupation: Programmer/analyst

  • Send private message

4

Monday, January 16th 2023, 4:50pm

@lastromantik

Can you load a multi -resolution panoramic picture?
I want to buy this plug -in

found the link.

thanks

https://krpano.com/forum/wbb/index.php?p…8443&highlight=

Eric Chen

Trainee

Posts: 65

Location: China

Occupation: Krpano custom coding

  • Send private message

5

Monday, January 16th 2023, 6:00pm

You can use regular expressions to match key values in the xml string of the scenes. Then preload the images by creating the image object or the fetch method. If you want more control, you can also load previews and level tiles in groups. This way you can control how much you need to preload. ;-)
*thumbup*

Preload Plugin (Free, source code)
Constrast Plugin
KR HLS Plugin
Slider Controller Plugin
KR+Next+MapBox+TS Demo (source code)


微信:Eric_Chen1990

6

Monday, January 16th 2023, 8:56pm

@lastromantik : did u ever finish this plugin ?

Eric Chen

Trainee

Posts: 65

Location: China

Occupation: Krpano custom coding

  • Send private message

7

Tuesday, January 17th 2023, 3:49am

If so many people are interested in this preload plugin, I can make one in 3-4 days. The image paths are automatically parsed and preloaded. No configuration is required. *huh*
*thumbup*

Preload Plugin (Free, source code)
Constrast Plugin
KR HLS Plugin
Slider Controller Plugin
KR+Next+MapBox+TS Demo (source code)


微信:Eric_Chen1990

Tuur

Sage

Posts: 3,784

Location: Netherlands

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

  • Send private message

8

Tuesday, January 17th 2023, 3:04pm

@Eric Chen,

I'm not sure if i would use such but i'm interested how this works and looks in code. I would also like to see what is the difference and what the limits are, data load wise etc
Would you be so kind to share it open source? Maybe some more people want to see the code to learn and we can collect some money together to get you some?

Tuur

*thumbsup*

herrpedro

Intermediate

  • "herrpedro" started this thread

Posts: 208

Location: Lisbon

Occupation: Programmer/analyst

  • Send private message

9

Tuesday, January 17th 2023, 3:19pm

@Eric Chen,

I'm not sure if i would use such but i'm interested how this works and looks in code. I would also like to see what is the difference and what the limits are, data load wise etc
Would you be so kind to share it open source? Maybe some more people want to see the code to learn and we can collect some money together to get you some?

Tuur

*thumbsup*

my particular case is

i have a path to go to and some jumps are automatic to show the visitor the path. Think as you go from 1 room to the other and you have a corridor that has no interest... just to go through it so you feel the path.

If the corridor has a bend and in the corner , after the load, i call a lookto(somewhere) . This lookto does not load the rest of the pano and you go from the initial view, which has loaded a normal res, to another view which has only the "preview" image jumping from a normal res to a very-low-res.

the idea was, after the load, to load the "normal res pano" (might be a normal or a multires) after the "loadscnee" to the "very low res" would never appear

i'm ok with some contribution because this will increase the quality of my tours

thank you all

Eric Chen

Trainee

Posts: 65

Location: China

Occupation: Krpano custom coding

  • Send private message

10

Tuesday, January 17th 2023, 4:42pm

@Eric Chen,

I'm not sure if i would use such but i'm interested how this works and looks in code. I would also like to see what is the difference and what the limits are, data load wise etc
Would you be so kind to share it open source? Maybe some more people want to see the code to learn and we can collect some money together to get you some?

Tuur
@Tuur

Ok, I'll open source this perload plug-in. I think I'll probably upload it to Github. Guys, I'm more looking forward to a remote job than a donation. *g*
*thumbup*

Preload Plugin (Free, source code)
Constrast Plugin
KR HLS Plugin
Slider Controller Plugin
KR+Next+MapBox+TS Demo (source code)


微信:Eric_Chen1990

Tuur

Sage

Posts: 3,784

Location: Netherlands

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

  • Send private message

11

Wednesday, January 18th 2023, 5:26pm

Great Eric!
Much appreciated!
Let us know when and where to find it.

Remote job request noted (!).

Tuur *thumbsup*

Eric Chen

Trainee

Posts: 65

Location: China

Occupation: Krpano custom coding

  • Send private message

12

Thursday, January 19th 2023, 7:21am

Hey guys, here is the source code of the preload plugin. I haven't prepared the documentation, but there are necessary comments in the preload.xml. *smile*


https://github.com/Eric-Chen1990/KR-preload-plugin
*thumbup*

Preload Plugin (Free, source code)
Constrast Plugin
KR HLS Plugin
Slider Controller Plugin
KR+Next+MapBox+TS Demo (source code)


微信:Eric_Chen1990

andrew22222

Intermediate

Posts: 395

Location: Australia

  • Send private message

13

Thursday, January 19th 2023, 7:27am

Thanks for the example. Appreciate it.

Wow, beautiful 360s. Are they renders?

Andrew

herrpedro

Intermediate

  • "herrpedro" started this thread

Posts: 208

Location: Lisbon

Occupation: Programmer/analyst

  • Send private message

14

Thursday, January 19th 2023, 9:15am

Hey guys, here is the source code of the preload plugin. I haven't prepared the documentation, but there are necessary comments in the preload.xml. *smile*


https://github.com/Eric-Chen1990/KR-preload-plugin

Thank you very much!
Will test it later.
Thank you!

Tuur

Sage

Posts: 3,784

Location: Netherlands

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

  • Send private message

15

Thursday, January 19th 2023, 2:09pm

Thanks Eric,

Much appreciated!
Hope to try it soon.

Tuur *thumbsup*

16

Thursday, January 19th 2023, 6:05pm

tx eric, very nice of you to share it !
for tours without too many scenes it makes a lot of sense to use this.

Eric Chen

Trainee

Posts: 65

Location: China

Occupation: Krpano custom coding

  • Send private message

17

Friday, January 20th 2023, 7:34am

tx eric, very nice of you to share it !
for tours without too many scenes it makes a lot of sense to use this.
For too many scenes, or very large resolution panos, limiting the maximum preload level is a wise choice. We don't need to preload all the levels. Preloading the preview and level 1 are generally sufficient.
*thumbup*

Preload Plugin (Free, source code)
Constrast Plugin
KR HLS Plugin
Slider Controller Plugin
KR+Next+MapBox+TS Demo (source code)


微信:Eric_Chen1990

herrpedro

Intermediate

  • "herrpedro" started this thread

Posts: 208

Location: Lisbon

Occupation: Programmer/analyst

  • Send private message

18

Friday, January 20th 2023, 11:49am

good morning!


the idea was, after the load, to load the "normal res pano" (might be a normal or a multires) after the "loadscnee" to the "very low res" would never appear
thank you all


from initial post ->
"and seen some actions to preload entire tour (but its 150 panos.. a lot to load before walking and may be not visiting)
is there a way to load it after blend/loadscene?"
"

either way I'm a sw developer (in other area) and i value testing
I added it to the tour i'm working on and it loads the whole tour on the beginning and not "behind the scenes".
Didnt find the place where you added it to work.. may be an event that i could not find

by testing the functionality i tried to add more levels but i don't think its working for multilevel since the placeholders are not solved
regular panos preload ok

the url in the browser console looks like ->
2022_10_11_14_19_23_DSC02508_HDR_Panorama.tiles/l2_b_%0v_%0h.jpg

thank you for your (fast) work

19

Friday, January 20th 2023, 12:37pm

@herrpedro
i think "%0v" and "%0h" is not covered... this should be solvable.

Eric Chen

Trainee

Posts: 65

Location: China

Occupation: Krpano custom coding

  • Send private message

20

Friday, January 20th 2023, 2:18pm

@herrpedro
either way I'm a sw developer (in other area) and i value testing
I added it to the tour i'm working on and it loads the whole tour on the beginning and not "behind the scenes".
Didnt find the place where you added it to work.. may be an event that i could not find
You should be able to see the “preloading_page” layer in preload.xml. You can hide this layer.

by testing the functionality i tried to add more levels but i don't think its working for multilevel since the placeholders are not solved
regular panos preload ok

the url in the browser console looks like ->
2022_10_11_14_19_23_DSC02508_HDR_Panorama.tiles/l2_b_%0v_%0h.jpg

It is currently matched with the default placeholder.

Source code

1
panos/a3.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg

You can make placeholder changes in preload.js, depending on your situation.
*thumbup*

Preload Plugin (Free, source code)
Constrast Plugin
KR HLS Plugin
Slider Controller Plugin
KR+Next+MapBox+TS Demo (source code)


微信:Eric_Chen1990