You are not logged in.

1

Friday, May 18th 2012, 5:27pm

Control pano with kinect - how to Jump to hotspot with a key stroke?

Hi,

We want to create an indoor walk through tour similar to google street view & to be controlled by ms kinect sensor:
we shall take Pano shots at a fixed short distance and user shall able to "walk through" the space.

However, to simplify the setup, the kinect sensor simply translate a body gesture into a key stroke. The question is: is that a way to link to another Pano solely using keyboard for navigation? E.g. When a user pan to certain range of yaw and press a specified key, then it will move to that spot? Thanks

Richard

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Saturday, May 19th 2012, 5:04am

http://krpano.com/docu/actions/#keycode

If keycode == x, action()

Like nextscene(). This action can be found/derived from thr exMples folder.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

3

Saturday, May 19th 2012, 4:44pm

Hi sachagriffin,

Thanks for your advise. I think we have to check with the current yaw data to decide which next scene to go. For example, if there are more than one hotspot in a scene, a user can point to the right link and hit a key to go. Do you have any idea is there any function that I can check the user's current yaw data? Thx

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

4

Saturday, May 19th 2012, 7:14pm

Again check the documentation. View.hlookat. If kinect actions are set to keys, you can grab the nearest hotspot in view and route that to your action.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

ZODIACBLUE

Beginner

Posts: 37

Location: Brighton, UK

Occupation: Photographer

  • Send private message

5

Friday, July 4th 2014, 8:28pm

I'm having the same issue trying to create hotkeys to use a gamepad with the tour

The main issue is the grabbing the nearest hotspot part

I want to use get(view.hlookat) and then compare it to the ath value for the hotpsots but easier said then done when dealing with unknown number of hotspots per pano.

I probably need to use a loop to loop through all available hotspots in a given pano and then calculate which is closer in a clockwise or anti clockwise movement but not quite sure where to start. I'm sure I'll figure it out but it's a bit daunting as although I used to be a regular xml and javascript junkie I'm a bit rusty now.

What I am surprised about is no one seems to have done this yet so I'll try and share with everyone once I get something working.

In the mean time if anyone has any handy pointers let me know. *smile*

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

6

Monday, July 7th 2014, 3:46am

There's the group hotspot layer code, that's good for looping through all hotspots or plugins, and then using i guess screen to sphere and spheretoscreen would help in figuring out whats closest to the middle of the screen. Someone has already used something similar to scale hotspots larger as they get into view and smaller as the approach the edge. Its a cool effect.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

7

Monday, July 7th 2014, 2:12pm

Did something like this:
http://krpano.com/forum/wbb/index.php?pa…53842#post53842

Double click to link to closest hotspot or PGUP/PGDN for next closest to current position.
Solution is not that simple like comparing ATH, ATV. E.g. Ath does not tells you what is the distance to that point if you don't calculate distances to all hotspots and choose closest one to current position.

Explore forum. There were several good threads with that topic.