How to set up hotspots for WebVR

  • I've been trying out the VR option in 1.19 prerelease. I have it working for individual panos but I can't get hotspots to show up in a tour when in VR mode. I tried searching the forums here and saw some references to needing to use distorted hotspots. I have no idea how to set up or use disported hotspots. Can anyone here share an example, preferably as used for WebVR?

  • You can check out this part of the documentation. https://krpano.com/docu/xml/#hotspot.distorted

    In short, you need to add the distorted="true" attribute to each of your hotspots code. Or add distorted="true" to styles

    Example:

    Code
    <hotspot name="hotspot1" distorted="true" ath="100" atv="10.018624" rx="-69.25" ry="12.75" rz="11.07442" alpha=1" scale="1" onclick=" loadscene('scene_yourscene',null,MERGE,BLEND(1));" />




    or if using styles, something like

    Code
    <style name="style1"  scale="0.2" distorted="true" ath="0" atv="45" alpha="0.5" />


    Hope that helps.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!