You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Hellkeeper

Intermediate

  • "Hellkeeper" started this thread

Posts: 157

Location: St. Johann in Tirol

  • Send private message

1

Wednesday, October 20th 2010, 3:51pm

maxpixelzoom

Hello,

little Question about maxpixelzoom - is a behaviour like on digital cameras possible?
Like this:
- You zoom in until maxpixelzoom = 1 (like optical zoom on cam)
- short pause
- now you can "digi-zoom" further ... to let's say maxpixelzoom = 2 (like digital zoom on cam)

Thank you, bye
Andreas
Andreas Schnederle-Wagner
Rundblick GmbH / Gigapixel aus Österreich
https://www.rundblick.at/
https://www.gpix.at

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

2

Wednesday, October 20th 2010, 4:13pm

no if maxpixelzoom is set to 1 once the pixel is at 100% you cannot go any further. there might be a way to detect that setting from there you could create an action that would set the zoom to 2 and continue to go further.

Hellkeeper

Intermediate

  • "Hellkeeper" started this thread

Posts: 157

Location: St. Johann in Tirol

  • Send private message

3

Wednesday, October 20th 2010, 4:17pm

Hi,

thx - i know that I can not go further than the maxpixelzoom factor set. Would be ok if it's initially set to 2 - but zoom in would pause when a value of 1 is reached - and after a short stop you can zoom further in ...
Possible to get the current zoom level? (like zoom is at 0.80, 1.00, 1.50 ...) then a pause action should be possible, right?

Andreas
Andreas Schnederle-Wagner
Rundblick GmbH / Gigapixel aus Österreich
https://www.rundblick.at/
https://www.gpix.at

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

4

Wednesday, October 20th 2010, 4:38pm

it should be. i just can't think of how to do it off the top of my head.

Hellkeeper

Intermediate

  • "Hellkeeper" started this thread

Posts: 157

Location: St. Johann in Tirol

  • Send private message

5

Thursday, October 21st 2010, 7:39pm

it should be. i just can't think of how to do it off the top of my head.
well - i'm not sure how to accomplish this too! :-(

Anyone around with a briliant idea? ;-)

Andreas
Andreas Schnederle-Wagner
Rundblick GmbH / Gigapixel aus Österreich
https://www.rundblick.at/
https://www.gpix.at

6

Friday, October 22nd 2010, 12:20pm

Hi,

there is no current 'zoom' information (at the moment), only the current 'fov' value,
but when the maxpixelzoom variable will be set, then the fovmin value will be recalculated using it,
that means you could use the fovmin variable to check if the maximum zoom has reached,

e.g. here a simple example which stops for 0.5 seconds at maxpixelzoom of 1.0 and then enables zooming to 2.0:

Source code

1
2
3
4
5
6
7
<events onviewchange="handlezoom();" />
	
<action name="handlezoom">
  if(view.fov LE view.fovmin, 
  	delayedcall(0.5, set(view.maxpixelzoom,2.0));
	);
</action>


best regards,
Klaus

Similar threads