Sie sind nicht angemeldet.

1

Freitag, 6. Mai 2011, 08:56

is there any way to detect pano is rotating or now?

Hi,

is there any way to detect pano is rotating(spin) or pasued(stopped)?

thanks

--
Pratiks

Beiträge: 1 850

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

2

Freitag, 6. Mai 2011, 12:06

You mean the auto rotator or manual movement?
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

3

Sonntag, 8. Mai 2011, 07:43

Hello!Check
autoroatet.enabled
about here

BR
Andrey
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

4

Montag, 9. Mai 2011, 14:18

I don't know krpano scripting too much yet, but it could look like this:
- store panorama position in some variables - for example currentX, currentY, currentZoom (like set(currentX, view.hlookat))
- write function that:
- checks if position is changed or no (currentX == view.hlookat && currentZ == view.vlookat && currentZoom == view.zoom)
- set variable that indicates if panorama is moving - for example isMoving - to true or false
- set position variables to current state - set(currentX, view.hlookat)
- call the same function again in some time, for example 500ms - for example delayedcall(500, CheckIfIsMoving())

Then you will have the information stored in variable isMoving, and it will update every half a second.

5

Montag, 9. Mai 2011, 14:42

Hi myksa,

This will really help me out.
I will try that.

thanks

--
Pratiks

6

Mittwoch, 11. Mai 2011, 16:03

Hi,

I'm not sure if you mean that - but there is the onviewchange event,
that will be called every time when the pano view will be changed,

best regards,
Klaus