Sie sind nicht angemeldet.

1

Samstag, 3. September 2016, 11:53

Open Layer on VR mode on both "screens"

Hi.
My sample xml file looks like this:

Quellcode

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.

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

2

Samstag, 3. September 2016, 12:53

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

Dienstag, 6. September 2016, 13:16

Thank you.

4

Dienstag, 12. Januar 2021, 13:45

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

5

Dienstag, 12. Januar 2021, 14:04

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.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »indexofrefraction« (12. Januar 2021, 14:49)