Beiträge von jeremyfukunaga

    Thanks, Tuur. I was able to get that to work and everything seems to be working fine now.

    The working updated code:


    <action name="hide_introscreen">
    if(device.mobilevr AND webvr.isavailable,
    <!-- on vr-devices like the Oculus Go or Oculus Quest directly enter the VR mode -->
    removeplugin(blur);
    stoptween(layer[introscreen].bgalpha);
    removelayer(introscreen,true);
    set(layer[tour_ui].alpha,1.0);
    webvr.enterVR();
    ,
    set(layer[introscreen].enabled,false);
    tween(layer[introscreen].bgalpha|layer[introscreen].alpha|plugin[blur].range, 0.33|0.0|0.0, 1.0, default,
    removeplugin(blur);
    removelayer(introscreen,true);
    );
    tween(layer[tour_ui].alpha,1);
    );

    CheckTxt(); // Add this line to call CheckTxt();
    events[scrolltxt].onnewscene = 'CheckTxt();'; // Add this line to set the event handler
    </action>

    Thank you,Tuur. I did try removing the CheckTxt already and it does remove it, but I am unable to open it again with the button I have to open and close it. I click the button and it does nothing.

    I tried to incorporate the other code into the hide_introscreem, but I was unsuccessful. Could you provide a little more guidance?


    <action name="hide_introscreen">
    if(device.mobilevr AND webvr.isavailable,
    <!-- on vr-devices like the Oculus Go or Oculus Quest directly enter the VR mode -->
    removeplugin(blur);
    stoptween(layer[introscreen].bgalpha);
    removelayer(introscreen,true);
    set(layer[tour_ui].alpha,1.0);
    webvr.enterVR();
    ,
    set(layer[introscreen].enabled,false);
    tween(layer[introscreen].bgalpha|layer[introscreen].alpha|plugin[blur].range, 0.33|0.0|0.0, 1.0, default,
    removeplugin(blur);
    removelayer(introscreen,true);
    );
    tween(layer[tour_ui].alpha,1);
    );
    </action>


    Thank you again!

    Hi Tuur,

    Thank you so much for your response. Long time no talk. I hope you’ve been well.

    Here is the link to my tour:

    https://www.jeremyfukunaga.com/360-degree/coh…house/tour.html


    I would like the scrolling text window to appear after one clicks on the intro screen and enters the tour, or just be hidden on load, and then one could click on the info button to open it. The first option would be the best one think.

    Thank you again for your response and help.

    Hello,

    I am trying to have the scrolling textfield hidden on pano load. I am testing using the tour_testingserver and what I tried was in this part of the code:


    <action name="CheckTxt">
    if(scene[get(xml.scene)].txt,
    scene[get(xml.scene)].txt();
    set(layer[showtext].visible, true);
    ,
    set(layer[showtext].visible, false);

    );
    </action>

    I tried changing the "set(layer[showtext].visible, true);" to "false", but it still shows when the pano loads.

    Thanks for any help!

    Ok. I just figured out something. I ran the tour_testingserver.exe from the tour folder instead of the krpano Tools.exe and it works now! I guess I didn't understand the way to do things.

    Sorry for the hassle and I really appreciate your guy's time and effort.

    I quickly tested it with Windows 10 in Firefox and Chrome.
    Works fine here. I can create polygon hotspots and copy the code from krpano-console.

    Best regards!

    Thank you, Mische. Your test at least narrows down that the issue is probably on my set up. I will try what else I can, and maybe someone else has experience to share.

    Thanks all!

    HI Tuur,

    Thank you for the response. I am using Chrome on Windows 11 Pro. I understand now about the tool just giving me the info to copy and paste into my xml. So, the issue lies with me not being able to select the code from the console. Do I need to set any special permissions or somthing like that? I recently had to "unlocked the http-query parameters" for another plugin to get it to work. Your tool works just fine except that I can not select the text and therefore copy and paste from the console.

    Thanks again for your help on this!

    Hello Tuur,

    Thank you again for this amazing tool. I was trying to add a polygonal hotspot, just a simple rectangle, but I am unclear on how to save it to the tour. In your tutorial video, you seem to select the code from the console, but I can not do that, and saving the tour.xml does not seem to update my tour.xml with the hotspot.


    Any help would be greatly appreciated!

    Thank you for your response. Unfortunately, the image appears in the scene, but when I click on it it just disappears.


    <krpano version="1.20.11" title="Virtual Tour">

    <include url="skin/vtourskin.xml" />
    <include url="plugins/flyout_hotspots.xml" />

    <!-- customize skin settings: maps, gyro, webvr, thumbnails, tooltips, layout, design, ... -->
    <skin_settings maps="false"
    maps_type="google"
    maps_bing_api_key=""
    maps_google_api_key=""
    maps_zoombuttons="false"
    maps_loadonfirstuse="true"
    gyro="true"
    gyro_keeplookingdirection="false"
    webvr="true"
    webvr_keeplookingdirection="true"
    webvr_prev_next_hotspots="true"
    autotour="false"
    littleplanetintro="false"
    followmousecontrol="false"
    title="true"
    thumbs="true"
    thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"
    thumbs_opened="false"
    thumbs_text="false"
    thumbs_dragging="true"
    thumbs_onhoverscrolling="false"
    thumbs_scrollbuttons="false"
    thumbs_scrollindicator="false"
    thumbs_loop="false"
    tooltips_buttons="false"
    tooltips_thumbs="false"
    tooltips_hotspots="false"
    tooltips_mapspots="false"
    deeplinking="false"
    loadscene_flags="MERGE"
    loadscene_blend="OPENBLEND(0.5, 0.0, 0.75, 0.05, linear)"
    loadscene_blend_prev="SLIDEBLEND(0.5, 180, 0.75, linear)"
    loadscene_blend_next="SLIDEBLEND(0.5, 0, 0.75, linear)"
    loadingtext=""
    layout_width="100%"
    layout_maxwidth="814"
    controlbar_width="-24"
    controlbar_height="40"
    controlbar_offset="20"
    controlbar_offset_closed="-40"
    controlbar_overlap.no-fractionalscaling="10"
    controlbar_overlap.fractionalscaling="0"
    design_skin_images="vtourskin.png"
    design_bgcolor="0x2D3E50"
    design_bgalpha="0.8"
    design_bgborder="0"
    design_bgroundedge="1"
    design_bgshadow="0 4 10 0x000000 0.3"
    design_thumbborder_bgborder="3 0xFFFFFF 1.0"
    design_thumbborder_padding="2"
    design_thumbborder_bgroundedge="0"
    design_text_css="color:#FFFFFF; font-family:Arial;"
    design_text_shadow="1"
    />

    <!--
    For an alternative skin design either change the <skin_settings> values
    from above or optionally include one of the predefined designs from below.
    -->
    <!-- <include url="skin/vtourskin_design_flat_light.xml" /> -->
    <!-- <include url="skin/vtourskin_design_glass.xml" /> -->
    <!-- <include url="skin/vtourskin_design_ultra_light.xml" /> -->
    <!-- <include url="skin/vtourskin_design_117.xml" /> -->
    <!-- <include url="skin/vtourskin_design_117round.xml" /> -->
    <!-- <include url="skin/vtourskin_design_black.xml" /> -->



    <scene name="scene_Panorama_museum2_2023-03-14-01-19-19" title="Panorama_museum2_2023-03-14-01-19-19" onstart="" thumburl="panos/Panorama_museum2_2023-03-14-01-19-19.tiles/thumb.jpg" lat="" lng="" heading="">

    <control bouncinglimits="calc:image.cube ? true : false" />

    <view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

    <preview url="panos/Panorama_museum2_2023-03-14-01-19-19.tiles/preview.jpg" />

    <image>
    <cube url="panos/Panorama_museum2_2023-03-14-01-19-19.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,640,1280,2624,5248" />
    </image>

    <!-- use only a grid preview pano -->
    <preview type="grid(cube,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" />

    <!-- view settings -->
    <view hlookat="12" vlookat="40" fov="105" />


    <!-- use a <style> to share the same attriubtes for all hotspots -->
    <style name="flyoutimage"
    renderer="webgl"
    distorted="true"
    flying="0.0"
    backup_state=""
    backup_zorder=""
    flying_state="in"
    capture="true"
    onclick="flyout_hotspot()"
    />


    <hotspot name="spot1" style="flyoutimage"
    url="image1.jpg"
    zorder="1"
    ath="45"
    atv="54"
    scale="0.4"
    rx="-22.5" ry="-26.25" rz="-50.1"
    />

    <hotspot name="spot2" style="flyoutimage"
    url="image2.jpg"
    zorder="2"
    ath="60"
    atv="54"
    scale="0.4"
    rx="-22.5" ry="-26.25" rz="-50.1"
    />

    <hotspot name="spot3" style="flyoutimage"
    url="image3.jpg"
    zorder="3"
    ath="75"
    atv="58"
    scale="0.4"
    rx="-22.5" ry="-26.25" rz="-50.1"
    />


    <!-- flyout hotspot actions -->
    <action name="flyout_hotspot">
    for(set(i,0), i LT hotspot.count, inc(i),
    copy(hs, hotspot[get(i)]);
    if(hs.name != name AND hs.style == 'flyoutimage' AND (hs.flying_state == 'out' OR hs.flying_state == 'flyingout'),
    callwith(hs, flyout_hotspot() );
    );
    );

    if(flying_state == 'flyingout',
    set(flying_state, 'flyingin');
    ,
    if(flying_state == 'flyingin',
    set(flying_state, 'flyingout');
    );
    );

    if(flying_state == 'in',
    calc(backup_state, '0.0|' + rx + '|' + ry + '|' + rz + '|' + scale);
    copy(backup_zorder, zorder);
    set(flying_state, 'flyingout');
    );

    if(flying_state == 'out',
    set(flying_state, 'flyingin');
    );

    if(flying_state == 'flyingout',
    set(zorder, 99);
    tween(flying|rx|ry|rz|scale, ('1.0|0.0|0.0|0.0|'+0.9*min(stagewidth/sourcewidth,stageheight/sourceheight)), 0.5, default, set(flying_state,'out'); );
    );

    if(flying_state == 'flyingin',
    sub(zorder,1);
    tween(flying|rx|ry|rz|scale, get(backup_state), 0.5, default, set(flying_state,'in'); copy(zorder,backup_zorder); );
    );
    </action>


    </scene>


    </krpano>

    Hello,

    Could someone be so kind as to explain how to implent the example given in th Examples section of this site?

    https://krpano.com/viewsource.htm…ut-hotspots.xml


    There is no indication about how or where to place the code or the xml for a basic tour generated by the krpano MAKE VTOUR droplet. I know there are a lot of experienced people here and are doing really advanced things with all this, so imagine this is very simple to explain.

    Thank you in advance.

    Hello,

    Not sure where to ask this and did some searching around, but how might one add a splash screen or startup screen that had to be clicked with mouse, or tapped on mobile, that can have some message or graphic on the first load of a tour to instruct people about controlling the tour. Sometimes I worry that people don't know they can control with a mouse or their finger where to look. I want to make it explicit. :)

    Thanks in advance.


    -Jeremy