Sie sind nicht angemeldet.

1

Dienstag, 2. Februar 2016, 13:37

limitview and zoom out limit

Hi,
I want to zoom out my flat pano even if the panorama becomes too small - surrounded by black space.

Is it possible?

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

2

Dienstag, 2. Februar 2016, 13:46

Hi!

Try using

Quellcode

1
limitview="fullrange"
. See here: http://krpano.com/docu/xml/#view.limitview


Regards,

Alexey

3

Dienstag, 2. Februar 2016, 14:21

Thanx, but already tried without success.
with limitview="fullrange" I can see the whole panorama. But I want to zoom out even more.

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

4

Mittwoch, 3. Februar 2016, 08:07

Quellcode

1
limitview="offrange"
is another option. Should be exactly what you need.
Regards,

Alexey

5

Mittwoch, 3. Februar 2016, 21:01

I've tried

Quellcode

1
<view fovtype="HFOV" fov="1.0" fovmax="10.0" maxpixelzoom="2.0" limitview="offrange" />


No success!

6

Mittwoch, 3. Februar 2016, 21:08

I've found it... and removed it !

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<events name="flatpano_events" onnewpano="flatpano_startup();" onresize="flatpano_imagefit();" />

	<!-- setup the view to show the whole image at startup -->
	<action name="flatpano_startup">
		div(pano_aspectratio, image.hfov, image.vfov);
		div(screen_aspectratio, area.pixelwidth, area.pixelheight);

		if(pano_aspectratio GT screen_aspectratio,
			set(view.fovtype, HFOV);
			copy(view.fov,	image.hfov);
			copy(view.fovmax, image.hfov);
		  ,
			set(view.fovtype, VFOV);
			copy(view.fov,	image.vfov);
			copy(view.fovmax, image.vfov);
		  );
	</action>

<!-- adjust the fov limits during resizing -->
	<action name="flatpano_imagefit">
		if(image.vfov GT 0,
			div(pano_aspectratio, image.hfov, image.vfov);
			div(screen_aspectratio, area.pixelwidth, area.pixelheight);

			if(pano_aspectratio GT screen_aspectratio,
				if(view.fovtype == VFOV,
						remapfovtype(view.fov, VFOV, HFOV, lastresize_width, lastresize_height);
						set(view.fovtype, HFOV);
						copy(view.fovmax, image.hfov);
				  );
			  ,
				if(view.fovtype == HFOV,
						remapfovtype(view.fov, HFOV, VFOV, lastresize_width, lastresize_height);
						set(view.fovtype, VFOV);
						copy(view.fovmax, image.vfov);
				  );
			  );
		  );

		set(lastresize_width, get(area.pixelwidth));
		set(lastresize_height, get(area.pixelheight));
	</action>

7

Mittwoch, 11. Mai 2016, 09:35

How i can disable zoom function? I need mouse wheel for other action...

8

Donnerstag, 12. Mai 2016, 08:06

Zitat

How i can disable zoom function? I need mouse wheel for other action...

Set the 'mousefovchange' setting to 0:
http://krpano.com/docu/xml/#control.mousefovchange

Best regards,
Klaus