How to calculate tiled image width???????

  • Hi,

    I want to manually generated xml when images is cut by krpano tools

    First ,in "multires.config":

    Code
    # multiresolution settings multires=true tilesize=512 levels=auto levelstep=2 maxsize=auto maxcubesize=auto leveldownload=auto

    when i set a pic 12000*6000 then it generated :

    Code
    <image type="CUBE" multires="true" tilesize="512" progressive="false"> <level tiledimagewidth="3820" tiledimageheight="3820"> <cube url="jiulong2.tiles/mres_%s/l4/%v/l4_%s_%v_%h.jpg" /> </level> <level tiledimagewidth="1910" tiledimageheight="1910"> <cube url="jiulong2.tiles/mres_%s/l3/%v/l3_%s_%v_%h.jpg" /> </level> <level tiledimagewidth="956" tiledimageheight="956"> <cube url="jiulong2.tiles/mres_%s/l2/%v/l2_%s_%v_%h.jpg" /> </level> <level tiledimagewidth="512" tiledimageheight="512"> <cube url="jiulong2.tiles/mres_%s/l1/%v/l1_%s_%v_%h.jpg" /> </level> <mobile> <cube url="jiulong2.tiles/mobile_%s.jpg" /> </mobile> </image>

    yes, i guess it may calculated by this: image cube(3820) / levelstep(2),then add a 512 level at last (if tilesize<tiledimagewidth<tilesize*2)

    But when i set a pic 10000*5000 then it generated :


    At first level: it set "tiledimagewidth=3184" and is ok

    At second level:it set "tiledimagewidth=1536",how it calculate?????? in my understanding,it will be 3184/2=1592

    At third level: it set "tiledimagewidth=768" and it look like ok(1536*2=768)

    At last ,in my understanding,it will generated the last level like this:

    Code
    <level tiledimagewidth="512" tiledimageheight="512">

    But why not generate actually ????

    thx!

    3 Mal editiert, zuletzt von boxui (30. Juni 2014 um 07:52)

  • Hi,

    there is the (by default enabled) adjustlevelsizes setting:
    https://krpano.com/tools/kmakemul…djustlevelsizes

    This setting will automatically adjust each level size make them better dividable by the tilesize - to avoid too small/narrow tiles - they would be inefficient in several ways (loading and rendering).

    That means if you want to be able to calculate the level sizes (btw - why?), then this setting need to be disabled.

    Best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!