• Hi folks

    Recently I aquired a Oculus Quest and started to play around with the VR options of krpano. The panos look phantastic in VR and the immersion in the scene is great, but I soon missed a option to have a closer look at the details of the scenes. So I started to hack the vtourskin.xml and a few details in webvr.xml to get a nice zoom option.

    I didnt like the approach of zooming slowly like in some other WebVr zoom demos. As other have mentioned this feels unnatural and is somewhat confusiong.

    Therefore I built kind of a binocular mode. Instead of just having the prev/next scene hotspots in the vr tour there is now a additional binocular hotspot which switches into a zoom mode which has predefined zoom levels (not very sophisticated yet) and a large overlay hotspot which maks part of the viewarea and leaves a binocular like viewing area open. At least for me with the Oculus Quest this feels quite ok and comfortable. *smile*

    If you are interested, please give it a try at https//weilenmann.net/zoomdemo.

    In the binocular mode the controls to exit the mode and to change the zoom level are either floating for cardboard like devices (havent properly tested this) or the have a fixed pos for devices that have controllers like the Oculus Quest.

    There is still need for improvment, so if you have any idea how to fix the following issues I'd be grateful for input:

    • On higer zoom levels the movement of the dots that represent the controllers targets get rather nervous. I guess the momevemt paras of the controllers need to be devided by the zoom level to fix this, but I did not yet find out where to do this. Any idea?
    • In the fake vr mode the mask does not cover the whole viewing area (depends on screen resolution). Still need to implement something to cover it all, preferable without just making the mask image much larger.
    • Any other ideas are welcome as well.
  • Hi Brian

    Yes, I know it is not working anymore.

    There are 2 things I'm aware of:

    • The browser of the Quest has been upgraded a while ago and does now need krPano 1.20.7 to display the panos in vr.
    • For reason I dont understand the webvr.zoom options doesnt work in 1.0.7 in the oculus browser. The zoom option is working nicely in the simulated vr viw on mobiles and desktop machine, but not in actual vr on the Quest. I have already reported this to Klaus and he want to fix it in the next release: https://krpano.com/forum/wbb/inde…82674#post82674

    Since I've tried to upgrade the demo to 1.20.7 without success it is currently not working. I'm planning to fix this as soon as the zoom option is back to normal.

  • Is there some example code showing how to do this?

    I also saw zoom working in the tokyo45gp, it seems to zoom when you click on something or stare it it long enough (the latter can be disconcerting) and zoom out if you move away fast. Your interface takes more clicking but is less disconcerting.

  • Unfortunately the code of my demo is still broken due to some problems with the 1.20.7 version. I'll try to update this to 1.20.8 soon to make this working again. I also hope that the zooming will now load the highres tiles when the pano is view in a real VR headset (I'm using a Oculus Quest), but I might still need to experiment a bit on this.

    I also found the approach for the Tokyo zoom demo kind of disconcerting and iritating, but the version with the binocular works quite well and feels rather natural to me.

  • Zoom demo updated *smile*

    The zoom demo has been updated to use krpano 1.20.8 and a bunch of new features have been implemented as well.

    Zooming into the images and switch from one image to another is now possible using the thumb stick on the vr headset controllers. Multiresolution is now properly working as well when zooming in.

    A few things still need a little work, e.g. the controllers resp. their hotspots are still far to sensitive in higher zoom level. Still havent figured out how to fix this.

  • Just check the xml files that are controlling the demo.

    All extra logic of the is in the vtour.xml file:
    https://weilenmann.net/zoomdemo/skin/vtourskin.xml

    Apart from that there are a few image files which have been modified for the additional icons (https://weilenmann.net/zoomdemo/skin/vtourskin.png) and 2 files which have been added (https://weilenmann.net/zoomdemo/skin/mask.png and https://weilenmann.net/zoomdemo/skin/VRZoomHelp.png).

    The scene definitions in tour.xml also need some modification to enable the loading of the highres tiles when zoomed in.

    Org scene definition

    Modified scene definition

    The
    demo is still not perfect, e.g. in the simulated vr mode for mobile
    phones and the like, but its probably a good starting point. *smile*

Jetzt mitmachen!

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