You are not logged in.

1

Saturday, September 3rd 2016, 11:53am

Open Layer on VR mode on both "screens"

Hi.
My sample xml file looks like this:

Source code

1
2
3
4
5
<krpano>
<include url="plugins/webvr/webvr.xml" />
<plugin name="WebVR" mobilevr_fake_support="true" /> 
<image>    	<cylinder url="canyon.jpg" />	</image>	<hotspot name="hello"      type="image"      url="hotspot.png"      keep="false"      visible="true"      enabled="true"      handcursor="true"      maskchildren="false"      zorder=""      style=""      ath="-20.0" atv="0.0"      edge="center"      zoom="false"      distorted="false" rx="0.0" ry="0.0" rz="0.0"      width="50" height="50"      scale="1.0"      rotate="0.0"      alpha="1.0"      onover=""      onhover=""      onout="set(layer[p1].visible, false);"      ondown=""      onup=""      onclick="set(layer[p1].visible, true);"      onloaded=""      />	<layer name="p1" type="container" align="lefttop" x="50" y="50" width="250" height="250" bgcolor="0x000000" bgalpha="0.5" bgcapture="true" maskchildren="true" visible="false">	<layer name="txt2" html="data:atext" align="center" />	</layer>
	<data name="atext">		<![CDATA[		<div>			<p>Hello <strong>World!</strong></p>		</div>		]]>	</data></krpano>



I need help because I'm having two issues with this when in VR mode:
- "Clicking" on the hotspot open a layer only in one "screen". (I've made the same test with the HTML Page plugin and the result is the same)
- The layer opens with no content.

How can I open on both sides?
Also, what would be the best way to add HTML to the layer?

Thank you.

spacerywirtualne

Professional

Posts: 1,117

Location: Poland, Europe

Occupation: krpano developer : virtual tours : the cms4vr owner

  • Send private message

2

Saturday, September 3rd 2016, 12:53pm

In VRmode you can load only (at the moment) distorted hotspot - graphic or video.
Html content is not supported but Klaus working on it.

Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

3

Tuesday, September 6th 2016, 1:16pm

Thank you.

4

Tuesday, January 12th 2021, 1:45pm

ok, it has been a while,
is there some news on this?

5

Tuesday, January 12th 2021, 2:04pm

i have information popups in webvr
they are "merged" together from a background hotspot, an image hotspot and a text hotspot
some positioning / alignment is possible, too
this allows me to display the same info in webvr as in normal mode.
also the ui needed adjustments, you dont want popup close buttons in webvr.
it is pretty complex, but doable.

This post has been edited 1 times, last edit by "indexofrefraction" (Jan 12th 2021, 2:49pm)