You are not logged in.

1

Sunday, April 24th 2022, 8:15pm

Very long delay to see the 1st hotspots (out of more than 10'000)

Hello,

To visualize differences between 2 point clouds, I generated hotspots for the 3D points of the cloud that exceed a certain tolerance.
The hotspots without stored in a file and the style of the hotspots are in another file.
The definition of style is :

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
<style name="info_delta"
		type="text"
		with = "2.5"
		height = "2.5"
		bgalpha="0.75"
		vcenter="true"
		bgroundedge="1"
		mipmapping="true"
		fovmax="500"
		fovmin="0.5"
		zoom="true"
		zorder="100"
		onhover="action(diff);"
		onout="action(vide);"		/>


	<!-- Action pour écrire dans la boîte les différence, il faut onover="diff();" -->	
	<action name="diff"><![CDATA[
		copy(print_delta, delta);
		roundval(print_delta, 4);
		calc(plugin[hotspot_delta].html, 'différence= ' + print_delta + ' m' );
	]]></action>
	<!-- Action pour remettre la boîte avec la valeur d'origine, il faut onover="diff();" -->	
	<action name="vide">
		set(plugin[hotspot_delta].html, 'diff. avec la réf.')
	</action>


Up to ~1000 hotspots, everything is fine.
However, as soon as the number of hotspots increases (up to ~10'000 hotspots), it takes a long time before the first points appear (several minutes).
Do you have a solution so that the points arrive more regularly?
Thanks for your help
Vincent

This post has been edited 1 times, last edit by "Barras" (Apr 25th 2022, 6:22am)


2

Tuesday, April 26th 2022, 8:36am

Hi,

sorry, but krpano is not designed for handling like 10000 hotspots the same time...

Doing such is extreme and would need a dedicated optimized implementation.
The krpano hotspots are more for general usage with a lot of possible variations and not for mass processing.

Additionally one big hit in such case is probably the reason that these are text hotspots - here for every hotspot the size of the text need be to calculated, then the text manually be rendered into a 2d canvas image and then be uploaded to a WebGL texture. Every of these steps is a heavy process by its own.

You could try using renderer="css3d" and the next version 1.21 will definitely reduce the time to build these hotspots, but still then 10000 hotspots at once might be simply too much...

Best regards,
Klaus

3

Thursday, June 9th 2022, 3:58pm

Hi Klaus,
I apologise for the delay in responding.
Thanks for the tip.
By creating a small square image of the colours I want, I was able to speed up the speed of the hotspots very significantly.
Now, the generation of my 10'00 hotspots takes only 1-2 seconds
Thank you very much for your help and ideas
Best regards
Vincent