Posts by pur

    Hi Klaus,

    When trying to use the link: I found a following limitation e.g.:
    ox="link:hotspot[get(hs.name)].framenr:hotspot[get(hs.name)].framenr * -2.0"

    The first substitution link:hotspot[get(hs.name)].framenr: works fine
    but the second, when I want to refer the variable in the expression fails.
    What is the scope of the link: ?
    Is there a way to call an action?

    Seems I need to wrap the logic into the event action. Am I right?

    Thanks, Pavel

    Hi,

    Since I've used some editors with 30k image width pixel limitation, I use following spherewidth:
    (based on the lenses and camera sensor resolution I use for pano):

    - CUBE opt. spherewidth: 6434 (2k), 12868 (4k), 25736 (8k), 51472 (16k), MAX: 93292 (30k)
    - opt. size: (CUBE not SPHERE to edit in PSE11
    - XF14: 12k = 12868 x 6434 => cube 4k (4096x4096)
    - XF14: 25k = 25736 x 12868 => cube 8k (8192x8192)
    - XF14+60: 51k = 51472 x 25736 => cube 16k (16384x16384)
    - XF14+60 MAX: 93k = 93292 x 46646 => cube 30k (29696x29696).

    Hi Klaus,

    Thank you for new paradigm (react) introduced in krpano 1.22 version. Based on old krpano example I made my obj360.xml plugin allowing me to rotate an object in the scene. I used the krpano 1.19-pr16

    In my original virtual tour with 360objects I created multires (512, 1024, 2048 and 4096 Byte wide images) using PTGui and changing them according to the global.multireslevel. The used images are not tiled.

    • Do you suppose to work on mulires-hotspot? Any suggestion?
    • I used the krpano 1.19-pr16 version to create my obj360.xml.
       - framecontrol_ox="-50%|50%"  for the LEFT AND RIGHT location of the button(s) and slider_backgorund
      The ox="50%" works well in 1.19, but not in the higher versions. Apparently now is time to redo it in 1.22.4 using react approach.

    Thank you,
    Pavel

    Klaus, pls move my thred/post to better place you find. Thx. P.

    Klaus, thank you for your help. I'm now working on my web server structure to upgrade to 1.22.4.

    Now, when the 1.22.4 is working with me, I can go for my obj360 issue:
    In my original virtual tour with 360objects I created multires (512, 1024, 2048 and 4096 Byte wide images) using PTGui and change them according to the global.multireslevel. The used images are not tiled.

    1) Do you suppose to work on mulires-hotspot? Any suggestion?

    2) I used the krpano 1.19-pr16 version to create my obj360.xml.
     - framecontrol_ox="-50%|50%"  for the LEFT AND RIGHT location of the button(s) and slider_backgorund
    The ox="50%" works well in 1.19, but not in the higher versions. Apparently it's time to redo it in 1.22.4 using react approach.

    Thank you,
    Pavel

    Hi Klaus!

    I'm in big troubles. As you can see according to the starting pano urls, I am organizing (krpano 1.21.2) my website like:
    root/viewer/...
    root/pano/...

    In the /viewer folder and subfolders I keep all krpano and my code, plugins, skin, i18n (global), obj360.
    This allows me to upgrade krpano and code on one place.

    In the /pano/... subfolder of one pano has simple index.html with <meta> tag, xml and pano image files.
    <meta http-equiv="refresh" content="0; url=/viewer/krpano.html?xml=/pano/Art-Galeria/VAVROVA_2024/tour.xml" />

    Now the krpano 1.22.4 (build 2025-02-28)  does not work for me, neither the passQueryParameters settings because of documentation:
    URLs for the xml parameter (if allowed) are limited to be within the current folder structure. What about subfolders?

    embedpano({swf:"krpano.swf", target:"pano", html5:"auto", mobilescale:1.0, passQueryParameters:"xml,i18n_lang,design", consolelog:true, initvars:{i18n_lang:"sk",design:"design_117"}});

    No idea how to proceed?

    I just wanted to redo my obj360 virtual tour with the new react feature, but I would collapse the website.

    Thank you and have a nice weekend.
    Pavel

    Hi guys,
    Not sure how cs909 succeeded but I've just recently made a regular 360 pano AND also a video in portrait orientation(1080x1920, 29fps). When trying to adjust the video to the distorted hotpost into my pano as a videoplayerl it is 90° rotated right.
    So I modified hotspot attributes as follows

    Code
    height="1080"
    			width="1920"
    			ath="3.6" atv="-29"
    			rotate="88.5"


    I tested it on MS Windows10, Firefox v104.0.2 and it works OK.
    Unfortunately none of other browsers (Chrome v104.0.5112.102, MS Edge v105.0.1343.27, Vivaldi v5.4.2753.47) is working with me as FF does.
    Klaus is mentioning some orientation meta data, but I have no clue how to say it to the browsers (Chrome, Edge, Vivaldi...)?
    Here is my case and video
    Holding mouse down over the geyser, the video is showing or hiding. Since the video is in full resolution it takes a while.
    What is the reasonable resolution and fps rate to let the video running without interruptions?

    Thank you for any help.
    Pavel

    P.S.
    I fixed the above hotspot attributes as follows:

    Code
    height.firefox="1080"
    			width.firefox="1920"
    			rotate.firefox="88"
    
    
    			height.no-firefox.or.mobile="1920"
    			width.no-firefox.or.mobile="1080"
    			rotate.no-firefox.or.mobile="-2"
    			ath="4" atv="-29"


    This settings works on PC with MS Windows10 (Firefox, Chrome, Vivaldi, IE11);
    Mac OSX v10.9.5 (Firefox v78.15.0esr, Safari 9.1.3 does not start video);
    Mobile phone:
    iPhone iOS v15.6.1 + Safari 15.6.1;
    Android 12 + Chrome 99.9

    I will adjust the video brightness and resolution to the overal panorama ASAP.
    Please let me know when the video is not working on your device (OS + browser config). I'll try to find out the attributes.

    Thank you,
    Pavel

    PS2:
    After editing my original video with iMovie, the Firefox on desktop does not need the orientation rotation exception and the hotspot attributes are:

    Code
    height="1080"
    			width="1920"
    			rotate="-2"


    The used videois now 608x1080px and is working well. (See my case link above.)

    Though it is more than year, cs909 would find my experience useful.
    Thanks,
    Pavel

    Hi guys!

    Just in case you are interested in attributes which cannot get the .getattributes() (e.g. scene[0]) I use my debug vars function for krpano objects, arrays, ...

    Code
    dv(layer[any])
    dv(scene)

    or to clear message log

    Code
    dv


    Enjoy,
    Pavel

    Hi Klaus,

    What exact behavior do you mean? When quickly testing your tour it seems to work...
    Generally I would recommend avoiding the usage of the wait(), it's mainly a leftover from very old versions. In old versions it was blocking just everything and that was highly problematic of course. Now it depends where it was called what will happen.


    There is no way to do a simple upgrade of my code from ver. 1.19-pr16 to 1.20.7/9 because the wait(LOAD) in 1.20. blocks everything independently where it is called. As you see the tour is working in the 1.19-pr16 version well and wait(LOAD) works as expected. (It's waiting until the hotspot and hotspot_blend is loaded for the tweeing. And when there is no loading the wait(LOAD) works like wait(0).

    To reproduce it in 1.20 try in debugmode=true + [SHIFT]~ calling the krpano action wait(LOAD). It seems the LOAD flag is not resetting to false for the wait() action. The wait(BLEND) is working OK.

    In my post https://krpano.com/forum/wbb/inde…&highlight=#top I wrote and posted the obj360.xml. The wait(LOAD) saved my life. To upgrade it to 1.20.9 requires redesign of my concept (e.g. action obj360_next()).

    My concern is whether you find an easy fix for wait(LOAD) for 1.20 or do I need to reprogram/redesign my plugin?
    Btw. do you suppose to introduce a multiresolution distorted hotspot soon and/or to work on the 360 object within krpano viewer, too? It would be great!

    Again, thank you for your work!

    Pavel

    Hi Klaus,

    It seems that the plugin bingmaps.js does not treat the layer[skin_map].radar.visible right way:
    When using settings.map_type=bing the HTML5 does not toggle the radar.visible attribute. It works well under FLASH and also in the googlemaps.js.
    When the radar is hidden at the first scene, there is no way to display the radar anymore. When the radar gets shown at the first scene and I want to hide it next, the radar stays visible on the last instance.
    (Win10: Firefox 75.0, Chrome 81, Edge 44, IE 11.0).

    Thanks for your great job!
    Pavel

    Hi Zephyr,
    I split it simply by

    Code
    <scene name="scene_02" 
            title="get:i18n.scene_02.key[title].txt" 
            ...
            <include url="%HTMLPATH%/vtour/panotags/in_scene_02.xml" />
        </scene>

    The in_scene_02.xml file is pure hotspots definition like

    XML
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <krpano>
      <hotspot name="tg_190511_19420944" style="panotag_hotspot_style" title="Knieža RASTISLAV" subtitle="820 - 870" note="get:i18n.scene_02.key[tg_190511_19420944].note" scenename="scene_02" ath="0.0043" atv="-0.1488" tagsize="0.069">
        <point ath="0.0043" atv="-0.1488"/>
      </hotspot>
    ...
    </krpano>

    I created panotags app for dynamic update each scene's hotspots panotags/in_scene_02.xml with node.js but I don't let the user change it now.
    Example is here. Go out of the first scene where a little person icon is shown right bottom and you highlight all hotspots/panotags of the scene.

    BUT:
    I'd like to create mapspots for some of my panotags. How to read my includes in_scene_02.xml from the code? Any help will be highly appreciated.

    UPDATE BUT:
    Since I needed to access all the panotags/hotposts of all scenes I put my <include my_hotspot.xml> outside of the <scene/>. Now the hotspots are in separate xml files and I enable the scene hotspots on the basis of the new hotpost attribute scenename="my_scene" by an action running onstart event.
    Now the hotspots/panotags are in separate xml files and I can load the mapspots of all hotspots and make search/find process over the hotsopts.
    I will provide the link as soon as I load data...

    Have a great day,
    Pavel

    Florian,
    Sorry for perplexing you, but what copies attributes from tagAttrArr is just here:

    Code
    tagAttrArr.forEach(function(tagattr){
      if (hotspotObj[tagattr]) tagObj[tagattr] = hotspotObj[tagattr] + "";	//convert to string!
      });


    Pavel

    jvh,
    Apparently you need to allow viewing your scene over the whole image. Right now your <view is limited by the limitwiew=auto. Change it to limitview=off.
    Another story is the container size of the snapshot image. You need to adjust it to a better width/height.
    Pavel

    Hi Florian,
    I'm solving this issue by following code. It's part of my current Work In Proggress so please focus on the tagattributes in the panotag_settings:

    Code
    <panotag_settings ... 
    tagattributes="'name', 'newname', 'style', 'title', 'subtitle', 'note', 'tagstate', 'scenename', 'tagfileurl', 'ath', 'atv', 'tagsize'" 
    />


    How I use it in krpano JS action see my snipet below. First I create an Array, and then I use the array to copy, or so:


    Hoping it helps!
    Pavel

    Ron, Klaus,

    krpano doesn't need Flash in any way. The Flash viewer is already only a fallback viewer for very old systems and don't need to be used or added. But Flash support will be removed soon or later of course.


    Seems that to keep compatibility HTML5 AND Flash for the new plugins is just waste of time.
    Thank you for letting me know.
    Pavel