Hi,
I recently change my old fullHD (1920*1200px) 24" screen for a 4k (3840*2160px) 32" screen, so I use the 150% display scale on Win10.
I realize that the maxpixelzoom value of 1 did not prevent pixel scaling of the source image with my new configuration
I found a solution by getting the value of window.devicePixelRatio with JS:
Code
<action name="correct_maxpixelzoom" autorun="onstart" >
jscall(
var display_ratio = window.devicePixelRatio;
krpano.set("display_ratio", display_ratio);
);
if(image.type == 'CUBE',
set(view.maxpixelzoom, calc(view.maxpixelzoom/display_ratio*XX));
,
set(view.maxpixelzoom, calc(view.maxpixelzoom/display_ratio));
);
</action>
Alles anzeigen
It works fine for flat panorama/image, but for spherical/cube panorama it seems there is another unknown factor XX to be taking account