Hello.
I have a project with 10k photos combined in a gigapixel pano. "Onover" of each photo I need a tooltip with name. So I wrote a hotspot generator. But 10k image hotspots (even if I use 1pixel jpg to represent them) slow down even my Core-I7 3930K CPU.
Are there any other way to achive my goals? Maybe polygonal hotspots are better in my case? Or can I deactivate hotspots that are not on the screen, somehow?
10,000 hotspots
-
-
10k hotspots???
i would generate one pano having all those images burnt in
and create an action which will show a tooltip depending on the coordinates -
All of the photos are burnt in.
I need hotspots just to show tooltips on mouse over.
If it can be done without hotspots it will be great. Can I read spherical coordinates under the mouse cursor? -
-
On what event I need to read mouse coordinates? :/
-
Hi,
two options:
include the toolbox and use the numbers section:
https://krpano.com/forum/wbb/inde…74910#post74910or
do something like:
Code
Display More<events name="showcoords" keep="true" onkeydown="ShowCoords();" onviewchange="NumDoMouse();" /> <style name="coords" keep="true" type="text" width="150" height="40" bgroundedge="20" bgcolor="0xffffff" html="" css="data:css_mouse" ox="20" oy="-50" vcenter="true" /> <data name="css_mouse"> font-family:Helvetica;font-size:13px;color:#000000;text-align:center; </data> <action name="ShowCoords"> if(keycode == 77, ifnot(_mouse, addlayer(mouse); layer[mouse].loadstyle(coords); set(_mouse, true); , removelayer(mouse); set(_mouse, false); ); ); if(keycode == 80, Print()); </action> <action name="NumDoMouse" > setinterval(time, 0.02, screentosphere(mouse.x, mouse.y, toh, tov); roundval(toh,7); roundval(tov,7); set(layer[mouse].html, calc:'ATH = ' + toh + '[br]ATV = ' + tov); copy(layer[mouse].x, mouse.x); copy(layer[mouse].y, mouse.y); ); </action> <action name="Print"> showlog(); trace('Mouse X = ',get(toh),'
Mouse Y = ',get(tov)); </action>
Click 'M' on keyboard to show/hide the mouse pointer.
Click 'P' to show coords in log.
http://www.virtualtuur.com/krpano/show_coords/1/Hope it helps!
Tuur
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!