You are not logged in.

1

Friday, December 2nd 2022, 2:48am

not work < hotspot ifnot="" />

Thank you for everything.

I recently learned that you can use if="" with hotspots.

Here is the code for the WebVR tour.if="webvr.enabled OR device.mobilevr"


<hotspot name="spot1" url="%VIEWER%/image/test.png"
distorted="true" enabled="false"
if="webvr.isenabled OR device.mobilevr" />

This seems to work for hotspots that I want to display in webVR or mobilevr.

Conversely, is there any way to hide them in webVR or mobilevr?

ifnot="webvr.isenabled OR device.mobilevr" ...

It did not work.

Sorry for my poor English.
Thank you.

2

Friday, December 2nd 2022, 7:52am

you need to use the NOT operaor
https://krpano.com/docu/actions/#expressions

if="!(webvr.isenabled OR device.mobilevr)" />
or
if="!webvr.isenabled AND !device.mobilevr" />

3

Friday, December 2nd 2022, 12:37pm

NOT 演算子を使用する必要があり
ます [url]https://krpano.com/docu/actions/#expressions[/url]

if="!(webvr.isenabled OR device.mobilevr)" />
または
if="!webvr.isenabled AND !device.mobilevr " />


indexofrefraction-san.


Thank you very much.
Both, worked!

I wanted to switch between VR mode and virtual tour mode.
There is a way to use action and tag= in the community, but it is hard to understand for a layman.

I thought it would be easier to understand if I load the scene in VR and VT.
loadscene(get(xml.scene););
I thought it would be nice if we could use

However, when you return to VT, you don't take the frame to the thumbs.
I couldn't use skin_updatescroll();.

If you can help me figure out how to do this, I would be happy.

Thank you.

P.S.
I just noticed that on Android 13 on mobile, controlbar_offset seems to be set to 0 when reverting from VR to VT.
(This may be a glitch in the Japanese version)

4

Saturday, December 3rd 2022, 2:15am

loadscene(get(xml.scene););
is not necessary to switch between display and non-display, right?

Thank you very much.

5

Saturday, December 3rd 2022, 7:49am

loadscene(get(xml.scene)); just re-loads the active scene
this is done when entering/exiting webVR

the command to trigger VR is webvr.enterVR();
but it needs user interaction, i think

see documentation
https://krpano.com/plugins/webvr/#top
https://krpano.com/plugins/webvr/#actions