Forums  

Go Back   Forums > Talk > General FPP Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 03-02-2007, 10:08 PM
mconn mconn is offline
Junior Member
 
Join Date: Feb 2007
Posts: 3
Downloads: 0
Uploads: 0
Default Converting x and y to pan and tilt

I want to be able to add hotspots at any location I choose. Here is what I want to do:

Click on a pano and inset the hotspot at the point. I have written the code to do this but I am having problems with the position..

My code returns x and y values from the click location on the screen - this is from windows.

It seems that I will need to convert this to pan and tilt. I can use static hopspots but this is really not what I want

Does this seem like the best approach? Have anyone converted from x,y to pan,tilt? Can the flash player return the location of the mouse in pan/tilt co-ords?

Thanks
Reply With Quote
  #2  
Old 03-03-2007, 12:13 AM
Denis Denis is offline
Site admin
 
Join Date: Nov 2006
Posts: 355
Downloads: 0
Uploads: 0
Default

Good idea, thanks, I will make a solution after 2.0 release.
Reply With Quote
  #3  
Old 10-21-2007, 10:04 PM
jlounds jlounds is offline
Junior Member
 
Join Date: May 2007
Posts: 24
Downloads: 0
Uploads: 0
Default

Has anyone figured out how to do this?

Using the editor plugin layer, when you switch a hotspot from static to non-static, it seems to do the conversion perfectly.
Reply With Quote
  #4  
Old 10-25-2007, 11:11 AM
Denis Denis is offline
Site admin
 
Join Date: Nov 2006
Posts: 355
Downloads: 0
Uploads: 0
Default

So, the best way is to set static parameter to "1", read coordinates and to set static back to "0".
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 11:11 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.