You are not logged in.

1

Sunday, February 6th 2022, 5:42pm

How to set the good fov ?

Hi !

I do multires pano (flat, paintings) and I want them to fit verticaly the screen even if every painting is different in size.
I set the value fovtype="vfov" but I have black around my image.


<!-- view settings -->
<view
devices="desktop"
hlookat="0"
vlookat="0"
maxpixelzoom="1.0"
limitview="lookat"
fovtype="VFOV"
fovmax="1.0"
/>

If I set fovtype="HFOV" then the image fits perfectly in its width but that's not what I want.


Why in HFOV it fits automatically and not in VFOV ? I also tried SFOV, DFOV and MFOV but it zooms too much in the image.

thanks !
chaosphere has attached the following image:
  • Capture d’écran 2022-02-06 à 17.39.29.png

2

Sunday, February 6th 2022, 6:05pm

Ok, when I look at the
<IMAGE> properties


<image
hfov="1.00" vfov="0.649984" voffset="0.00">
<flat url="tablettes.tiles/l%l/%0v/l%l_%0v_%0h.jpg" multires="512,1536x998,3072x1998,6144x3994,12288x7988" />
</image>

I can see that KRpano gives me the VFOV value (0.649984).
Then, if I set this value in the fovmax="0.649984" then my image fits perfectly. Ok !

But how to tell KRPano (in the default.xml) to get this value (always different depending on the size of my gigapixel/paintings) and set the fovmax automatically with these value ?

thanks !

3

Tuesday, February 8th 2022, 2:22pm

I found that with that parameters it gets the vfov generated by KRpano in the "IMAGE" string:


<action name="fitscreen">
copy(view.vfov, image.vfov);
copy(view.fovmax, image.vfov);
</action>

4

Tuesday, February 15th 2022, 8:43am

Hi,

you could also use:

Source code

1
limitview="range"


That should automatically limit the viewing range so that the image will fill the screen.

Best regards,
Klaus

5

Tuesday, February 15th 2022, 12:01pm

Hi Klaus,

I already tried "range" but it will fit my image on its width and I want to fit in its height.

I use limitview Lookat because when I zoom in the image, I want my zoom to go directly where the mouse is (zoomtocursor).

That's why I don't use Fullrange too. It's quite difficult to explain (we talked about it with Tuur) and I made a video to see what I mean.

Here is the example : https://www.youtube.com/watch?v=VDXwc76T3qU

I made this piece of code and now it seems to work fine, what do you think about it ? I made an action that will retrieve the calculation made by the droplet in KRpano for the "IMAGE" part then it will copy this results in the "VIEW" part "VFOV" value and FOVMAX to limit zooming out.



---------------------------------------------------------------
<events onxmlcomplete="fitscreen();" />



<!-- view settings -->
<view
devices="desktop"
hlookat="0"
vlookat="0"
maxpixelzoom="1.0"
limitview="lookat"
fovtype="VFOV" />


<action name="fitscreen">
copy(view.vfov, image.vfov);
copy(view.fovmax, image.vfov);
</action>

6

Tuesday, February 15th 2022, 4:43pm

Hi,

okay, I understand.
Your code is fully okay.

Best regards,
Klaus

7

Tuesday, February 15th 2022, 4:49pm

Thanks Klaus !