You are not logged in.

Search results

Search results 1-6 of 6.

Wednesday, November 6th 2013, 11:09am

Author: SunnyMagadan

Get pixelwidth/pixelheight properties of panoramic image via script

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?

Monday, October 28th 2013, 4:29pm

Author: SunnyMagadan

Get pixelwidth/pixelheight properties of panoramic image via script

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...

Friday, October 25th 2013, 5:22pm

Author: SunnyMagadan

Get pixelwidth/pixelheight properties of panoramic image via script

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.

Thursday, October 24th 2013, 1:34pm

Author: SunnyMagadan

Trying to convert flat polygon points coordinates to polygonal hotspot

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 ...

Thursday, October 17th 2013, 10:17am

Author: SunnyMagadan

Draggable polygonal hotspots

Thanks a lot Alex. I got the idea. You save my day.

Wednesday, October 16th 2013, 1:58pm

Author: SunnyMagadan

Draggable polygonal hotspots

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...