Rendering issues inside HTML5 version of player (both WebGL and CSS3D)

  • Hi there!

    We’ve switched to WebGL version some time ago and found some issues related to rendering images on canvas. Right part of image duplicates to the right. We also noticed that sometimes it appear on init, sometimes after zoom-in/zoom-out operations. There are no such glitches on source tiles. Flash version of Krpano works correct with our tiles. Switching config param from “prefer” to “prefer+css3d” didn’t help. On our side bug reproduces in Chrome (35, 36, win, mac), Firefox (33.0a2, 32), Safari 7.0.5

    Here are some krpano.xml parts:

    <control mousetype="drag2d"/>
    <view vlookat="0" maxpixelzoom="1.0" fovmax="110" limitview="fullrange" fovtype="VFOV"/>
    <image type="cylinder" hfov="1.0" multires="true" tilesize="512" progressive="true" baseindex="0">
    <level tiledimagewidth="3744" tiledimageheight="5616">
    <cylinder url="/photos/102/tiles/5/%x_%y.jpg"/>
    </level>
    <level tiledimagewidth="1872" tiledimageheight="2808">
    <cylinder url="/photos/102/tiles/4/%x_%y.jpg"/>
    </level>
    <level tiledimagewidth="936" tiledimageheight="1404">
    <cylinder url="/photos/102/tiles/3/%x_%y.jpg"/>
    </level>
    <level tiledimagewidth="468" tiledimageheight="702">
    <cylinder url="/photos/102/tiles/2/%x_%y.jpg"/>
    </level>
    <level tiledimagewidth="234" tiledimageheight="351">
    <cylinder url="/photos/102/tiles/1/%x_%y.jpg"/>
    </level>
    </image>

    Unfortunately, I can’t provide access to the page. But ready to provide any additional information that can be useful. Any ideas?

    Thanks!

  • Hi,

    are the sizes in the xml correctly matching the real dimensions of the images?

    Normally such can only happen when they don't match and such mismatch normally can only happen when trying to use an xml file from one pano with the images from anther pano.

    Best regards,
    Klaus

  • Hi, Klaus! Thanks for your response! We still have problem on our side.

    So, we generate tiles with krpano and then generate krpano xml on back-end side.

    How should we calculate tiledimagewidth and tiledimageheight for each level correctly? In our xml config we have these parameters divided by 2 for each level but default krpano.xml (flat dropplet) has tiledimagewidth=512 and 256 for last two levels.

    Our original image size is 3744x5616.

  • Hi,

    if you're are calculating and generating the <image> xml independently of that what the krpano tools are doing, I would recommend using the levelsizes setting to set custom level sizes that you have calculated:
    https://krpano.com/tools/kmakemultires/config/#levelsizes

    Otherwise the chance is high the the sizes in the xml and the real sizes don't match and that will give display problems of course.

    The calculation and rounding would be exactly to be same, what especially because of the default level size adjusting probably not would be the case.

    Best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!