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.

Valentin

Trainee

  • "Valentin" started this thread

Posts: 53

Location: Moscow, Russia

  • Send private message

1

Friday, February 11th 2011, 12:14pm

2500 polygonal hotspots... Is it possible?

Hi!

I'll plan to make а virtual tour which will include 2500 polygonal hotspots.
* 16 360VR pano in VR tour
* VR pano resolution is 14000x7000px
- This part is already realized
* 100-250 polygonal hotspots per a VR pano, 2500 hotspots total
* 4-50 point per a hotspot
* Each of hotspots will open a pop-up window (textfild plugin)
- This part in plans only.

Are there any hidden obstacles or limitations?

This post has been edited 1 times, last edit by "Valentin" (Feb 11th 2011, 2:40pm)


VN2011

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

2

Friday, February 11th 2011, 3:07pm

that will be alot of xml to read at the start. i would make an action that creates the polyspots onstart of each scene. that way the only ones that are actually in use at any given time are the ones in the current scene. i think that would be better than having them all created and using visible true/false to view them.

3

Monday, February 14th 2011, 12:53pm

Hi,

when the hotspots are defined inside the <scene> or inside the pano xml,
then only the hotspots of the current scene/pano will be shown/calculated/rendered of course,

there is no direct limitation, but the cpu needs a bit time for calculation and rendering a hotspot,
so more hotspots are also needing more cpu time of course,

in a normal case 100-250 polygonal hotspots shouldn't be a big problem on todays computers,
but I can't say to sure of course, the best way to find out would be to try it, e.g. try to draw a
lot of hotspots with the editor plugin and see how it behaves...

best regards,
Klaus

Valentin

Trainee

  • "Valentin" started this thread

Posts: 53

Location: Moscow, Russia

  • Send private message

4

Tuesday, February 15th 2011, 6:53pm

Thank you very much!

Valentin

Trainee

  • "Valentin" started this thread

Posts: 53

Location: Moscow, Russia

  • Send private message

5

Saturday, February 19th 2011, 11:36pm

One more question:
How make all hotspots visible after panorama loading?

I have tried some ways but have failed.

1. Create additional XML with hotspot and make loadxml actions

Source code

1
<events onloadcomplete="loadxml([hotspot.xml], null, KEEPALL);"/>

- The panorama picture is lost because <image> doesn't support keep attribute

2. To set visibility in style for all hotspots

Source code

1
<events onloadcomplete="set(style[hs].visible,true);"/>

- "set" and "style" are incompatible

3. Extensive way

Source code

1
2
3
4
5
<events onloadcomplete="set(hotspot[hs1].visible,true);
 	set(hotspot[hs2].visible,true);
 	set(hotspot[hs3].visible,true);
 	....
 	set(hotspot[hs2500].visible,true);"/>

- It works properly but code is very long

Сould you advice something?

VN2011

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

6

Sunday, February 20th 2011, 1:09am

switch(hotspot.visible);

will toggle the entire hotspot layer on and off.

Valentin

Trainee

  • "Valentin" started this thread

Posts: 53

Location: Moscow, Russia

  • Send private message

7

Sunday, February 20th 2011, 8:12pm

It's really simple *smile* Thanks!

But this way requires double switching: true->false->true

Source code

1
2
3
<style name="hs" visible="true" ............./>
<events onxmlcomplete="switch(hotspot.visible);"
    	onloadcomplete="switch(hotspot.visible);"/> 


If to do only one switching false->true

Source code

1
2
<style name="hs" visible="false" ............./>
<events onloadcomplete="switch(hotspot.visible);"/> 


...it doesn't work

I don't understand this logic *unsure*