v1.20 New syntax for multi-resolution panos. URL doesn't expand placeholders correctly

  • Hello Klauss,

    The URL inside the CUBE tags, used in new syntax for the multi-resolution panoramas doesn't work correctly with placeholders.

    Let's take the following line as an example:

    Code
    <cube url="%ROOT%/files/scenes/scene1/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,768,1536,3072,6144" />




    The placeholder %ROOT% is expanded as 2OOT%

    Code
    ......tour/2OOT%/files/scenes/scene1/b/l1/02/l1_b_02_02.jpg


    The placeholder %SWFPATH% is expanded as bWFPATH%

    Code
    ......tour/bWFPATH%/files/scenes/scene1/b/l1/01/l1_b_01_02.jpg


    The placeholder %VIEWER% is not expanded

    Code
    ......tour/%VIEWER%/files/scenes/scene1/b/l1/02/l1_b_02_02.jpg

    The placeholder %FIRSTXML% is resolved an 1IRSTXML%

    Code
    ......tour/1IRSTXML%/files/scenes/scene1/d/l1/02/l1_d_02_01.jpg


    The placeholder %HTMLPATH% is expanded as 1TMLPATH%

    Code
    ......tour/1TMLPATH%/files/scenes/scene1/d/l1/02/l1_d_02_01.jpg


    The placeholder ºSEDIR% is not expanded

    Code
    ......tour/ºSEDIR%/files/scenes/scene1/b/l1/02/l1_b_02_02.jpg



    Just to be clear, this issue only happens with the CUBE tags. The PREVIEW tag works correctly

    Also, there is something funny when the placeholders are used in combination with '..'



    All the code lines below load the images correctly, but they shouldn't!

    Code
    <cube url="%SWFPATH%/../files/scenes/scene1/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,768,1536,3072,6144" />


    Code
    <cube url="%ROOT%/../files/scenes/scene1/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,768,1536,3072,6144" />


    Code
    <cube url="%VIEWER%/../files/scenes/scene1/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,768,1536,3072,6144" />


    Code
    <cube url="ºSEDIR%/../files/scenes/scene1/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,768,1536,3072,6144" />


    Code
    <cube url="%FIRSTXML%/../files/scenes/scene1/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,768,1536,3072,6144" />
    Code
    <cube url="%CURRENTXML%/../files/scenes/scene1/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,768,1536,3072,6144" />
    Code
    <cube url="%HTMLPATH%/../files/scenes/scene1/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,768,1536,3072,6144" />




    All the URLs above resolve like this:

    Code
    ......tour/files/scenes/scene1/l/l4/10/l4_l_10_07.jpg


    Cheers

Jetzt mitmachen!

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