Posts by ChukA

    Hi everyone,


    i get an issue with the 1.20.11 and IOS 12.4.8 safari 12.1.2

    "device.touch" is not detected anymore...

    if i change back the tour.js by an old one it works.

    nb: if i put device.mobile it's work...

    Any idea ?

    Here a quick try (untested) - a simple php script that should list all xml files in the current folder:

    Code
    \n";
            }
        }
        closedir($handle);
    }
    ?>

    E.g. save it as 'include_all.php' and include it in the xml via:

    Code

    Best regards,
    Klaus</include>

    Hello Klaus !
    Thanks for the 1.20.9 update, and this major feature => includexml(%file.xml%); that allow to import xml dynamicly...

    I'm trying then to create the same action as this exemple but dynamicly... include all file in the folder but with a loop to check if a new one come.

    it's work the first check, it get all xml on the folder but if i put another .xml file to the folder it doesn't get it.

    here is an example:


    <action name="xml_include">
    delayedcall(3,

    <!-- every 3sec we check to the folder if new xml come -->
    includexml("%SWFPATH%/xml/include_all.php");

    <!-- loop to the action -->
    xml_include();

    );
    </action>


    !! PHP file !!


    <krpano>
    <action autorun="preinit"> // create action trace..
    trace("
    <?php
    $dir = ("xml_folder"); //
    if ($handle = opendir($dir))
    {
    while (false !== ($file = readdir($handle)))
    {
    if ($file != "." && $file != ".." && substr($file,-4) == ".xml")
    {
    echo $file."\n";
    }
    }
    closedir($handle);
    }
    ?>
    ");
    </action>

    </krpano>


    can you help me ? if i've tested to put an action name and look to this one but it's not work too it's only get the file when the first check is do.

    regards

    Hello allz,
    I'm looking for a simple things...
    i've a Layer with text on it but when i scale, the text doesn't change...
    i've found a way to do it but i would like to know if it's not possible to do another way...

    my code is to load new style with a different font-size...

    but i've tested with an hotspot and the text on hostpot scale well...

    Does anyone have an idea/examples ?

    regards

    i've write a small Average FPS added to the fps.xml,
    it will take the average FPS on the tour... nothing special but it will help me to know when i add some "effect" what does they influence my FPS (on phone etc...)


    <action name="fps_install" autorun="preinit" scope="local">
    delayedcall(0.5,
    addlayer(fps_display);
    set(layer[fps_display],
    type=text,
    keep=true,
    align='lefttop',
    css=calc('font-size:'+(device.mobile AND stagescale LT 1.0 ? 24 : 12)+'px; color:#FFFFFF;'),
    txtshadow='0 0 1 0x000000 1.0',
    bg=false,
    parent=STAGE,
    vr=true,
    enabled=false
    );

    addlayer(bench_display);
    set(layer[bench_display],
    type=text,
    keep=true,
    align='lefttop',
    y='15',
    css=calc('font-size:'+(device.mobile AND stagescale LT 1.0 ? 24 : 12)+'px; color:#FFFFFF;'),
    txtshadow='0 0 1 0x000000 1.0',
    bg=false,
    parent=STAGE,
    vr=true,
    enabled=false
    );

    set(bench_cnt, 1);
    set(average, calc((display.currentfps+0.5) BOR 0));

    setinterval(fps_plugin, 0.25,
    inc(bench_cnt);
    calc(layer[fps_display].html, 'FPS: ' + ((display.currentfps+0.5) BOR 0));

    add(average,calc((display.currentfps+0.5) BOR 0));
    calc(layer[bench_display].html, 'MOY: ' + ((average/bench_cnt) BOR 0));
    );
    );
    </action>

    regards

    Hi,


    I would like to know how to access to points ATV ATH when my file looks like :


    Code
    <krpano>	<elements name="hotspots">
    		<item name="polyspot_1"  style="my_style" >			<point ath="-4.687" atv="-5.712" />			<point ath="4.505" atv="-5.735" />			<point ath="4.417" atv="13.633" />			<point ath="-4.517" atv="13.601" />		</item><krpano>


    i can access to the name and style by :

    Code
    trace(get(elements[hotspots].item[0].name));trace(get(elements[hotspots].item[0].style));




    but how to access to point ath atv ?


    i've tried,


    Code
    trace(get(elements[hotspots].item[0].point.count));
    trace(get(elements[hotspots].item[0].point[0].atv));trace(get(elements[hotspots].item[0].point[0].ath));


    [size=10][size=10]
    [size=10][size=10]but always return "null"[size=10][size=10]

    [size=10]regards

    Hello allz,

    My Vtour contains, maybe 60 scenes, each scene have 2-3 hotspots for the navigation and 1-2 hotspots sound...

    All my sounds/hotspots are in a file with attributes, and action will show/play if attributes are valid !

    On my iphone6/ipad2 he can't load the scene... error and reload again and again...

    i've check the FPS and it's drop down ... it's animated hotspot (circle ani_black)

    Other things, when i create dynamicly hotspots they seems to fly/slide a little bit... ?

    If i put them to the tour.xml on the scene it will not fly/slide.

    Hello there, i've an issue with a strange things...

    I've all my hotspot writted in a single file...
    i've an action who set my hotspot [visible/invisible] if theses attribute are in the scene or not, but i've finished my Vtour with more than 100 hotspots, and it take memory...

    in my first scene i have only 2 hotspots visible (98 other are visible = false), but my fps down to (20-24), if i remove all of other hotspot and keep only 2 hotspot in the file my fps go to 60...

    Can i put a specific state to my unvisible hotspot to not take memory ? *cursing*

    regards

    Hello there, i would like to know if it's possible to have:

    1: 3d position for point of Polygonal hotspot. ? like this (<point ath="-41.754" atv="-31.809" rx="50" ry="-50" rz="500" />)
    2: does it's possible dynamically set the depth, it's work on normal hotspot but not on polygonal...

    thx in advance.