You are not logged in.

xhe

Beginner

  • "xhe" started this thread

Posts: 33

Location: Sunnyvale, California, USA

  • Send private message

1

Friday, July 5th 2019, 5:33pm

What is the best way to get hotspot point position accurately?

First thanks for this amazing tool to facilitate the VR play!

I was wondering the easiest way to apply hotspot on a pano. for example,


<point ath="-31.167381" atv="-26.721998" />

my question is how can I get these values easily? Can I just click the pano and then convert the mouse position to the above two values? Or is krpano providing the tool to obtain hotspot location easily?

This is extremely useful if hotspot is a polygraph, and then I have to get all the points' accurate position.

Thanks

2

Friday, July 5th 2019, 6:25pm

Get spherical coordinates in the console (press "O"), click on the screen


<events keep="true" onclick="screentosphere(mouse.x, mouse.y, toh, tov); trace(ath=,toh); trace(atv=,tov)" />

Sergey74

Trainee

Posts: 128

Location: Russia, Chelyabinsk

Occupation: professional noob

  • Send private message

3

Friday, July 5th 2019, 6:28pm

Use

Source code

1
2
<events onclick="screentosphere(mouse.x, mouse.y, m_ath, m_atv);roundval(m_ath,1); roundval(m_atv,1);
trace('ath=','&quot;',get(m_ath),'&quot;',' atv=','&quot;',get(m_atv),'&quot;');"/>
translation difficulties *huh*

xhe

Beginner

  • "xhe" started this thread

Posts: 33

Location: Sunnyvale, California, USA

  • Send private message

4

Saturday, July 6th 2019, 7:32am

Thanks

It worked, but I have to put
keep="true"

in events

This post has been edited 1 times, last edit by "xhe" (Jul 6th 2019, 8:09am)