You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, February 1st 2017, 9:12am

Plugin broken after update to krpano 1.19

I updated my krpano files using the krpano tool so that I can make use of the WebVR plugin. Everything works fine except that my custom plugin suddenly broke.

I use a Javascript plugin to add HTML to my panorama's, using this example from the documentation: https://krpano.com/docu/plugininterface/#js

After the update from 1.18.4 to 1.19, I get this Javascript error when the plugin is loaded: plugin.sprite is null

The pluginobject contains roughly the same object as before, but plugin.sprite.appendChild(text); does seem to trigger this error now and the HTML is not added.

Can somebody help me with this?

2

Wednesday, February 1st 2017, 10:23am

Hi,

add - renderer="css3d" - to your <hotspot>.

See:
https://krpano.com/docu/xml/#hotspot.sprite
https://krpano.com/docu/xml/#hotspot.renderer

Best regards,
Klaus

3

Wednesday, February 1st 2017, 11:02am

That fixes it, thank you!

I see that the HTML created by my plugin doesn't show when (simulated) WebVR mode is enabled.
Can we fix that?

4

Wednesday, February 1st 2017, 11:47am

Hi,

WebVR is WebGL only.
That means it's not possible to use any HTML/CSS in WebVR.

Best regards,
Klaus

5

Wednesday, February 1st 2017, 3:25pm

Thank you, is there any chance this will be possible in the future?

6

Wednesday, February 1st 2017, 4:35pm

How do you mean that?

The WebVR API is a browser API for VR output and it supports only WebGL rendering.

With some browser hacks (SVG with embedded html) it would be possible to render static html content to webgl textures, but unfortunately this doesn't work in all browsers (e.g. iOS) due browser bugs.

Best regards,
Klaus

7

Friday, February 3rd 2017, 2:57pm

I understand.

I've been playing with different plugins within VR mode. I got images and video's working, but I couldn't find any examples of textarea's or buttons with text (that are not images), visible in VR.
I guess this just isn't possible for now without any hacks?

Thanks for the quick response btw!