Posts by herrpedro

    hi,

    to reproduce while using hands on quest, open this -> https://psmlvr.panoramapalace.com <- and use hands to click around on hotspots while both hands (lasers) are around

    I cannot make any sense of it so far but sometimes only left hand work.. sometimes only right hand.. the tittle ball and the end of the laser changes color but does not trigger the "click"...

    Is there anything i can call on "onnewscene" event to make it work all the time? or make a delayed call or whatever

    thank you.

    i ended up with this on "onviewchange"

    the roundval is because even when oculos are on a table the value of hlookat has so many decimal digits that it keeps changing

    if (webvr.isenabled ,
    roundval(newlookat, view.hlookat, 0);
    if (newlookat != oldlookat ,
    set(oldlookat , get(newlookat));
    stopdelayedcall(resettour);
    delayedcall( resettour , 20 , resetvrtour(); );

    hope it helps

    Hi,
    you could use an idle time to restart your tour

    krpano.idletime = "5";
    krpano.events.onidle = "gotostart()"; //After 5 seconds without headset movement gotostart

    hi, yes, i used it..till now

    I just noticed that the ondile event does not fire when in webvr. this must be something from this version because i was using it successfully before

    to reproduce this is just put an action

    add an event onidle="resetvrtour();"

    an an action

    <action name="resetvrtour">
    trace('idletime');

    and see , in webvr fake mode for example, that in vr trace does not show and in regular mode it does

    --- update --

    just added a trace to "onviewchange" and, at least in fake vr, this keeps getting called although i'm not moving.. may be this is why onidle does not get fired

    just tested it on quest3 and it does not get back to start either

    Hi,

    just to give a heads up

    webvr.xml has this code on it and this adds a webvr setup hotspot on the nadir that jumps a lot and i'm already in immersive view.

    if(global.webvr.isvrbrowser AND global.webvr.vrcontrollers[0].buttons.length LE 2,
    <!-- when there are only two buttons on the VR controller (e.g. Oculus Go) use an extra hotspot for the VR-setup -->
    addhotspot('webvr_vrsetup', vr_setup_hs);
    vr_setup_hs.loadstyle('webvr_button_style');
    set(vr_setup_hs, keep=true, ath=0, atv=90, depth=160, zorder=999, torigin=view, html='VR SETUP', oversampling=3, scale=0.2, onclick='vrsetup_open();', onloaded='renderloop( copy(ath,view.hlookat); );');
    );

    It only does this if i'm using hads instead of the controllers so this means that it does not report "buttons"

    I'm deleting it for now because i'm sure i'll be using had tracking.

    Klaus, can it be fixed in the next webvr version :)

    THANK YOUUUUUU

    hi,

    After testing successfuly on pc I'm trying to use loadpano in quest3 while in webvr

    krpano.com - Documentation - Actions / Scripting Reference

    I noticed rootpath does not get updated so I'm using and it's working

    loadpano('mytour2.xml' , 'soundinterface.rootpath=%CURRENTXML%/mytour2/audio' , null , null, 'loadfirstscene();')

    sound plays,it loads the 1st scene as supposed but only the "preview".. not the regular pano itself with higher resolution

    If I don't use the vr mode all is good


    I'll keep testing but if any of you have any clues.. i'd appreciate

    thank you all

    hi all , good night

    I don't know if this can be qualified as a bug but i've been rewriting this post as i remember to change things and got it working now but what i found is that preinit functions with same name, in loadpano, do not run

    My use case

    In my tours I usually have a variable definition in a file called "languages.xml" and inside a pre-register defines as "window.languages" . It has all the string in all the languages i'd need for the tour

    Code
    <action name="pregerister_javascript" type="Javascript" autorun="preinit"><![CDATA[
    window.languages = 
        {'pt' : 
            {'dummyvalue' : {}
            


    Now there is the wish to load another entire tour into this visit.. a full xml. That 2nd tour has the same "languages.xml" kind of strings definition with the same action name. I use loadpano with the xml, i see in browser console that the languages.xml appear but i added a console.log and it does not show in browser console.

    here is my load pano

    loadpano('myxml.xml' , 'soundinterface.rootpath=%CURRENTXML%/mytour/audio' , null , null, 'loadfirstscene();')


    I just changed the action name and it started working

    hope it helps someone.


    all the best

    new one -> multires="729,512,1024,2048,4096,8192" />


    old one -> multires="512,768,1792,3584,6912" />


    I've added till 8192 because the higher value I had initially

    initially I had till 65536 and saw that it did not stop automatically

    I messed with auto, level multiplier and some other variables. I'm on 1.21.. it has some more things than 1.18

    the closest I got to power of 2 values was that one starting with 729 but with that lack of quality

    hopefully the next version will have power of two values out of the box for this.

    it's ok not to have 3d transitions in desktop


    thanks again.

    i see bigger squares beiung loaded

    but oddly with levelsizes=512, 1024, 2048, 4096, 8192

    i get a 729 there.. it's ok by me

    multires="729,512,1024,2048,4096,8192" />

    and by messing with those values i get a significant quality decrease

    well.. thats life. it's not the time yet. i'll leave the 3d stuff for the vr part and no fancy things in desktop.


    thank you for your time and patience