Thanks a lot, Klaus. Now I have completed piece of puzzle. But, how I can convert pixel-coordinates from the other types of source images(cube, cylinder, cubestrip, qtvr) to the krpano ath/atv values?
Hello, Klaus. It's difficult to explain what size I am looking for, but maybe it's would be better if I try to explain the main cause why I do that. So, the main issue is to calculate hotspot position at panoramic image on the fly(when panorama is loaded). I have two hotspots: image hotspot and polygonal hotspot. Polygonal hotspot should be placed over image hotspot to cover proper part of it. User can set-up what part of the image should be covered by polygon, similar to image area map selector...
Is krpano can get pixelwidth and pixelheight properties of panoramic image via script? I tried to call get(image.pixelwidth), but it return null value.
Hello, krpano guys. I have an issue which breaks my mind. Currently I am working on polygonal hotspots editor which will be used as a part of CMS for panoramas management. This editor will provide ability for end-users to select some picture and then display it as a hotspot inside panorama. Also, user will be able to display only a particular area of the picture with appying polygonal hotspot mask to it. Of course user need to specify polygon points too. The only aim of the current editor is to ...
Thanks a lot Alex. I got the idea. You save my day.
Hello. Can anybody give me advise on how to make polygonal hotspots draggable? I tried this code for regular hotspots and it's works fine, but it's not useful for polygonal hotspots. Source code 1 2 3 4 5 6 7 8 9 10 11 12 <style name="dragablehotspot" dragging="if(pressed, sub(dx,mouse.stagex,drag_adjustx); sub(dy,mouse.stagey,drag_adjusty); screentosphere(dx,dy,ath,atv); if(onDrag!==null, onDrag() ); delayedcall(0,dragging()); , if(onDragEnd!==null, onDragEnd() ); );" ondown="spheretoscreen(ath...